diff --git a/src/AzureStack/AzSdk.reference.props b/src/AzureStack/AzSdk.reference.props new file mode 100644 index 000000000000..3fa8b2131fa4 --- /dev/null +++ b/src/AzureStack/AzSdk.reference.props @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/AzureStack/AzSdk.test.reference.props b/src/AzureStack/AzSdk.test.reference.props new file mode 100644 index 000000000000..a1b4061f6e33 --- /dev/null +++ b/src/AzureStack/AzSdk.test.reference.props @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/Commerce.Tests.csproj b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/Commerce.Tests.csproj new file mode 100644 index 000000000000..b14d9e9b896f --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/Commerce.Tests.csproj @@ -0,0 +1,27 @@ + + + + Commerce.Admin.Tests + Commerce.Admin.Tests Class Library + Commerce.Admin.Tests + 1.0.0-preview + + + netcoreapp1.1 + + + + + + + + + PreserveNewest + + + + + + + + \ No newline at end of file diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/Properties/AssemblyInfo.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..68e1e55f240e --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1,20 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Commerce.Tests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Commerce.Tests")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +[assembly: ComVisible(false)] + +[assembly: Guid("1b24bc4a-6e4d-4feb-b5d5-c9684c60a308")] + +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/SessionRecords/CommerceAdminClient/TestListSubscriberUsageAggregatesFromLastTwoDays.json b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/SessionRecords/CommerceAdminClient/TestListSubscriberUsageAggregatesFromLastTwoDays.json new file mode 100644 index 000000000000..f9308d8d2760 --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/SessionRecords/CommerceAdminClient/TestListSubscriberUsageAggregatesFromLastTwoDays.json @@ -0,0 +1,69 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/providers/Microsoft.Commerce/subscriberUsageAggregates?api-version=2015-06-01-preview&reportedStartTime=2017-09-06T00:00:00Z&reportedEndTime=2017-09-07T00:00:00Z", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tbWVyY2Uvc3Vic2NyaWJlclVzYWdlQWdncmVnYXRlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLXByZXZpZXcmcmVwb3J0ZWRTdGFydFRpbWU9MjAxNy0wOS0wNlQwMCUzQTAwJTNBMDBaJnJlcG9ydGVkRW5kVGltZT0yMDE3LTA5LTA3VDAwJTNBMDAlM0EwMFo=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a4a62639-68fa-4fe3-85ea-8d2eb24cad12" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Commerce.Admin.CommerceAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/providers/Microsoft.Commerce/UsageAggregate/36770ead-1c95-4048-8ff3-d727dd5007de-9764F92C-E44A-498E-8DC1-AAD66587A810\",\r\n \"name\": \"36770ead-1c95-4048-8ff3-d727dd5007de-9764F92C-E44A-498E-8DC1-AAD66587A810\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"36770ead-1c95-4048-8ff3-d727dd5007de\",\r\n \"usageStartTime\": \"2017-09-05T17:00:00-07:00\",\r\n \"usageEndTime\": \"2017-09-06T17:00:00-07:00\",\r\n \"instanceData\": \"{\\\"Microsoft.Resources\\\":{\\\"resourceUri\\\":\\\"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourcegroups/derpgroup/providers/Microsoft.Storage/storageaccounts/vmefbj65\\\",\\\"location\\\":\\\"local\\\",\\\"tags\\\":null,\\\"additionalInfo\\\":null}}\",\r\n \"quantity\": 0.0029740091413259506,\r\n \"meterId\": \"9764F92C-E44A-498E-8DC1-AAD66587A810\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/providers/Microsoft.Commerce/UsageAggregate/36770ead-1c95-4048-8ff3-d727dd5007de-43DAF82B-4618-444A-B994-40C23F7CD438\",\r\n \"name\": \"36770ead-1c95-4048-8ff3-d727dd5007de-43DAF82B-4618-444A-B994-40C23F7CD438\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"36770ead-1c95-4048-8ff3-d727dd5007de\",\r\n \"usageStartTime\": \"2017-09-05T17:00:00-07:00\",\r\n \"usageEndTime\": \"2017-09-06T17:00:00-07:00\",\r\n \"instanceData\": \"{\\\"Microsoft.Resources\\\":{\\\"resourceUri\\\":\\\"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourcegroups/derpgroup/providers/Microsoft.Storage/storageaccounts/vmefbj65\\\",\\\"location\\\":\\\"local\\\",\\\"tags\\\":null,\\\"additionalInfo\\\":null}}\",\r\n \"quantity\": 0.051000000000000004,\r\n \"meterId\": \"43DAF82B-4618-444A-B994-40C23F7CD438\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/providers/Microsoft.Commerce/UsageAggregate/36770ead-1c95-4048-8ff3-d727dd5007de-6dab500f-a4fd-49c4-956d-229bb9c8c793\",\r\n \"name\": \"36770ead-1c95-4048-8ff3-d727dd5007de-6dab500f-a4fd-49c4-956d-229bb9c8c793\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"36770ead-1c95-4048-8ff3-d727dd5007de\",\r\n \"usageStartTime\": \"2017-09-05T17:00:00-07:00\",\r\n \"usageEndTime\": \"2017-09-06T17:00:00-07:00\",\r\n \"instanceData\": \"{\\\"Microsoft.Resources\\\":{\\\"resourceUri\\\":\\\"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourceGroups/derpgroup/providers/Microsoft.Compute/virtualMachines/simplewinvmd\\\",\\\"location\\\":\\\"local\\\",\\\"tags\\\":\\\"null\\\",\\\"additionalInfo\\\":\\\"{\\\\\\\"ServiceType\\\\\\\":\\\\\\\"Standard_A1\\\\\\\",\\\\\\\"ImageType\\\\\\\":null}\\\"}}\",\r\n \"quantity\": 3.9998271341111109,\r\n \"meterId\": \"6dab500f-a4fd-49c4-956d-229bb9c8c793\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/providers/Microsoft.Commerce/UsageAggregate/36770ead-1c95-4048-8ff3-d727dd5007de-9cd92d4c-bafd-4492-b278-bedc2de8232a\",\r\n \"name\": \"36770ead-1c95-4048-8ff3-d727dd5007de-9cd92d4c-bafd-4492-b278-bedc2de8232a\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"36770ead-1c95-4048-8ff3-d727dd5007de\",\r\n \"usageStartTime\": \"2017-09-05T17:00:00-07:00\",\r\n \"usageEndTime\": \"2017-09-06T17:00:00-07:00\",\r\n \"instanceData\": \"{\\\"Microsoft.Resources\\\":{\\\"resourceUri\\\":\\\"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourceGroups/derpgroup/providers/Microsoft.Compute/virtualMachines/simplewinvmd\\\",\\\"location\\\":\\\"local\\\",\\\"tags\\\":\\\"null\\\",\\\"additionalInfo\\\":\\\"{\\\\\\\"ServiceType\\\\\\\":\\\\\\\"Standard_A1\\\\\\\",\\\\\\\"ImageType\\\\\\\":null}\\\"}}\",\r\n \"quantity\": 3.9998271341111109,\r\n \"meterId\": \"9cd92d4c-bafd-4492-b278-bedc2de8232a\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/providers/Microsoft.Commerce/UsageAggregate/36770ead-1c95-4048-8ff3-d727dd5007de-B5C15376-6C94-4FDD-B655-1A69D138ACA3\",\r\n \"name\": \"36770ead-1c95-4048-8ff3-d727dd5007de-B5C15376-6C94-4FDD-B655-1A69D138ACA3\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"36770ead-1c95-4048-8ff3-d727dd5007de\",\r\n \"usageStartTime\": \"2017-09-05T17:00:00-07:00\",\r\n \"usageEndTime\": \"2017-09-06T17:00:00-07:00\",\r\n \"instanceData\": \"{\\\"Microsoft.Resources\\\":{\\\"resourceUri\\\":\\\"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourcegroups/derpgroup/providers/Microsoft.Storage/storageaccounts/vmefbj65\\\",\\\"location\\\":\\\"local\\\",\\\"tags\\\":null,\\\"additionalInfo\\\":null}}\",\r\n \"quantity\": 47.745195036754012,\r\n \"meterId\": \"B5C15376-6C94-4FDD-B655-1A69D138ACA3\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/providers/Microsoft.Commerce/UsageAggregate/36770ead-1c95-4048-8ff3-d727dd5007de-09F8879E-87E9-4305-A572-4B7BE209F857\",\r\n \"name\": \"36770ead-1c95-4048-8ff3-d727dd5007de-09F8879E-87E9-4305-A572-4B7BE209F857\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"36770ead-1c95-4048-8ff3-d727dd5007de\",\r\n \"usageStartTime\": \"2017-09-05T17:00:00-07:00\",\r\n \"usageEndTime\": \"2017-09-06T17:00:00-07:00\",\r\n \"instanceData\": \"{\\\"Microsoft.Resources\\\":{\\\"resourceUri\\\":\\\"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourcegroups/derpgroup/providers/Microsoft.Storage/storageaccounts/vmefbj65\\\",\\\"location\\\":\\\"local\\\",\\\"tags\\\":null,\\\"additionalInfo\\\":null}}\",\r\n \"quantity\": 6.866455078125E-05,\r\n \"meterId\": \"09F8879E-87E9-4305-A572-4B7BE209F857\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/providers/Microsoft.Commerce/UsageAggregate/36770ead-1c95-4048-8ff3-d727dd5007de-3023FEF4-ECA5-4D7B-87B3-CFBC061931E8\",\r\n \"name\": \"36770ead-1c95-4048-8ff3-d727dd5007de-3023FEF4-ECA5-4D7B-87B3-CFBC061931E8\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"36770ead-1c95-4048-8ff3-d727dd5007de\",\r\n \"usageStartTime\": \"2017-09-05T17:00:00-07:00\",\r\n \"usageEndTime\": \"2017-09-06T17:00:00-07:00\",\r\n \"instanceData\": \"{\\\"Microsoft.Resources\\\":{\\\"resourceUri\\\":\\\"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourcegroups/derpgroup/providers/Microsoft.Storage/storageaccounts/vmefbj65\\\",\\\"location\\\":\\\"local\\\",\\\"tags\\\":null,\\\"additionalInfo\\\":null}}\",\r\n \"quantity\": 0.00011140573769807816,\r\n \"meterId\": \"3023FEF4-ECA5-4D7B-87B3-CFBC061931E8\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/providers/Microsoft.Commerce/subscriberUsageAggregates?api-version=2015-06-01-preview&reportedStartTime=2017-09-06T00:00:00Z&reportedEndTime=2017-09-07T00:00:00Z/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/providers/Microsoft.Commerce/subscriberUsageAggregates?api-version=2015-06-01-preview&reportedStartTime=2017-09-06T00%3a00%3a00Z&reportedEndTime=2017-09-07T00%3a00%3a00Z&continuationToken=L3N1YnNjcmlwdGlvbnMvMzY3NzBlYWQtMWM5NS00MDQ4LThmZjMtZDcyN2RkNTAwN2RlL3Jlc291cmNlZ3JvdXBzL2RlcnBncm91cC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZWFjY291bnRzL3ZtZWZiajY1LzMwMjNGRUY0LUVDQTUtNEQ3Qi04N0IzLUNGQkMwNjE5MzFFOC82MzY0MDI1MjgwMDAwMDAwMDAvNjM2NDAyNTI4MDAwMDAwMDAw\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "6545" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 06 Sep 2017 22:13:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14761" + ], + "x-ms-request-id": [ + "d2a24d60-7347-4c54-bb58-1eb04c398e56" + ], + "x-ms-correlation-request-id": [ + "d2a24d60-7347-4c54-bb58-1eb04c398e56" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170906T221336Z:d2a24d60-7347-4c54-bb58-1eb04c398e56" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/Helpers/AzureStackTestBase.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/Helpers/AzureStackTestBase.cs new file mode 100644 index 000000000000..90ca3fd45fe1 --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/Helpers/AzureStackTestBase.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. + +using System; +using System.Net; + +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + +namespace Commerce.Tests +{ + /// + /// Base class for all AzureStack tests. This class should not be modified but extended through a child class. + /// + /// + public abstract class AzureStackTestBase where T : class + { + + /// + /// Reference to service client. + /// + protected T client; + + /// + /// Validate the client. + /// + /// The instantiated client we want to validate. + protected abstract void ValidateClient(T client); + + /// + /// The default location for all admin actions. Override in derived class as needed. + /// + protected string Location = "local"; + + /// + /// Run a test that accepts no arguments. An exception can be + /// + /// The test we wish to run. + /// Function to execute before your test has completed. + /// Function to execute after your test has completed. + /// Expected returned HttpStatusCode. + /// Thrown when an unexpected exception occurs. + /// + protected void RunTest(Action test, + Action before = null, + Action after = null, + HttpStatusCode status = HttpStatusCode.OK, + [System.Runtime.CompilerServices.CallerMemberName] + string methodName= "testframework_failed") { + + Exception caught = null; + + try + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = status }; + handler.IsPassThrough = true; + + using (MockContext context = MockContext.Start(typeof(T).Name, methodName)) + { + var client = context.GetServiceClient(handlers: handler); + ValidateClient(client); + + before?.Invoke(); + test(client); + after?.Invoke(); + } + } + catch (Exception ex) + { + caught = ex; + } + finally + { + if (caught != null) + { + throw new Exception("Test failed", caught); + } + } + } + + public void IgnoreExceptions(Action action) { + try { action(); } + catch (Exception) { } + } + + } +} diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/Helpers/CommerceTestBase.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/Helpers/CommerceTestBase.cs new file mode 100644 index 000000000000..6a4c8fa82843 --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/Helpers/CommerceTestBase.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Commerce.Admin; +using Xunit; + +namespace Commerce.Tests +{ + + public class CommerceTestBase : AzureStackTestBase + { + public CommerceTestBase() + { + // Empty + } + + protected override void ValidateClient(CommerceAdminClient client) + { + // validate creation + Assert.NotNull(client); + + // validate objects + Assert.NotNull(client.SubscriberUsageAggregates); + Assert.NotNull(client.SubscriptionId); + } + } +} diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/Helpers/Common.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/Helpers/Common.cs new file mode 100644 index 000000000000..99720be44af3 --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/Helpers/Common.cs @@ -0,0 +1,279 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. + +using Microsoft.Rest; +using Microsoft.Rest.Azure; +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Net.Http; +using System.Text; + +namespace Commerce.Tests +{ + + /// + /// A collection of common values and functions + /// + public class Common + { + + public const string AcceptableCharactersForResourceName = "abcdefghijklmnopqrstuvwxyz0123456789"; + public const int MaxResourceNameLength = 24; + + // This is just for code readability + public const int Milliseconds = 1; + public const int Seconds = 1000 * Milliseconds; + public const int Minutes = 60 * Seconds; + public const int Hours = 60 * Minutes; + + /// + /// Allows tests to retrieve content from Azure Stack directly. + /// + /// The client used to connect. + /// Credentials used to connect. + /// The location of the object. + /// Body of the request. + /// + public static string RetrieveObject(HttpClient client, ServiceClientCredentials creds, string uri) { + return RetrieveObject(client, creds, new Uri(uri)); + } + + + /// + /// Allows tests to retrieve content from Azure Stack directly. + /// + /// The client used to connect. + /// Credentials used to connect. + /// The location of the object. + /// Body of the request. + public static string RetrieveObject(HttpClient client, ServiceClientCredentials creds, Uri uri) { + var message = new HttpRequestMessage(HttpMethod.Get, uri); + creds.ProcessHttpRequestAsync(message, System.Threading.CancellationToken.None); + var result = client.SendAsync(message).Result; + return result.Content.ToString(); + } + + /// + /// Generate a random name that can be ingested by Azure or AzureStack. + /// + /// The prefix added to the string. The default is okaytodelete. + /// The generated string. + public static string GenerateRandomName(string prefix = "okaytodelete", bool useGuid = true) { + StringBuilder sb = new StringBuilder(prefix); + if (useGuid) + { + sb.Append(Guid.NewGuid()); + } + else + { + Random rand = new Random(); + for (int i = 0; sb.Length < MaxResourceNameLength; ++i) + { + sb.Append(AcceptableCharactersForResourceName[rand.Next(AcceptableCharactersForResourceName.Length)]); + } + } + return sb.ToString(); + } + + /// + /// Given an operation retry it either some given number of times or until it succeeds + /// + /// Function which returns true if it succeeds, false otherwise + /// Maximum number of retries + /// Delay between retries + public static bool RetryOperation(Func func, uint retries = 10, int delay = 250 * Common.Milliseconds) { + while (retries > 0) + { + if (func()) + { + break; + } + --retries; + System.Threading.Thread.Sleep(delay); + } + return retries >= 0; + } + + /// + /// Given an operation retry it either some given number of times or until an exception is thrown. + /// + /// The action we want to perform. + /// Maximum number of retries + /// Delay between retries + /// True if an exception is thrown, false if we reach our retry limit. + public static bool RetryExceptionExpected(Action act, uint retries = 10, int delay = 250 * Common.Milliseconds) { + Func func = () => { try { act(); return false; } catch { } return true; }; + return RetryOperation(func, retries, delay); + } + + /// + /// Go over each page and perform some action on it. + /// + /// Type of object held within the pages. + /// Page we start from. + /// Function will return the next page. + /// What action to perform on each object. + public static void MapOverIPage(IPage start, Func> getNext, Action action = default(Action)) { + var curr = start; + for (;;) + { + curr.ForEach(action); + + if (string.IsNullOrEmpty(curr.NextPageLink)) + { + break; + } + + curr = getNext(curr.NextPageLink); + } + } + + /// + /// Write IPages to a given file from a starting IPage. + /// + /// The type of object each IPage holds. + /// The starting IPage. + /// Given a valid URI returns the next IPage. + /// The name of the file. + /// Returns a string representation of object of type T. + /// + public static void WriteIPagesToFile(IPage start, Func> getNext, System.String filename, Func toString = null) { + using (System.IO.FileStream stream = System.IO.File.Create(filename)) + { + WriteIPagesToStream(start, getNext, stream, toString); + } + } + + /// + /// Write all element in an enumerable to a file on their own line. + /// + /// Type held in Enumerable. + /// Input IEnumerable. + /// The name of the file. + /// Returns a string representation of object of type T. Default action is to call ToString. + public static void WriteIEnumerableToFile(IEnumerable iter, System.String filename, Func toString = null) { + using (System.IO.FileStream stream = System.IO.File.Create(filename)) + { + WriteIEnumerableToStream(iter, stream, toString); + } + } + + /// + /// Write all IPage + /// + /// Type held in each page. + /// Starting page. + /// Given a valid URI returns the next IPage. + /// The stream written to. + /// Returns a string representation of object of type T. Default action is to call ToString. + public static void WriteIPagesToStream(IPage start, Func> getNext, System.IO.Stream stream, Func toString = null) { + toString = toString ?? delegate (T t) { return t.ToString(); }; + StringBuilder sb = new StringBuilder(); + Action action = (obj) => { sb.Append(toString(obj)); sb.AppendLine(); }; + MapOverIPage(start, getNext, action); + var str = sb.ToString(); + var bytes = Encoding.ASCII.GetBytes(sb.ToString()); + stream.Write(bytes, 0, bytes.Length); + } + + /// + /// Iterate through each item in the pages and write its string representation to a file. + /// The default action to get a string representation is to call toString on each object. + /// + /// Type held in Enumerable. + /// Input IEnumerable. + /// The stream written to. + /// Returns a string representation of object of type T. Default action is to call ToString. + public static void WriteIEnumerableToStream(IEnumerable iter, System.IO.Stream stream, Func toString = null) { + toString = toString ?? delegate (T t) { return t.ToString(); }; + StringBuilder sb = new StringBuilder(); + Action action = (obj) => { sb.Append(toString(obj)); sb.AppendLine(); }; + iter.ForEach(action); + var bytes = Encoding.ASCII.GetBytes(sb.ToString()); + stream.Write(bytes, 0, bytes.Length); + } + + } +} + +public static class Extensions +{ + + /// + /// Round down the dateTimeOffset to interval. + /// + /// The date time offset. + /// The interval. + public static DateTimeOffset Floor(this DateTimeOffset dateTimeOffset, TimeSpan interval) { + return new DateTimeOffset(dateTimeOffset.UtcTicks - (dateTimeOffset.UtcTicks % interval.Ticks), TimeSpan.Zero); + } + + /// + /// Round down to the day. + /// + /// The date time. + public static DateTime Floor(this DateTime dateTime) { + return dateTime.Floor(TimeSpan.FromDays(1)); + } + + /// + /// Round down the DateTime to interval. + /// + /// The date. + /// The interval. + public static DateTime Floor(this DateTime dateTime, TimeSpan interval) { + return new DateTimeOffset(dateTime).Floor(interval).DateTime; + } + + + /// + /// Apply an operation over an IList object + /// + /// Underlying type stored in IEnumerable. + /// IEnumerable to apply operation to. + /// The action performed. + public static void ForEach(this IEnumerable list, Action action = default(Action)) { + foreach (var item in list) + { + action(item); + } + } + + /// + /// Given a page we try to grab the first element we can find + /// + /// The value that is held within the page. + /// The page we wish to extract the object from + /// + public static T GetFirst(this IPage page) where T : class { + T result = null; + if (page != null) + { + foreach (var r in page) + { + result = r; + break; + } + } + return result; + } + + /// + /// Convert pagination to a list + /// + /// Type contained in each Page + /// Starting page we want to covert from. + /// A function that returns the next page. + /// + public static IList PageToList(this IPage start, Func> getNext) { + List result = new List(); + Commerce.Tests.Common.MapOverIPage(start, getNext, (page) => { + result.Add(page); + }); + return result; + } + +} \ No newline at end of file diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/Helpers/RecordedDelegatingHandler.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/Helpers/RecordedDelegatingHandler.cs new file mode 100644 index 000000000000..1d3dc10a6831 --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/Helpers/RecordedDelegatingHandler.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System; +using System.Net; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Threading.Tasks; + +namespace Commerce.Tests +{ + + /// + /// Generic delegation handler. + /// + public class RecordedDelegatingHandler : DelegatingHandler + { + // Default response. + private HttpResponseMessage _response; + + /// + /// Default RecordedDelegatingHandler. + /// + public RecordedDelegatingHandler() { + StatusCodeToReturn = HttpStatusCode.Created; + SubsequentStatusCodeToReturn = StatusCodeToReturn; + } + + /// + /// Default RecordedDelegatingHandler which defaults to returning created. + /// + /// Response returned in all cases. + public RecordedDelegatingHandler(HttpResponseMessage response) { + StatusCodeToReturn = HttpStatusCode.Created; + SubsequentStatusCodeToReturn = StatusCodeToReturn; + _response = response; + } + + public HttpStatusCode StatusCodeToReturn { get; set; } + + public HttpStatusCode SubsequentStatusCodeToReturn { get; set; } + + public string Request { get; private set; } + + public HttpRequestHeaders RequestHeaders { get; private set; } + + public HttpContentHeaders ContentHeaders { get; private set; } + + public HttpMethod Method { get; private set; } + + public Uri Uri { get; private set; } + + public bool IsPassThrough { get; set; } + + private int counter; + + protected override async Task SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) { + counter++; + // Save request + if (request.Content == null) + { + Request = string.Empty; + } + else + { + Request = await request.Content.ReadAsStringAsync(); + } + RequestHeaders = request.Headers; + if (request.Content != null) + { + ContentHeaders = request.Content.Headers; + } + Method = request.Method; + Uri = request.RequestUri; + + // Prepare response + if (IsPassThrough) + { + return await base.SendAsync(request, cancellationToken); + } + else + { + if (_response != null && counter == 1) + { + return _response; + } + else + { + var statusCode = StatusCodeToReturn; + if (counter > 1) + statusCode = SubsequentStatusCodeToReturn; + HttpResponseMessage response = new HttpResponseMessage(statusCode); + response.Content = new StringContent(""); + return response; + } + } + } + } +} \ No newline at end of file diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/SubscriberUsageAggregateTests.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/SubscriberUsageAggregateTests.cs new file mode 100644 index 000000000000..b84c2e079ded --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin.Tests/src/SubscriberUsageAggregateTests.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Commerce.Admin; +using Microsoft.AzureStack.Management.Commerce.Admin.Models; +using System; +using Xunit; + +namespace Commerce.Tests +{ + public class SubscriberUsageAggregateTests : CommerceTestBase + { + + private void ValidateUsageAggregate(UsageAggregate ua) { + Assert.NotNull(ua); + Assert.NotNull(ua.Id); + Assert.NotNull(ua.InstanceData); + Assert.NotNull(ua.MeterId); + Assert.NotNull(ua.Name); + Assert.NotNull(ua.Quantity); + Assert.NotNull(ua.SubscriptionId); + Assert.NotNull(ua.Type); + Assert.NotNull(ua.UsageEndTime); + Assert.NotNull(ua.UsageStartTime); + } + + private void AssertDateIsDayOnly(DateTime time, string msg = null) { + msg = $"{msg} : " ?? ""; + Assert.Equal(0, time.Hour); + Assert.Equal(0, time.Minute); + Assert.Equal(0, time.Second); + Assert.Equal(0, time.Millisecond); + + } + + [Fact] + public void TestListSubscriberUsageAggregatesFromLastTwoDays() { + RunTest((client) => { + var testDate = new DateTime(2017,09,06); + testDate = DateTime.SpecifyKind(testDate, DateTimeKind.Utc); + var start = testDate.Floor(); + var end = start.AddDays(1).Floor(); + + // You need to do this. ARM does this and you need to make + // sure you work with ARM. + AssertDateIsDayOnly(start, "start"); + AssertDateIsDayOnly(end, "end"); + + + var subscriberUsageAggregates = client.SubscriberUsageAggregates.List(start, end); + Assert.NotNull(subscriberUsageAggregates); + Assert.NotNull(subscriberUsageAggregates.Value); + subscriberUsageAggregates.Value.ForEach(ValidateUsageAggregate); + }); + } + + } +} diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/CommerceAdminClient.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/CommerceAdminClient.cs new file mode 100644 index 000000000000..c7d086315a70 --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/CommerceAdminClient.cs @@ -0,0 +1,322 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Commerce.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Commerce; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + /// + /// Commerce Admin Client + /// + public partial class CommerceAdminClient : ServiceClient, ICommerceAdminClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// Subscription credentials which uniquely identify Microsoft Azure + /// subscription.The subscription ID forms part of the URI for every service + /// call. + /// + public string SubscriptionId { get; set; } + + /// + /// Client Api Version. + /// + public string ApiVersion { get; private set; } + + /// + /// Gets or sets the preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// Gets or sets the retry timeout in seconds for Long Running Operations. + /// Default value is 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// When set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the ISubscriberUsageAggregatesOperations. + /// + public virtual ISubscriberUsageAggregatesOperations SubscriberUsageAggregates { get; private set; } + + /// + /// Initializes a new instance of the CommerceAdminClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected CommerceAdminClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the CommerceAdminClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected CommerceAdminClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the CommerceAdminClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected CommerceAdminClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the CommerceAdminClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected CommerceAdminClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the CommerceAdminClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public CommerceAdminClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the CommerceAdminClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public CommerceAdminClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the CommerceAdminClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public CommerceAdminClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the CommerceAdminClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public CommerceAdminClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + SubscriberUsageAggregates = new SubscriberUsageAggregatesOperations(this); + BaseUri = new System.Uri("https://management.local.azurestack.external"); + ApiVersion = "2015-06-01-preview"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/ICommerceAdminClient.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/ICommerceAdminClient.cs new file mode 100644 index 000000000000..4028c95b0a1b --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/ICommerceAdminClient.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Commerce.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Commerce; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// Commerce Admin Client + /// + public partial interface ICommerceAdminClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// Subscription credentials which uniquely identify Microsoft Azure + /// subscription.The subscription ID forms part of the URI for every + /// service call. + /// + string SubscriptionId { get; set; } + + /// + /// Client Api Version. + /// + string ApiVersion { get; } + + /// + /// Gets or sets the preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// Gets or sets the retry timeout in seconds for Long Running + /// Operations. Default value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// When set to true a unique x-ms-client-request-id value is generated + /// and included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the ISubscriberUsageAggregatesOperations. + /// + ISubscriberUsageAggregatesOperations SubscriberUsageAggregates { get; } + + } +} diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/ISubscriberUsageAggregatesOperations.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/ISubscriberUsageAggregatesOperations.cs new file mode 100644 index 000000000000..fa493b8f189c --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/ISubscriberUsageAggregatesOperations.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Commerce.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Commerce; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SubscriberUsageAggregatesOperations operations. + /// + public partial interface ISubscriberUsageAggregatesOperations + { + /// + /// Gets a collection of SubscriberUsageAggregates, which are + /// UsageAggregates from direct tenants. + /// + /// + /// The reported start time (inclusive). + /// + /// + /// The reported end time (exclusive). + /// + /// + /// The aggregation granularity. + /// + /// + /// The tenant subscription identifier. + /// + /// + /// The continuation token. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ListWithHttpMessagesAsync(System.DateTime reportedStartTime, System.DateTime reportedEndTime, string aggregationGranularity = default(string), string subscriberId = default(string), string continuationToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/Models/Resource.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/Models/Resource.cs new file mode 100644 index 000000000000..ea640d3b2a8c --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/Models/Resource.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Commerce.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Commerce; + using Microsoft.AzureStack.Management.Commerce.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Base Resource Object + /// + public partial class Resource : IResource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Resource class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Location where resource is location. + /// List of key value pairs. + public Resource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary)) + { + Id = id; + Name = name; + Type = type; + Location = location; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets URI of the resource. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets name of the resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets type of resource. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets location where resource is location. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; private set; } + + /// + /// Gets list of key value pairs. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; private set; } + + } +} diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/Models/UsageAggregate.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/Models/UsageAggregate.cs new file mode 100644 index 000000000000..4388255b794e --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/Models/UsageAggregate.cs @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Commerce.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Commerce; + using Microsoft.AzureStack.Management.Commerce.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Aggregate usage values for resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class UsageAggregate : Resource + { + /// + /// Initializes a new instance of the UsageAggregate class. + /// + public UsageAggregate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UsageAggregate class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Location where resource is location. + /// List of key value pairs. + /// Subscription id of tenant using + /// plan. + /// UTC start time for the usage bucket to + /// which this usage aggregate belongs. + /// UTC end time for the usage bucket to + /// which this usage aggregate belongs. + /// Key-value pairs of instance details + /// represented as a string. + /// The amount of the resource consumption that + /// occurred in this time frame. + /// Unique ID for the resource that was consumed + /// (aka ResourceID). + public UsageAggregate(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string subscriptionId = default(string), System.DateTime? usageStartTime = default(System.DateTime?), System.DateTime? usageEndTime = default(System.DateTime?), string instanceData = default(string), string quantity = default(string), string meterId = default(string)) + : base(id, name, type, location, tags) + { + SubscriptionId = subscriptionId; + UsageStartTime = usageStartTime; + UsageEndTime = usageEndTime; + InstanceData = instanceData; + Quantity = quantity; + MeterId = meterId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets subscription id of tenant using plan. + /// + [JsonProperty(PropertyName = "properties.subscriptionId")] + public string SubscriptionId { get; set; } + + /// + /// Gets or sets UTC start time for the usage bucket to which this + /// usage aggregate belongs. + /// + [JsonProperty(PropertyName = "properties.usageStartTime")] + public System.DateTime? UsageStartTime { get; set; } + + /// + /// Gets or sets UTC end time for the usage bucket to which this usage + /// aggregate belongs. + /// + [JsonProperty(PropertyName = "properties.usageEndTime")] + public System.DateTime? UsageEndTime { get; set; } + + /// + /// Gets or sets key-value pairs of instance details represented as a + /// string. + /// + [JsonProperty(PropertyName = "properties.instanceData")] + public string InstanceData { get; set; } + + /// + /// Gets or sets the amount of the resource consumption that occurred + /// in this time frame. + /// + [JsonProperty(PropertyName = "properties.quantity")] + public string Quantity { get; set; } + + /// + /// Gets or sets unique ID for the resource that was consumed (aka + /// ResourceID). + /// + [JsonProperty(PropertyName = "properties.meterId")] + public string MeterId { get; set; } + + } +} diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/Models/UsageAggregatePage.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/Models/UsageAggregatePage.cs new file mode 100644 index 000000000000..86bffcc4e64d --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/Models/UsageAggregatePage.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Commerce.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Commerce; + using Microsoft.AzureStack.Management.Commerce.Admin; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Holds an array of usage aggregates and the continuation token. + /// + public partial class UsageAggregatePage + { + /// + /// Initializes a new instance of the UsageAggregatePage class. + /// + public UsageAggregatePage() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UsageAggregatePage class. + /// + /// Array of usage aggregates. + /// Continuation token + public UsageAggregatePage(IList value = default(IList), string nextLink = default(string)) + { + Value = value; + NextLink = nextLink; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets array of usage aggregates. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + /// + /// Gets or sets continuation token + /// + [JsonProperty(PropertyName = "nextLink")] + public string NextLink { get; set; } + + } +} diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/SubscriberUsageAggregatesOperations.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/SubscriberUsageAggregatesOperations.cs new file mode 100644 index 000000000000..91f6f99f3b39 --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/SubscriberUsageAggregatesOperations.cs @@ -0,0 +1,268 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Commerce.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Commerce; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SubscriberUsageAggregatesOperations operations. + /// + internal partial class SubscriberUsageAggregatesOperations : IServiceOperations, ISubscriberUsageAggregatesOperations + { + /// + /// Initializes a new instance of the SubscriberUsageAggregatesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal SubscriberUsageAggregatesOperations(CommerceAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the CommerceAdminClient + /// + public CommerceAdminClient Client { get; private set; } + + /// + /// Gets a collection of SubscriberUsageAggregates, which are UsageAggregates + /// from direct tenants. + /// + /// + /// The reported start time (inclusive). + /// + /// + /// The reported end time (exclusive). + /// + /// + /// The aggregation granularity. + /// + /// + /// The tenant subscription identifier. + /// + /// + /// The continuation token. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ListWithHttpMessagesAsync(System.DateTime reportedStartTime, System.DateTime reportedEndTime, string aggregationGranularity = default(string), string subscriberId = default(string), string continuationToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("reportedStartTime", reportedStartTime); + tracingParameters.Add("reportedEndTime", reportedEndTime); + tracingParameters.Add("aggregationGranularity", aggregationGranularity); + tracingParameters.Add("subscriberId", subscriberId); + tracingParameters.Add("continuationToken", continuationToken); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Commerce/subscriberUsageAggregates").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + _queryParameters.Add(string.Format("reportedStartTime={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(reportedStartTime, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("reportedEndTime={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(reportedEndTime, Client.SerializationSettings).Trim('"')))); + if (aggregationGranularity != null) + { + _queryParameters.Add(string.Format("aggregationGranularity={0}", System.Uri.EscapeDataString(aggregationGranularity))); + } + if (subscriberId != null) + { + _queryParameters.Add(string.Format("subscriberId={0}", System.Uri.EscapeDataString(subscriberId))); + } + if (continuationToken != null) + { + _queryParameters.Add(string.Format("continuationToken={0}", System.Uri.EscapeDataString(continuationToken))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/SubscriberUsageAggregatesOperationsExtensions.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/SubscriberUsageAggregatesOperationsExtensions.cs new file mode 100644 index 000000000000..ca1460495b7c --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin/Commerce/Commerce.Admin/Generated/SubscriberUsageAggregatesOperationsExtensions.cs @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Commerce.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Commerce; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for SubscriberUsageAggregatesOperations. + /// + public static partial class SubscriberUsageAggregatesOperationsExtensions + { + /// + /// Gets a collection of SubscriberUsageAggregates, which are UsageAggregates + /// from direct tenants. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The reported start time (inclusive). + /// + /// + /// The reported end time (exclusive). + /// + /// + /// The aggregation granularity. + /// + /// + /// The tenant subscription identifier. + /// + /// + /// The continuation token. + /// + public static UsageAggregatePage List(this ISubscriberUsageAggregatesOperations operations, System.DateTime reportedStartTime, System.DateTime reportedEndTime, string aggregationGranularity = default(string), string subscriberId = default(string), string continuationToken = default(string)) + { + return operations.ListAsync(reportedStartTime, reportedEndTime, aggregationGranularity, subscriberId, continuationToken).GetAwaiter().GetResult(); + } + + /// + /// Gets a collection of SubscriberUsageAggregates, which are UsageAggregates + /// from direct tenants. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The reported start time (inclusive). + /// + /// + /// The reported end time (exclusive). + /// + /// + /// The aggregation granularity. + /// + /// + /// The tenant subscription identifier. + /// + /// + /// The continuation token. + /// + /// + /// The cancellation token. + /// + public static async Task ListAsync(this ISubscriberUsageAggregatesOperations operations, System.DateTime reportedStartTime, System.DateTime reportedEndTime, string aggregationGranularity = default(string), string subscriberId = default(string), string continuationToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(reportedStartTime, reportedEndTime, aggregationGranularity, subscriberId, continuationToken, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin/Microsoft.AzureStack.Management.Commerce.Admin.csproj b/src/AzureStack/CommerceAdmin/Commerce.Admin/Microsoft.AzureStack.Management.Commerce.Admin.csproj new file mode 100644 index 000000000000..81d5766082a7 --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin/Microsoft.AzureStack.Management.Commerce.Admin.csproj @@ -0,0 +1,14 @@ + + + + + Microsoft.AzureStack.Management.Admin.Commerce + Provides developers with libraries for the commerce admin under AzureStack to manage subscription usages. + 0.1.0-preview + Microsoft.AzureStack.Management.Admin.Commerce + Microsoft Azure Stack;Commerce;REST HTTP client;azureostackfficial;netcore451511 + + + net452;netstandard1.4 + + diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin/Properties/AssemblyInfo.cs b/src/AzureStack/CommerceAdmin/Commerce.Admin/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..4f9bf1d3af5a --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin/Properties/AssemblyInfo.cs @@ -0,0 +1,28 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Resources; + +[assembly: AssemblyTitle("Microsoft Azure Stack Commerce Admin Management Library")] +[assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Stack Commerce Admin Resources.")] + +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Microsoft Azure .NET SDK")] +[assembly: AssemblyCopyright("Copyright © Microsoft")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: NeutralResourcesLanguage("en")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("0.1.0.0")] +[assembly: AssemblyFileVersion("0.1.0.0")] diff --git a/src/AzureStack/CommerceAdmin/Commerce.Admin/generate.cmd b/src/AzureStack/CommerceAdmin/Commerce.Admin/generate.cmd new file mode 100644 index 000000000000..3f32d95e0827 --- /dev/null +++ b/src/AzureStack/CommerceAdmin/Commerce.Admin/generate.cmd @@ -0,0 +1,7 @@ +:: +:: Microsoft Azure SDK for Net - Generate library code +:: Copyright (C) Microsoft Corporation. All Rights Reserved. +:: + +@echo off +call %~dp0..\..\..\..\tools\generate.cmd azsadmin/resource-manager/commerce latest Azure current azure-rest-api-specs %CD% diff --git a/src/AzureStack/CommerceAdmin/CommerceAdmin.sln b/src/AzureStack/CommerceAdmin/CommerceAdmin.sln new file mode 100644 index 000000000000..8dcc2c310c9b --- /dev/null +++ b/src/AzureStack/CommerceAdmin/CommerceAdmin.sln @@ -0,0 +1,34 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26430.13 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3A13F014-3E55-4ECA-98BA-55216B70A8D4}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commerce.Tests", "Commerce.Admin.Tests\Commerce.Tests.csproj", "{1B24BC4A-6E4D-4FEB-B5D5-C9684C60A308}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commerce.Admin", "Commerce.Admin\Microsoft.AzureStack.Management.Commerce.Admin.csproj", "{5F30AD46-8F37-4416-8EAE-5B56A1471926}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {EAE2AE14-948D-4613-A4E8-14C50D8D0472}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EAE2AE14-948D-4613-A4E8-14C50D8D0472}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EAE2AE14-948D-4613-A4E8-14C50D8D0472}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EAE2AE14-948D-4613-A4E8-14C50D8D0472}.Release|Any CPU.Build.0 = Release|Any CPU + {1B24BC4A-6E4D-4FEB-B5D5-C9684C60A308}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1B24BC4A-6E4D-4FEB-B5D5-C9684C60A308}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1B24BC4A-6E4D-4FEB-B5D5-C9684C60A308}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1B24BC4A-6E4D-4FEB-B5D5-C9684C60A308}.Release|Any CPU.Build.0 = Release|Any CPU + {5F30AD46-8F37-4416-8EAE-5B56A1471926}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5F30AD46-8F37-4416-8EAE-5B56A1471926}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5F30AD46-8F37-4416-8EAE-5B56A1471926}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5F30AD46-8F37-4416-8EAE-5B56A1471926}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/Fabric.Tests.csproj b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/Fabric.Tests.csproj new file mode 100644 index 000000000000..0962b1936499 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/Fabric.Tests.csproj @@ -0,0 +1,27 @@ + + + + Fabric.Admin.Tests + Fabric.Admin.Tests Class Library + Fabric.Admin.Tests + 1.0.0-preview + + + netcoreapp1.1 + + + + + + + + + PreserveNewest + + + + + + + + \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/Properties/AssemblyInfo.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..df0e6615bfe6 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1,20 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Fabric.Tests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Azure Stack Fabric Admin Tests")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +[assembly: ComVisible(false)] + +[assembly: Guid("1b24bc4a-6e4d-4feb-b5d5-c9684c60a308")] + +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("0.1.0.0")] +[assembly: AssemblyFileVersion("0.1.0.0")] diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllEdgeGatewayPools.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllEdgeGatewayPools.json new file mode 100644 index 000000000000..3129b2ad331a --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllEdgeGatewayPools.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGatewayPools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZWRnZUdhdGV3YXlQb29scz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b83115de-7163-4008-b3b1-38d5ad8d69b3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGatewayPools/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/edgeGatewayPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"gatewayType\": \"S2sIPsec\",\r\n \"numberOfGateways\": 1,\r\n \"redundantGatewayCount\": 0,\r\n \"gatewayCapacityKiloBitsPerSecond\": 100000000,\r\n \"publicIpAddress\": \"00000000-5555-0000-0001-000000000000\",\r\n \"edgeGateways\": [\r\n \"AzS-Gwy01\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "509" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvvVzj2kpJGOEpOr6lLSxodwSYIOHSvC9OAmOEKmDCuadYGQRUFMthHF7WtKfFfFFLMmdu2O/mBvjhu5emTRJym9m+v8HC9NhsKkvEhIKlsxSwaLduKHbSqMSFn+BqqNZ8WqxGICA4XLt5J5DCd5IR" + ], + "x-ms-correlation-request-id": [ + "b16b4755-c7f6-42c6-b4bd-33a07bf8af4e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14136" + ], + "x-ms-request-id": [ + "b16b4755-c7f6-42c6-b4bd-33a07bf8af4e" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:b16b4755-c7f6-42c6-b4bd-33a07bf8af4e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGatewayPools/default?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZWRnZUdhdGV3YXlQb29scy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c0c80d0e-68a8-4510-85b6-f664251fbe3d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGatewayPools/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/edgeGatewayPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"gatewayType\": \"S2sIPsec\",\r\n \"numberOfGateways\": 1,\r\n \"redundantGatewayCount\": 0,\r\n \"gatewayCapacityKiloBitsPerSecond\": 100000000,\r\n \"publicIpAddress\": \"00000000-5555-0000-0001-000000000000\",\r\n \"edgeGateways\": [\r\n \"AzS-Gwy01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "497" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv71qkByrpWoSAqOTi2btp3G/vwERNBjYVAfJmDDcwthdF0+XzTjvmn/V0n3r3VqLf51uQcPqIKz0xLl09jyloWXsuPJm3krDpQGF5EZIz/T/FRSaQ5yqOT8yMMcowyWPdlGHntwJV6eksgwCe/vVn" + ], + "x-ms-correlation-request-id": [ + "0706ebf5-3ca1-4333-8432-ff5e48e31965" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14135" + ], + "x-ms-request-id": [ + "0706ebf5-3ca1-4333-8432-ff5e48e31965" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:0706ebf5-3ca1-4333-8432-ff5e48e31965" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllEdgeGateways.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllEdgeGateways.json new file mode 100644 index 000000000000..9a1b303cf6fc --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllEdgeGateways.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGateways?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZWRnZUdhdGV3YXlzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3d9b2f10-bd7e-4047-9666-67cad8252988" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGateways/AzS-Gwy01\",\r\n \"name\": \"AzS-Gwy01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/edgeGateways\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"totalCapacity\": 100000000,\r\n \"availableCapacity\": 100000000,\r\n \"numberOfConnections\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "399" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvpbGNW/0exz4X7mFSFMg35XqeraCKWXNEuDYQAk27xCRBjshp9h5r0gppto1g+n1m5Z4XLQEP7Lg0w38iSaIulXaiM1wst0b0BzU09j3je20l1yELDRKrxio+MZauyQGVeKJM2Yl6GtD/AFjjbdrc" + ], + "x-ms-correlation-request-id": [ + "bc30c974-194c-4e1f-8212-cccced8b569d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14092" + ], + "x-ms-request-id": [ + "bc30c974-194c-4e1f-8212-cccced8b569d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:bc30c974-194c-4e1f-8212-cccced8b569d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGateways/AzS-Gwy01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZWRnZUdhdGV3YXlzL0F6Uy1Hd3kwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a008f94-8f0b-4f1d-88b9-d51aa45c0a92" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGateways/AzS-Gwy01\",\r\n \"name\": \"AzS-Gwy01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/edgeGateways\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"totalCapacity\": 100000000,\r\n \"availableCapacity\": 100000000,\r\n \"numberOfConnections\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "387" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvfL+JtDOOWLMfI2uCPdZL7eT5k2Oc7davLjm7Kk0ImvCMJqakTlhGCuNwJT1NUcqy0WycDingsIj/sWyra5ygPjObWu76N/S4eVAJ4QBK/JtfhI2h4sk8pGbG69D9v7kFaM/o44uxbrtulXMhGEBK" + ], + "x-ms-correlation-request-id": [ + "973acbd6-fe67-4c1d-a365-f6841dd9ab18" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14091" + ], + "x-ms-request-id": [ + "973acbd6-fe67-4c1d-a365-f6841dd9ab18" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:973acbd6-fe67-4c1d-a365-f6841dd9ab18" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllFabricLocations.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllFabricLocations.json new file mode 100644 index 000000000000..cd9ef9e16ef7 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllFabricLocations.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "baf68fdc-26db-4ec7-90d5-b7a1b4be1661" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "263" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv/rnbpnMsNJGx0EX+2CO/ZneAKweKr9vm4EMGtM/LlG7fE4Txp6n5SqAOjcKXUq+xxYFwh3jpVuFaR0FUcKjO7+kzLALW9xjCnl5WwNe9tQwZpwgQiqEMvCuSYK+7gM6Ltp8VbFOjeaqZ2CTOseRe" + ], + "x-ms-correlation-request-id": [ + "0a87a5f8-dad6-4515-ad2c-9bb13b12ca20" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14107" + ], + "x-ms-request-id": [ + "0a87a5f8-dad6-4515-ad2c-9bb13b12ca20" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:0a87a5f8-dad6-4515-ad2c-9bb13b12ca20" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWw/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ace28dfa-ae25-44cb-9238-61161094a755" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "251" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvZ/OMwThtlqnw4Woz01OG3eTn3dqTXPh5pMvUJwzNJJjfNfCyZoaCqaegr+fmM1TLkHcWRKTP0qSjsjZmLfxPJbBWy8qKS1CjnhUHwLMmmJTODX4IZG4NAajh5grOkoIvJQqXScKlyaJJNJchj38f" + ], + "x-ms-correlation-request-id": [ + "693121a8-1624-4d9c-ba55-c451980d74bc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14106" + ], + "x-ms-request-id": [ + "693121a8-1624-4d9c-ba55-c451980d74bc" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:693121a8-1624-4d9c-ba55-c451980d74bc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllFileShares.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllFileShares.json new file mode 100644 index 000000000000..f602de12f962 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllFileShares.json @@ -0,0 +1,456 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZmlsZVNoYXJlcz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "efa2bf34-8c56-4f05-a03e-88d9396a85ce" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_1\",\r\n \"name\": \"SU1_Infrastructure_1\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Infrastructure_1\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_2\",\r\n \"name\": \"SU1_Infrastructure_2\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Infrastructure_2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_3\",\r\n \"name\": \"SU1_Infrastructure_3\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Infrastructure_3\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_ObjStore\",\r\n \"name\": \"SU1_ObjStore\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Public\",\r\n \"name\": \"SU1_Public\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Public\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_VmTemp\",\r\n \"name\": \"SU1_VmTemp\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_VmTemp\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2375" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvQwmXTYzF2DQI5G3o6uRrpxJsYixQqmpmKewKgWWb6GfFqsvWbWjm0/13UyF5X1jBKLqVd1hDoAkBWllqQ6bmLi8zQjc7WXNYWDQ4qZNIqGyY/D8Qu/LOhHjxniDk+e4mc1cO2sWmFdFU24wmfUCJ" + ], + "x-ms-correlation-request-id": [ + "92d20c00-aff9-44b7-8f15-dd24ddf9e141" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14127" + ], + "x-ms-request-id": [ + "92d20c00-aff9-44b7-8f15-dd24ddf9e141" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192220Z:92d20c00-aff9-44b7-8f15-dd24ddf9e141" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_1?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZmlsZVNoYXJlcy9TVTFfSW5mcmFzdHJ1Y3R1cmVfMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8b111794-b10c-47fe-a3c8-2bb2229b8a21" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_1\",\r\n \"name\": \"SU1_Infrastructure_1\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Infrastructure_1\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "407" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvskXufchYjN3UK5prCjs0nCdIgOSGFRNG8oC1uryOFiKjcfk1WVXNCtetXYyJwFjvMzL4ReaMxBRw62rTJEFMDfpvsHzXkIoONaEpjPCniJ4zyELQ7ihFn+QYG8YrliqfiBkiqN9Pp0oDkvhK32BP" + ], + "x-ms-correlation-request-id": [ + "573de3dd-1a53-499a-9e49-0ec9f35f17a8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14126" + ], + "x-ms-request-id": [ + "573de3dd-1a53-499a-9e49-0ec9f35f17a8" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192220Z:573de3dd-1a53-499a-9e49-0ec9f35f17a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_2?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZmlsZVNoYXJlcy9TVTFfSW5mcmFzdHJ1Y3R1cmVfMj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3b5b14e9-8a17-42bd-8a60-b9e77aefa99d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_2\",\r\n \"name\": \"SU1_Infrastructure_2\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Infrastructure_2\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "407" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv3sAt4ky8TKmTNyzyjxW4AQ+96VdXRN4Q2vySxTb1ZC958Ze3YZDCozfCEgM6HG2v3+BLDQNi03yKkCmc82Adu1F8iix0u4CWYXs0Dwsbv8Hk5Xch4S8/U+e9+GQySsPwSScwNOUVgQSL5Yi+pdVF" + ], + "x-ms-correlation-request-id": [ + "c99a99b1-3867-4df0-9f8b-84c137da3178" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14125" + ], + "x-ms-request-id": [ + "c99a99b1-3867-4df0-9f8b-84c137da3178" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192220Z:c99a99b1-3867-4df0-9f8b-84c137da3178" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_3?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZmlsZVNoYXJlcy9TVTFfSW5mcmFzdHJ1Y3R1cmVfMz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ecb6c4bb-95a9-4d75-871d-f1dd1004a914" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_3\",\r\n \"name\": \"SU1_Infrastructure_3\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Infrastructure_3\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "407" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvfIkp7PWnZziY97pSgmsr080u8fjxT6GjSjaCcw5QuwiayepzVfpGO6zvWzWd9OBIJvHAMHpWE5mW4kGl/EeLCz2LbUs8ApHSM+2KKD35SwTH3ry656w+9SKOyuJkE/xAMA4W78s+iniE/ep9CVNd" + ], + "x-ms-correlation-request-id": [ + "cf4d0029-769a-4ec8-a56f-3cf011de347e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14124" + ], + "x-ms-request-id": [ + "cf4d0029-769a-4ec8-a56f-3cf011de347e" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192220Z:cf4d0029-769a-4ec8-a56f-3cf011de347e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_ObjStore?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZmlsZVNoYXJlcy9TVTFfT2JqU3RvcmU/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e648fbfe-e6ca-461f-9e1c-4c7a0d7fbc3e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_ObjStore\",\r\n \"name\": \"SU1_ObjStore\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "383" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv/P9Fss26fAqzB/qAw3a9em/wPKIOQEGMWqTPuhrFElSs11MRQmieemExMhnTKyD/l7rcd5OPytt0wc5VKc8YIDHBMhKJdEw37nbNTPu4a9d4sGjpotnclIWK1E2Lxfvpqbtn8lbCcfM7A8k6Hh6u" + ], + "x-ms-correlation-request-id": [ + "1de2edd6-bfbb-4b74-8a9a-0b9d98a098de" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14123" + ], + "x-ms-request-id": [ + "1de2edd6-bfbb-4b74-8a9a-0b9d98a098de" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192220Z:1de2edd6-bfbb-4b74-8a9a-0b9d98a098de" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Public?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZmlsZVNoYXJlcy9TVTFfUHVibGljP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "888db46a-6bca-4b8a-88c6-086fd2003512" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Public\",\r\n \"name\": \"SU1_Public\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Public\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "377" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvHbHMfqqGnkkBHexbO64hV8qXpaaAZ2MyHmXSpqUt2nPTm4X6HqA0pVrAVEmUPDcwZ7eQSRM7AkhjUmY6JtBKEazzIGSFov33FQhzGv+6ztnoop4TzR5MaeOTp2zfGeD1ZgFZ6f5emNLZQJRczsEj" + ], + "x-ms-correlation-request-id": [ + "3527b089-76c5-438a-bfc0-c12c31ad36c7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14122" + ], + "x-ms-request-id": [ + "3527b089-76c5-438a-bfc0-c12c31ad36c7" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192220Z:3527b089-76c5-438a-bfc0-c12c31ad36c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_VmTemp?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZmlsZVNoYXJlcy9TVTFfVm1UZW1wP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25952cc5-7fa5-4cc7-8ab7-8c8cc1c2fb25" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_VmTemp\",\r\n \"name\": \"SU1_VmTemp\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_VmTemp\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "377" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvrnDAMLsCmqFeHK1J8ffrw/hL4ja4gbs+BhDaIS69Pmt1rpX12ADv9VypxyJqoQ4da/Sir46IGFRLh0ulzWmeao4tsS9RLkmwrzMJL8e8oOlEVeZA3Kd2JdY/TOIhPueyFlXG2JC5WuOXdalFGNmU" + ], + "x-ms-correlation-request-id": [ + "42988a62-125d-46d5-ae11-a3aaf41071cc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14121" + ], + "x-ms-request-id": [ + "42988a62-125d-46d5-ae11-a3aaf41071cc" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192220Z:42988a62-125d-46d5-ae11-a3aaf41071cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllInfraRoleInstances.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllInfraRoleInstances.json new file mode 100644 index 000000000000..6bfe0c3ef04f --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllInfraRoleInstances.json @@ -0,0 +1,776 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2f1e0f04-9b0a-4010-8c20-38ca3237b1b5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01\",\r\n \"name\": \"AzS-ACS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ADFS01\",\r\n \"name\": \"AzS-ADFS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-BGPNAT01\",\r\n \"name\": \"AzS-BGPNAT01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-CA01\",\r\n \"name\": \"AzS-CA01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 1.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Gwy01\",\r\n \"name\": \"AzS-Gwy01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-NC01\",\r\n \"name\": \"AzS-NC01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-SLB01\",\r\n \"name\": \"AzS-SLB01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Sql01\",\r\n \"name\": \"AzS-Sql01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\",\r\n \"name\": \"AzS-WAS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\",\r\n \"name\": \"AzS-WASP01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\",\r\n \"name\": \"AzS-Xrp01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "7772" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv0PDrapN2CHDgh1fhc4Lm/vFOoQv9+Le7e6dhQs9c88X8ayrM8/roXR7i+ZQ+TPMkDHUzvL3aFvgkErPqhIMitF7FpnRTeYY24UGmcv3Vdmbeh+YuEAbuzkMKGi1XWCPgtF90e1tHzLWfJMKuP0/d" + ], + "x-ms-correlation-request-id": [ + "811c3585-5ff4-49c6-90dd-25974bc6f00c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14100" + ], + "x-ms-request-id": [ + "811c3585-5ff4-49c6-90dd-25974bc6f00c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191512Z:811c3585-5ff4-49c6-90dd-25974bc6f00c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1BQ1MwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d2c881ac-4fb6-4da2-9d4e-55bc1ad6b3e2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01\",\r\n \"name\": \"AzS-ACS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "704" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv1pmZ2jneSFtS4b96PedAEw4VFm5X0v4yQYY38LfJKpzs9JukOI3NPFpFOBk89PC+fBIgHrhga8c7lZVrmDejjuJqovDAeooyqF8HwmfJIZiexS1CKZWigKSTX2Xt9h1PkpksT9IcawAgzp96OCsm" + ], + "x-ms-correlation-request-id": [ + "df854c39-ee9f-4d62-a10f-93288b2851c3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14178" + ], + "x-ms-request-id": [ + "df854c39-ee9f-4d62-a10f-93288b2851c3" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191512Z:df854c39-ee9f-4d62-a10f-93288b2851c3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ADFS01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1BREZTMDE/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "40efde21-860c-4dde-9796-ad90d16ce3a1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ADFS01\",\r\n \"name\": \"AzS-ADFS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "706" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvP+QEjGbHrq8CJiibzxBiB8sqfJOdiHVv2DD5cbP6XEgIhenFmC4kXzuYTR7+J2IxZv5gJWDNrq/Dbbob9f5rCDlxXCSWqHD1kpJRGEtVNy+FL3XAlfs6ZtB6qT8ndT8sEpwgAYt3mUd0zZmsjFp3" + ], + "x-ms-correlation-request-id": [ + "d9ed3189-24d5-4748-ab8e-72be29126167" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14177" + ], + "x-ms-request-id": [ + "d9ed3189-24d5-4748-ab8e-72be29126167" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191512Z:d9ed3189-24d5-4748-ab8e-72be29126167" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-BGPNAT01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1CR1BOQVQwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c440cd4b-25e0-476c-adc2-c9f8b01683ed" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-BGPNAT01\",\r\n \"name\": \"AzS-BGPNAT01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "710" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvW7I9oQc5b7WVqORJYW1RDFirOZP3tFUOx1wIX2Sw5BPIi0QvmleOCTNesZ4CpChpSCQ5jKvk9hcFX7L2DJCSfza/nL5TwzajG9yQorDxqN6YIBibf4buGkg57cEM/w7xkauOuTtIO8ngzVFMFYK4" + ], + "x-ms-correlation-request-id": [ + "ba2887dc-7fa5-4c7b-ad27-31f306e8512b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14176" + ], + "x-ms-request-id": [ + "ba2887dc-7fa5-4c7b-ad27-31f306e8512b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191512Z:ba2887dc-7fa5-4c7b-ad27-31f306e8512b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-CA01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1DQTAxP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "17ccd237-9ebd-46a1-9aaf-411620d4ef42" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-CA01\",\r\n \"name\": \"AzS-CA01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 1.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "702" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv0yCrnfqOGCBZiN58tfeDRL1fJzqBaX+ZCWvF/P1T8/xvWfwpCnZWUPsysjpJIYkpJzc3ts6g7+n5HCn6EdSORB8cPJC3JUluylLxUHCjuNHErElOCmiKQvfmOl4V82V3URCXkog8f9u+QzOHEW0Q" + ], + "x-ms-correlation-request-id": [ + "9d767171-c39a-42d2-a9f7-a7ea11136fbb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14175" + ], + "x-ms-request-id": [ + "9d767171-c39a-42d2-a9f7-a7ea11136fbb" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191512Z:9d767171-c39a-42d2-a9f7-a7ea11136fbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Gwy01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1Hd3kwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "04ac035d-5c30-4f21-998f-758569641346" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Gwy01\",\r\n \"name\": \"AzS-Gwy01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "704" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvO2+s6MV/ZbSbBZVOWvaVxoTDx531Rvaj8g35l6JX0TdQBpwW5P2V7ImrgVyAHr9U2RHVBsoYWvCRyvbBlCT2bLNxTe6fiudXq6QDDfjvgyX7QwWM7hYvadgpeQjsQ0BhV++wkxO5QuEZH2BkZ9f3" + ], + "x-ms-correlation-request-id": [ + "2ab01896-441b-4d4e-9731-0a995791c953" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14174" + ], + "x-ms-request-id": [ + "2ab01896-441b-4d4e-9731-0a995791c953" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191512Z:2ab01896-441b-4d4e-9731-0a995791c953" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-NC01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1OQzAxP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c29f4239-8879-49b7-88ba-249a9f0797c7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-NC01\",\r\n \"name\": \"AzS-NC01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "702" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvtdLdvoffpQLdTMN2UkRDqGGhCYW3s9Bbqkra2STTJS8qccf7N4Jk1lESDWQV6SX+0+hDv/abgqZQRQ4RShmSuib4Rz/KRn/dwWF+H2pDszVYmVPi6b/1TBlSmqMQGKk/Nl1/xmrYlo5L7NRKiDl2" + ], + "x-ms-correlation-request-id": [ + "c0f7fbf2-9508-435d-a18f-eda33cbef998" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14173" + ], + "x-ms-request-id": [ + "c0f7fbf2-9508-435d-a18f-eda33cbef998" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191512Z:c0f7fbf2-9508-435d-a18f-eda33cbef998" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-SLB01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1TTEIwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a3a972f1-ff07-42a4-9904-17a55ee0b389" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-SLB01\",\r\n \"name\": \"AzS-SLB01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "704" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvFQFIeSw33Aw/AuDWeZWHEWGtHRCpRz/mfIZ3onxloQGJqslfa92sLeZtUslrQa45P8tZj1UAc86I/TuIruIOWoWMgbzUmxlpRvwZhdY8/lHBdn9Yulhl69lLNJqhN4Uur2Ik9fmxpcioxIiUB+gT" + ], + "x-ms-correlation-request-id": [ + "eb77d8d5-d44a-4136-a68e-10858c90cb2e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14172" + ], + "x-ms-request-id": [ + "eb77d8d5-d44a-4136-a68e-10858c90cb2e" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191512Z:eb77d8d5-d44a-4136-a68e-10858c90cb2e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Sql01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1TcWwwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2860045d-91bb-47db-9f28-7255ac5da098" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Sql01\",\r\n \"name\": \"AzS-Sql01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "704" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv8D1eTzpK8G1AWnSlClOJP73NzutFJjrPkIC3IXf7O7U94Mrzxm/JJMbNXphG+SIy8CRQkEL/ke+IMhKdALlRpvwWQAtn6HHgCR7ZARv4Sf+uYVM+bfKypuT2FP++FumMIBUTlUNRqlaEWiTEABNU" + ], + "x-ms-correlation-request-id": [ + "791fe722-8335-4fe1-b6b8-15250de3be1f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14171" + ], + "x-ms-request-id": [ + "791fe722-8335-4fe1-b6b8-15250de3be1f" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191512Z:791fe722-8335-4fe1-b6b8-15250de3be1f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1XQVMwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7f68dc84-0bd1-4bea-9fd3-21b74fe6065f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\",\r\n \"name\": \"AzS-WAS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "704" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvQeWHkpXAnlWsNQa1vpFHKBAhp8S820if3g/3VRI6T2FJf0hsVyWN36FKMNzH368fSKd69TRSI8n8Xs0kNlVy6JPxqll/lU00uQ68yxt/TkQ85zwKDBRMDaF8FUWrXkiYn1xDrGigSO6ZQUuOBOFX" + ], + "x-ms-correlation-request-id": [ + "344614a1-d422-402d-82c5-b4ad49d3447b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14170" + ], + "x-ms-request-id": [ + "344614a1-d422-402d-82c5-b4ad49d3447b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191512Z:344614a1-d422-402d-82c5-b4ad49d3447b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1XQVNQMDE/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "affa365f-9593-418e-b9ca-86b915451c68" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\",\r\n \"name\": \"AzS-WASP01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "706" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvsI7qBxuqVQB+uxAp/922PdWtfAFznAqVh7APdm4sS1k5WdsJkt+WSv8OzUE5qRaIneJiqCcp7qU/Q1t9Pk1+vECNddddzF+4x5FhZ4Gw0eNN+XmS0TPibqzqXtSsNgxnrVtjb9WCIKyQzOoSMjgF" + ], + "x-ms-correlation-request-id": [ + "16b5e40a-ffca-4fc4-ba46-03ef5a3aa617" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14169" + ], + "x-ms-request-id": [ + "16b5e40a-ffca-4fc4-ba46-03ef5a3aa617" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191512Z:16b5e40a-ffca-4fc4-ba46-03ef5a3aa617" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1YcnAwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7a67ae23-05b6-45e8-8b59-453bedceaa22" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\",\r\n \"name\": \"AzS-Xrp01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "704" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv0SrOjUydiDeecYvCeoqcxJsRFEjEqqFKWe51bUyh5GB6ycNiFkUII/ehNKj7aKge047DcG0qVx3IW7DPpOLFXGN4kvWqcv4f+OIN/lFihNHnil2c7vm0YcZbf3bV6nMqvQ0VhEdgnrDH5zjL7HAi" + ], + "x-ms-correlation-request-id": [ + "1a78b239-ec84-4c33-ae5f-909cea524c45" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14168" + ], + "x-ms-request-id": [ + "1a78b239-ec84-4c33-ae5f-909cea524c45" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191512Z:1a78b239-ec84-4c33-ae5f-909cea524c45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllInfraRoles.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllInfraRoles.json new file mode 100644 index 000000000000..a3f1d5251ef9 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllInfraRoles.json @@ -0,0 +1,3016 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "545ac227-c7e3-4d98-9d5c-0b806fdfc287" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Active Directory Federation Services\",\r\n \"name\": \"Active Directory Federation Services\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ADFS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Authorization service (Administrator)\",\r\n \"name\": \"Authorization service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Authorization service (User)\",\r\n \"name\": \"Authorization service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure bridge\",\r\n \"name\": \"Azure bridge\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure Resource Manager (Administrator)\",\r\n \"name\": \"Azure Resource Manager (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure Resource Manager (User)\",\r\n \"name\": \"Azure Resource Manager (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Backup controller\",\r\n \"name\": \"Backup controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ERCS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Backup Restore Resource Provider\",\r\n \"name\": \"Backup Restore Resource Provider\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Capacity\",\r\n \"name\": \"Capacity\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Certificate management\",\r\n \"name\": \"Certificate management\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-CA01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Compute\",\r\n \"name\": \"Compute\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Compute controller\",\r\n \"name\": \"Compute controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Directory management\",\r\n \"name\": \"Directory management\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-DC01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Edge gateway\",\r\n \"name\": \"Edge gateway\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Gwy01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Gallery service (Administrator)\",\r\n \"name\": \"Gallery service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Gallery service (User)\",\r\n \"name\": \"Gallery service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Health controller\",\r\n \"name\": \"Health controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure deployment\",\r\n \"name\": \"Infrastructure deployment\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ERCS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure management controller\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure role controller\",\r\n \"name\": \"Infrastructure role controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Insights service (Administrator)\",\r\n \"name\": \"Insights service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Insights service (User)\",\r\n \"name\": \"Insights service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Internal data store\",\r\n \"name\": \"Internal data store\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Sql01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault\",\r\n \"name\": \"Key Vault\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault controller (Administrator)\",\r\n \"name\": \"Key Vault controller (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault controller (User)\",\r\n \"name\": \"Key Vault controller (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault name manager\",\r\n \"name\": \"Key Vault name manager\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault service (Administrator)\",\r\n \"name\": \"Key Vault service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault service (User)\",\r\n \"name\": \"Key Vault service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Load balancer multiplexer\",\r\n \"name\": \"Load balancer multiplexer\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-SLB01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Network\",\r\n \"name\": \"Network\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Network controller\",\r\n \"name\": \"Network controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-NC01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Partition request broker (Administrator)\",\r\n \"name\": \"Partition request broker (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Partition request broker (User)\",\r\n \"name\": \"Partition request broker (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Portal (Administrator)\",\r\n \"name\": \"Portal (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Portal (User)\",\r\n \"name\": \"Portal (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Privileged endpoint\",\r\n \"name\": \"Privileged endpoint\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ERCS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Region Management\",\r\n \"name\": \"Region Management\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage\",\r\n \"name\": \"Storage\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage controller\",\r\n \"name\": \"Storage controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage services\",\r\n \"name\": \"Storage services\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Subscriptions service\",\r\n \"name\": \"Subscriptions service\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Updates\",\r\n \"name\": \"Updates\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage Bridge host\",\r\n \"name\": \"Usage Bridge host\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage service (Administrator)\",\r\n \"name\": \"Usage service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage service (User)\",\r\n \"name\": \"Usage service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "22684" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv0sUfXTxxObxaSu8AcA8j/tMZiT1WLtNrOTl+oV0gHYpym6ZoIUIQfY67WCa43/5DNKABxnJCxHA4ZjTK0GntRbj3XFAumblx8TSeO38L7CUCpBeOHNmKZDJPSmdWbzvaPtfoBeREUSHDlwuyZxvo" + ], + "x-ms-correlation-request-id": [ + "6b12322d-2099-414c-9b81-68d1d2762287" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14213" + ], + "x-ms-request-id": [ + "6b12322d-2099-414c-9b81-68d1d2762287" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:6b12322d-2099-414c-9b81-68d1d2762287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Active%20Directory%20Federation%20Services?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9BY3RpdmUlMjBEaXJlY3RvcnklMjBGZWRlcmF0aW9uJTIwU2VydmljZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f9ccf8ff-3d00-448f-9d31-859fc6a06719" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Active Directory Federation Services\",\r\n \"name\": \"Active Directory Federation Services\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ADFS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "520" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvkpSRW6dWQKqCrimodrMfT7RvR6yhf7TRcablmGo7Hd0h4bRZi7UkIFQmAdf3R9lTerSntfxHRqM/URgGbD55j9xgAXSwybVC5FOsZtWxR/gbeQQEwq479uMJFkA0vqdosw/rH6/Ywc6Mck42rGn0" + ], + "x-ms-correlation-request-id": [ + "1ff90e88-55fa-446a-8331-85664202b07c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14212" + ], + "x-ms-request-id": [ + "1ff90e88-55fa-446a-8331-85664202b07c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:1ff90e88-55fa-446a-8331-85664202b07c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Authorization%20service%20(Administrator)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9BdXRob3JpemF0aW9uJTIwc2VydmljZSUyMCUyOEFkbWluaXN0cmF0b3IlMjk/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c69e1664-55ca-43ef-abae-47864fd6ddf9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Authorization service (Administrator)\",\r\n \"name\": \"Authorization service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "521" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvR0MTBAA24ppJ5l/2mg6jxBDkOpiUL27biqu5FXWKIWTafGN/mAtRySaLKpC4Onf3J67TE/Y58FMs/U0DrRUbFYBQGHXVb7xUwISfoCAeUJxKePQEW69pJ83TbZSswCUAVgP2+gpf/RVUB7qMgauL" + ], + "x-ms-correlation-request-id": [ + "e9d07f7e-c61e-4f2f-8f12-9c1c47e1dbb7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14211" + ], + "x-ms-request-id": [ + "e9d07f7e-c61e-4f2f-8f12-9c1c47e1dbb7" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:e9d07f7e-c61e-4f2f-8f12-9c1c47e1dbb7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Authorization%20service%20(User)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9BdXRob3JpemF0aW9uJTIwc2VydmljZSUyMCUyOFVzZXIlMjk/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "367f776e-b0e9-4dbc-9591-546d0c6c93ab" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Authorization service (User)\",\r\n \"name\": \"Authorization service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "504" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvYrvhdEOe0G0hbQ8rIeVDTOWAZlOatApFYx0VNzRuxujRl7LKAdW5O+pOkaYYyOf/q9SE7M6D1OZmplO2+T19zsiCKzirRpxXPFX96RKyW8bh2hfiTOu+y+EuzDdMTCMJE0RKbhzCGjOy7ycrGSNh" + ], + "x-ms-correlation-request-id": [ + "9b391a10-9ddc-432c-a9f9-90d8658df328" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14210" + ], + "x-ms-request-id": [ + "9b391a10-9ddc-432c-a9f9-90d8658df328" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:9b391a10-9ddc-432c-a9f9-90d8658df328" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure%20bridge?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9BenVyZSUyMGJyaWRnZT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8e58d157-64b6-4ffa-8e94-94222833acc9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure bridge\",\r\n \"name\": \"Azure bridge\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "471" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvYxNWwgbYmiM0L9zhXiZXdPuZ2EvmaMnuzYEwAuQ7aZmfKb1evoo2zPEdkSBgzL9XWt2+Ob4G9l5mpYU4qViL4cOwp8SgRu1d8Z5sKkMGEoBEkrEgCXZ3n79iv7uAOyvtO5eNbKjfTwuJ+L89YAzz" + ], + "x-ms-correlation-request-id": [ + "0c1ac775-745c-4942-b0cc-de8fc48894f1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14209" + ], + "x-ms-request-id": [ + "0c1ac775-745c-4942-b0cc-de8fc48894f1" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:0c1ac775-745c-4942-b0cc-de8fc48894f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure%20Resource%20Manager%20(Administrator)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9BenVyZSUyMFJlc291cmNlJTIwTWFuYWdlciUyMCUyOEFkbWluaXN0cmF0b3IlMjk/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "67a244b7-4811-431c-b862-40ddaf0cdfd3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure Resource Manager (Administrator)\",\r\n \"name\": \"Azure Resource Manager (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "523" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv/NiZT/w0JQRW469XPLvoy+XCRGOHkG19TBvejiwevc8yYSJJxnYE5mtVnAD7YwbQwccirI/tPtRfKvCctZtN1qVJDjnl8eUSJX5LwYCf2l8FOMt5wwHcS+J+O6cC3fJgtorMhmLNqq4NH1pgxaBN" + ], + "x-ms-correlation-request-id": [ + "512aaf64-de08-473a-b404-6d066e3dc2d4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14208" + ], + "x-ms-request-id": [ + "512aaf64-de08-473a-b404-6d066e3dc2d4" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:512aaf64-de08-473a-b404-6d066e3dc2d4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure%20Resource%20Manager%20(User)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9BenVyZSUyMFJlc291cmNlJTIwTWFuYWdlciUyMCUyOFVzZXIlMjk/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "321a3cc2-8c59-4b2b-98d2-97e18f495ef8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure Resource Manager (User)\",\r\n \"name\": \"Azure Resource Manager (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "506" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvW/7n2koqT41ZIYvM07GeBmlulPnBqmgK6XNLGZ9gYD89gO178FPdB/KvHgmrCLxjSik4T84sqozJvpwN/v++eVazpC2QEYaHm0ljO9IHKG/CQ/MFSljJUHjByVynIUA93I+WNgsOniQXZKVIMFce" + ], + "x-ms-correlation-request-id": [ + "87a52666-b9ff-4a6a-a292-051068f8802b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14207" + ], + "x-ms-request-id": [ + "87a52666-b9ff-4a6a-a292-051068f8802b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:87a52666-b9ff-4a6a-a292-051068f8802b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Backup%20controller?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9CYWNrdXAlMjBjb250cm9sbGVyP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "04d281ec-dbea-433f-aed1-41a311d1f457" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Backup controller\",\r\n \"name\": \"Backup controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ERCS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "482" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv+e/yN4PSzaywBEH7E+eeV1tec/cA7BJ//ITd1uX4sQdzRiedpaIIo/VAXz6CWQ/jwVsHEJC1KxBZ08+40+QjaPPqUoUuSyxCel1Qb+ecGNSZH1pWX2+e8xTNog6amCedcVTyjd9IflIGBoRZxsB+" + ], + "x-ms-correlation-request-id": [ + "b35476c1-404a-41d9-9db3-977e341ac73c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14206" + ], + "x-ms-request-id": [ + "b35476c1-404a-41d9-9db3-977e341ac73c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:b35476c1-404a-41d9-9db3-977e341ac73c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Backup%20Restore%20Resource%20Provider?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9CYWNrdXAlMjBSZXN0b3JlJTIwUmVzb3VyY2UlMjBQcm92aWRlcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "51b5f41f-915b-4a84-8bed-e1cd5a2011a5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Backup Restore Resource Provider\",\r\n \"name\": \"Backup Restore Resource Provider\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "511" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv9NRpbc57vw8+uu+GHlvuGcjRgBifqG5YMx13TGm4sStPTOjIwubC58NvW9IqrZ2J22VfFYL9QwDJ0MaJjeTfwirtIth6FZpdvJ6i+APHDIut/Mz/y0HVdgDO6Po8gI5AMbanA7rrKs3v6mkz+2LM" + ], + "x-ms-correlation-request-id": [ + "6f88aab1-3cb8-4965-817d-ab0fa894ce7e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14205" + ], + "x-ms-request-id": [ + "6f88aab1-3cb8-4965-817d-ab0fa894ce7e" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:6f88aab1-3cb8-4965-817d-ab0fa894ce7e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Capacity?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9DYXBhY2l0eT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ecec4bde-45e9-469d-9bcd-90f0139a5316" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Capacity\",\r\n \"name\": \"Capacity\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "463" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvawvQS71NUpbETjRe05flb9ArB4OZ+xqxTEck/oOlJl6RVE8rKYQ1fwbimgxr/wOpnHq5P62YNOD316k7QoY0Jv21641s8+/1sIxQjRSp2C4bMwksuXyRRrrK4gNWDak5t/1oLj9Z3RJMZ/d7pW84" + ], + "x-ms-correlation-request-id": [ + "337e68a7-d3bb-46e3-91cd-357cc35c6388" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14204" + ], + "x-ms-request-id": [ + "337e68a7-d3bb-46e3-91cd-357cc35c6388" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:337e68a7-d3bb-46e3-91cd-357cc35c6388" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Certificate%20management?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9DZXJ0aWZpY2F0ZSUyMG1hbmFnZW1lbnQ/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "26ca5cf8-65ff-4ee7-9ec0-70b3e9c21cf5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Certificate management\",\r\n \"name\": \"Certificate management\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-CA01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "490" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvxxXLQkxkP4qreDQIdHY1XKv1Xa5IdLZPMpdV9+5+w3UHEJ/ezYEK3pdofcefHlBVlLi12uf/YpqZ9idk1QCUPKWWSw4n8zu/ehg+tUHPIWy8B/Pker62sz705Mh18hMNn49jIW3RKXvqd8FO4i08" + ], + "x-ms-correlation-request-id": [ + "c6ab66e4-d2a7-4aab-b1e8-79f25a9ef5ca" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14203" + ], + "x-ms-request-id": [ + "c6ab66e4-d2a7-4aab-b1e8-79f25a9ef5ca" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:c6ab66e4-d2a7-4aab-b1e8-79f25a9ef5ca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Compute?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9Db21wdXRlP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "607bd829-4217-4d42-ba3c-b8c706a4ebbd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Compute\",\r\n \"name\": \"Compute\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "461" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRveQKUn35oKDdjymdcNhtYFLkpIPaGudjtpKiD5xUoH1ke+THU++L2U/JLQQUNInpFWleXrbUyCBk94QwLYFNI5qQki8AWh7755cPXleQrbP/PQxyVi4132sCCLHHbTqOOl6zvos4280EudtiJr00i" + ], + "x-ms-correlation-request-id": [ + "8cfc98e6-54b1-4130-9324-bd4220f0373f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14202" + ], + "x-ms-request-id": [ + "8cfc98e6-54b1-4130-9324-bd4220f0373f" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:8cfc98e6-54b1-4130-9324-bd4220f0373f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Compute%20controller?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9Db21wdXRlJTIwY29udHJvbGxlcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6dbd1183-f2eb-4645-8f67-d31703d2da2a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Compute controller\",\r\n \"name\": \"Compute controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv1lYhG3jgw3iSteb+XIN8HCuRu721B3zN/iRxuPlKBfTZoMs4ch2z6mDgsyrcTx2JJ4lwVl3e9i/D16tW12jJmsrdA7DsrbZeuA1d2Dqo4lAA1Pj3V0IToCHn2xMX86RdmwODCa8gs0VtHPNKR5Ae" + ], + "x-ms-correlation-request-id": [ + "eb711d2e-0cd3-4b55-a88d-63ed3d7a88d0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14201" + ], + "x-ms-request-id": [ + "eb711d2e-0cd3-4b55-a88d-63ed3d7a88d0" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:eb711d2e-0cd3-4b55-a88d-63ed3d7a88d0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Directory%20management?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9EaXJlY3RvcnklMjBtYW5hZ2VtZW50P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "52dcce24-5c9a-4220-95d9-3f52539a433f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Directory management\",\r\n \"name\": \"Directory management\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-DC01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "486" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvIw03OZbTJUbqC9X6SdumRWe5t7u4AHWK4H8/6KtQ/Mj+gZ38dmyQRUS9725c5z6+QKatpvw8lfhAyi5xGK3/6znzYUUaucHGndoj9QSXzk61we1e9nPz9XHBk0A9qoSBTGoIlo6RZiegWibDmcKo" + ], + "x-ms-correlation-request-id": [ + "926cc01e-7053-415b-ba2f-3889d0901018" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14200" + ], + "x-ms-request-id": [ + "926cc01e-7053-415b-ba2f-3889d0901018" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:926cc01e-7053-415b-ba2f-3889d0901018" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Edge%20gateway?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9FZGdlJTIwZ2F0ZXdheT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d4777490-1db0-4b90-8cea-79408374cb5b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Edge gateway\",\r\n \"name\": \"Edge gateway\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Gwy01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "471" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv4F8zcBsN1mrL7LQppffhOjV/uZ3DLkxGJax2rKWgRtn5UqooGKNsi6H5mAzvl7zLP8qzhTEV4ompneV8feBPviq0LRgGGsohxqSc5JnGTdsgN93g5tVQ7zfVCQbXmG+gWFctAZdlIls9Heqhfav/" + ], + "x-ms-correlation-request-id": [ + "ad1d59d7-1362-4c2b-8bc4-fd27b0fa99ba" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14199" + ], + "x-ms-request-id": [ + "ad1d59d7-1362-4c2b-8bc4-fd27b0fa99ba" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190902Z:ad1d59d7-1362-4c2b-8bc4-fd27b0fa99ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Gallery%20service%20(Administrator)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9HYWxsZXJ5JTIwc2VydmljZSUyMCUyOEFkbWluaXN0cmF0b3IlMjk/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "81e2ca49-3da9-439e-9e42-377eba26df6f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Gallery service (Administrator)\",\r\n \"name\": \"Gallery service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "509" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvaVWbsUOi+NlUEKpDZ+C/dDw4w4DiUAdX9chpQktQU9bbEO/btzZx13LRuz9KGbYCZrDizrGsIki9Hc7vDogYdU/9j3pJItT+2ySVlqsKn2uUTEyvfH5WNqJ/WE/NMDmnvEmzxgiUBsKn5yRXnXS6" + ], + "x-ms-correlation-request-id": [ + "068494ae-c067-4458-8f7a-45adb80afe5b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14198" + ], + "x-ms-request-id": [ + "068494ae-c067-4458-8f7a-45adb80afe5b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:068494ae-c067-4458-8f7a-45adb80afe5b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Gallery%20service%20(User)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9HYWxsZXJ5JTIwc2VydmljZSUyMCUyOFVzZXIlMjk/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "557f3cac-556c-4591-acd1-d10e9155b25c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Gallery service (User)\",\r\n \"name\": \"Gallery service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "492" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvqYk2gnnmfeN9xp8c27tmA941ukF/sOvPfCW9bL8QJKsIS3Z8tpL1sS3vxVE4hTwT26WBS+PwhuDPPRX9PHMOMMrrlieQ3A5aGSHvv59h28SotO+hceWvV5ue0MDMbZB+cMzWkF54X8i3B7ZAQhjy" + ], + "x-ms-correlation-request-id": [ + "5eb96419-68fa-4bf8-8418-3be2ffeba3a4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14197" + ], + "x-ms-request-id": [ + "5eb96419-68fa-4bf8-8418-3be2ffeba3a4" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:5eb96419-68fa-4bf8-8418-3be2ffeba3a4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Health%20controller?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9IZWFsdGglMjBjb250cm9sbGVyP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76617f4b-35c0-4beb-927e-6ef9c0915ada" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Health controller\",\r\n \"name\": \"Health controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "481" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvlBcUfGpNbGsSJMBrQ5/t6dHXOOMIEAgAYexZizeAQUpnxmXN4lctGGx5tbrPUmySy8JsPYvJwJKoR/KcaLILBjGKUp8GPvaUF4TFneztr8nwWQmk4ZorAtrsIHrKNFxSOiGvnymmg63N9s74t+gs" + ], + "x-ms-correlation-request-id": [ + "3e8cc7b3-7a85-4453-804f-2407a6fc76a4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14196" + ], + "x-ms-request-id": [ + "3e8cc7b3-7a85-4453-804f-2407a6fc76a4" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:3e8cc7b3-7a85-4453-804f-2407a6fc76a4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure%20deployment?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9JbmZyYXN0cnVjdHVyZSUyMGRlcGxveW1lbnQ/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "875f8b4a-9995-47c7-92cf-ecea00b627fe" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure deployment\",\r\n \"name\": \"Infrastructure deployment\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ERCS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "498" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvWDPjW3/losV6KjAF1qFFSdfQ7VI5QToAu5Cn0QEXEcLzx22/o0WWDpQm3MkF0E4JstOjXQ1gV2TBns2ZLxTT8g9+FkceVVsCVQuwV65qtT9cFNEkjKy80/0jGJ9btV2FRfZ/sMuLO+VIEqhZlYNW" + ], + "x-ms-correlation-request-id": [ + "3192c982-0b62-4174-8368-062ef6c34b6b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14195" + ], + "x-ms-request-id": [ + "3192c982-0b62-4174-8368-062ef6c34b6b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:3192c982-0b62-4174-8368-062ef6c34b6b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure%20management%20controller?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9JbmZyYXN0cnVjdHVyZSUyMG1hbmFnZW1lbnQlMjBjb250cm9sbGVyP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3929f1c9-741e-4958-a741-db7d3b7f30d4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure management controller\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "519" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvVbumSp4iTPJQB4sQdMXrXDiRwGQMuflPysPAONnCuj1cuiYOnqiOUp4wjYYXRUGxqyjhhkWE4Th32pliy0O5Edt8nRgG/DbQ7jBfhd82MnOrcPe6eBAo3cD3FwXdvDeJwrbs1QDvHbbjQzzOkngG" + ], + "x-ms-correlation-request-id": [ + "5c0c88da-6e65-4d47-977c-46d5df235f56" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14194" + ], + "x-ms-request-id": [ + "5c0c88da-6e65-4d47-977c-46d5df235f56" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:5c0c88da-6e65-4d47-977c-46d5df235f56" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure%20role%20controller?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9JbmZyYXN0cnVjdHVyZSUyMHJvbGUlMjBjb250cm9sbGVyP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "45a66a76-5548-4122-a121-26f0c73f029a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure role controller\",\r\n \"name\": \"Infrastructure role controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "507" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvvsF1MKOSf0BZW885W1M4S/mibnaojNgdWEmtg01DU0xXIE81Hv+Qkw1B4A8ZCTRerRaS3gGAvI17ZWOkcPfm7RhUGMzzRvc/t8amv64WlnPBzAIjxl1hRDpV4JQCJcY9cn5dalbqzlK2704lvEFs" + ], + "x-ms-correlation-request-id": [ + "f39d62d4-f3a6-4cb1-a126-194ba1faac86" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14193" + ], + "x-ms-request-id": [ + "f39d62d4-f3a6-4cb1-a126-194ba1faac86" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:f39d62d4-f3a6-4cb1-a126-194ba1faac86" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Insights%20service%20(Administrator)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9JbnNpZ2h0cyUyMHNlcnZpY2UlMjAlMjhBZG1pbmlzdHJhdG9yJTI5P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fcf23f63-932a-430c-883f-386c6055a700" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Insights service (Administrator)\",\r\n \"name\": \"Insights service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "511" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvwAOw7m0mfD2RAcGfwFcWDOnIvF8k3MnGl8dOsl+58D4E9RTfMT1DcG/1LEm7plAv7rjV4DPQiXPe2vK/MnS/mzvzMdN12qYNlWORVcrs3cd2w7YVAU0+Qwh7X1rWCGQ+fS5g8pEA3UbLoaILe1pU" + ], + "x-ms-correlation-request-id": [ + "2a6d9b64-66be-47d1-bb83-ae53e6909ca3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14192" + ], + "x-ms-request-id": [ + "2a6d9b64-66be-47d1-bb83-ae53e6909ca3" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:2a6d9b64-66be-47d1-bb83-ae53e6909ca3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Insights%20service%20(User)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9JbnNpZ2h0cyUyMHNlcnZpY2UlMjAlMjhVc2VyJTI5P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "093469fa-c34d-4c47-94bb-50da86e62828" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Insights service (User)\",\r\n \"name\": \"Insights service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvwcSUR1WUQTcuFBliT0mvd6IAHJadaccD9k0UyfZmrK3EPNlt04HZ/0yuk3RebS9OcPMpisvfyQO/LOIPl7bt+D7XyjJn1bRYWm5oEC4TP3H9822CSElXAmN249tXz8IB42jD6aPlO7XORG/Seb6k" + ], + "x-ms-correlation-request-id": [ + "c84216db-65ea-4e9c-bfe2-8d8361e68905" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14191" + ], + "x-ms-request-id": [ + "c84216db-65ea-4e9c-bfe2-8d8361e68905" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:c84216db-65ea-4e9c-bfe2-8d8361e68905" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Internal%20data%20store?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9JbnRlcm5hbCUyMGRhdGElMjBzdG9yZT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "86bd37ea-a8df-47f1-ba96-e3b89f7a5cee" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Internal data store\",\r\n \"name\": \"Internal data store\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Sql01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "485" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvHy4KZ0ZkyfGUvY4CuMpH5CzG5Ifig2jqRjQvnvVtY3PAPjyZVqVcG9H+VS75l5j7Gd1FQZT+IdR1BGt+kFUSjR05iuBPVs03vNa/ZgzE/aVNvYjWlbqNoZQCaICEViFBMHMWH2LYfjWD9eHkFQ4o" + ], + "x-ms-correlation-request-id": [ + "8e8d5042-8835-4201-bb31-b6a84df24a38" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14190" + ], + "x-ms-request-id": [ + "8e8d5042-8835-4201-bb31-b6a84df24a38" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:8e8d5042-8835-4201-bb31-b6a84df24a38" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key%20Vault?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9LZXklMjBWYXVsdD9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a6b83377-1f78-4b46-8201-007a4a36ef48" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault\",\r\n \"name\": \"Key Vault\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "465" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvk6SgA3uqfq/k6J63jW2QiLs6xhEu499dH6+J85bc3J619ehhwMy4bhfGhu8J5wh18gdc+KB8B1r2WTcTNCRMoo6thlryuu/qqnCQxmU5bIg7n4XO4kFIHGK8FQPyYwaLo8/WK1Tt8qlI6BTYCVTH" + ], + "x-ms-correlation-request-id": [ + "dd100bbe-edbf-42d8-a24a-bebcf8f5bc53" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14189" + ], + "x-ms-request-id": [ + "dd100bbe-edbf-42d8-a24a-bebcf8f5bc53" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:dd100bbe-edbf-42d8-a24a-bebcf8f5bc53" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key%20Vault%20controller%20(Administrator)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9LZXklMjBWYXVsdCUyMGNvbnRyb2xsZXIlMjAlMjhBZG1pbmlzdHJhdG9yJTI5P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5b1647fe-9907-42ab-87bd-e97681bdc451" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault controller (Administrator)\",\r\n \"name\": \"Key Vault controller (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "519" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvIVDS6XWCr2L8mtBlSmOSLC7K7mTjonyO6RVCj7gMlae4BPDIoUCsr/0/yXEBrJy55YRBhmWTBd3q8NgY/cLF5sf3yPYvNkdTTlA0L6QZ5WJ44FbPe2zSLFcyEi5cyQi8zBADt+q85JkfNvwRgwBW" + ], + "x-ms-correlation-request-id": [ + "5120d237-917b-4943-a3f5-1b21cc67793a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14188" + ], + "x-ms-request-id": [ + "5120d237-917b-4943-a3f5-1b21cc67793a" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:5120d237-917b-4943-a3f5-1b21cc67793a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key%20Vault%20controller%20(User)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9LZXklMjBWYXVsdCUyMGNvbnRyb2xsZXIlMjAlMjhVc2VyJTI5P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "610f8716-7593-4063-87cf-d2f28542fef6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault controller (User)\",\r\n \"name\": \"Key Vault controller (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "501" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvOqJqO52PC0wXPT6hQ5PNybLbvGZJ4a8Ek7JnOg33j+hQvAprShKSkJARi5sPlAiXy1oiHZCouHd06wanRFLU42VOgv43u6LKTyDsYBw7kQzKolkovIpAKutD++9g3X7o8B50qbUr5I0V7xnLnXA1" + ], + "x-ms-correlation-request-id": [ + "7a145f66-82b1-4510-a33a-6d355167b6e1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14187" + ], + "x-ms-request-id": [ + "7a145f66-82b1-4510-a33a-6d355167b6e1" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:7a145f66-82b1-4510-a33a-6d355167b6e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key%20Vault%20name%20manager?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9LZXklMjBWYXVsdCUyMG5hbWUlMjBtYW5hZ2VyP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eb28b838-fd9f-4c79-8be7-207da74c366a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault name manager\",\r\n \"name\": \"Key Vault name manager\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "491" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvxsZiDuoSYQoZ+1hTdI2KNd6hq2b4UzBwMVpaNDVQK/Dy1476u62X3bzK8UhcNVF23WCTU64TS6SxDGrr4Fwta+L4EL4N3B38yfT2RMGWGuy5TxG/SU9jV2gMrqPsXn6ZK9jFNz76Dl01CBPzYwfn" + ], + "x-ms-correlation-request-id": [ + "badd5194-146e-4502-b899-66cbf2de8114" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14186" + ], + "x-ms-request-id": [ + "badd5194-146e-4502-b899-66cbf2de8114" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:badd5194-146e-4502-b899-66cbf2de8114" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key%20Vault%20service%20(Administrator)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9LZXklMjBWYXVsdCUyMHNlcnZpY2UlMjAlMjhBZG1pbmlzdHJhdG9yJTI5P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fb19f618-1d33-450b-a423-5120d9db3948" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault service (Administrator)\",\r\n \"name\": \"Key Vault service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "513" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvObr5JqNriIR79gsacmME3Q0+4A2afgscrcGkqQYBm4vC+iPw2WzrGlire7GULNH+SLxyp2wCVXsdY0ZdBnZN9PpAqIalSzLPw4BvSeCFGgdP13UMVjXzS9HLBiNdTc6h9UJqr21oBAFDZIBsw6TU" + ], + "x-ms-correlation-request-id": [ + "8ad432db-d984-41f9-b7c4-ac09d7f20f8a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14185" + ], + "x-ms-request-id": [ + "8ad432db-d984-41f9-b7c4-ac09d7f20f8a" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:8ad432db-d984-41f9-b7c4-ac09d7f20f8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key%20Vault%20service%20(User)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9LZXklMjBWYXVsdCUyMHNlcnZpY2UlMjAlMjhVc2VyJTI5P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "50fc0d18-f092-4539-9079-9a1d210a78a0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault service (User)\",\r\n \"name\": \"Key Vault service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "495" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv1prFHQfXLCu/53KQFUDW3t9n7lKFwDYqfBhFGS0QcJa8QAFK0MK3jflBLKFH5Rk6fp03TaZ6P5Y2JBkAIdJ3UQZ5AJ/PDGAVhxKidEI6l5D2di/kXTXX1K+6wEJTaCKNSVShobjRYnl/KGBSkAdY" + ], + "x-ms-correlation-request-id": [ + "cc7edef5-5fca-4ef8-89ed-ba200a7211e2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14184" + ], + "x-ms-request-id": [ + "cc7edef5-5fca-4ef8-89ed-ba200a7211e2" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:cc7edef5-5fca-4ef8-89ed-ba200a7211e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Load%20balancer%20multiplexer?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9Mb2FkJTIwYmFsYW5jZXIlMjBtdWx0aXBsZXhlcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7a9c33da-fe1d-42ce-9a55-3c59a72018c1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Load balancer multiplexer\",\r\n \"name\": \"Load balancer multiplexer\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-SLB01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "497" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRviIwOZjZqn1F+fMvPR305ssJb8NTvrLZxWvAxh9TSMZTM5x+I6cXO4Qi1gMwglX9SKsAyVPmQko+OGs2mOm6BzGe3sRE9BZHEjlicS8vID+z5VBdMFbh3AS2eODbw7FdI6RAAUhfrQpcQQCDhUfWi" + ], + "x-ms-correlation-request-id": [ + "b54d062b-aea5-46a0-aff6-6c8834cc2b10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14183" + ], + "x-ms-request-id": [ + "b54d062b-aea5-46a0-aff6-6c8834cc2b10" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:b54d062b-aea5-46a0-aff6-6c8834cc2b10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Network?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9OZXR3b3JrP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6c11b48d-2db7-4542-8e05-11e48991b52c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Network\",\r\n \"name\": \"Network\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "461" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvwPNDZrbqXOq/srsvUaah8Vygy3CySetQ8Kq9omtouDZgfUZlYBZfoYO9gWq+qg2hNdokFS2a0t3vkaxTtebeb8RQEE5gHQ3Gr07dTW5lv9Ifd5iUHxWWZkPmfwAHqKZh9JZcXmXs8V/jPC7nr56n" + ], + "x-ms-correlation-request-id": [ + "caefa043-2c33-4176-9feb-ca7da7a91470" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14182" + ], + "x-ms-request-id": [ + "caefa043-2c33-4176-9feb-ca7da7a91470" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:caefa043-2c33-4176-9feb-ca7da7a91470" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Network%20controller?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9OZXR3b3JrJTIwY29udHJvbGxlcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ed9e5771-cc05-4496-8eb5-958698e5c1ae" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Network controller\",\r\n \"name\": \"Network controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-NC01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "482" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvc+QkbF7YSAla+3q5JKSpRPxch7Pp6Db1Ao0BTn8DtGtGxWy87t/54mfbNbJxHjBa/f0VPLIxyrMWuIh4u6svFW4VREe7w7f9sZbmI0uZDUNVkK9Rk2iqMK1bApL1fJv4k8a3EY2glzxDaepMloc2" + ], + "x-ms-correlation-request-id": [ + "db7b819a-7ccc-4a6d-a2ad-55ef4fc7ed4c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14181" + ], + "x-ms-request-id": [ + "db7b819a-7ccc-4a6d-a2ad-55ef4fc7ed4c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:db7b819a-7ccc-4a6d-a2ad-55ef4fc7ed4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Partition%20request%20broker%20(Administrator)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9QYXJ0aXRpb24lMjByZXF1ZXN0JTIwYnJva2VyJTIwJTI4QWRtaW5pc3RyYXRvciUyOT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "59c88bfb-7374-4229-8b65-129c51362435" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Partition request broker (Administrator)\",\r\n \"name\": \"Partition request broker (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "527" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvCDb9K+Pr01/Efj1dLGain0wUEr3XSKyVRxWdbQMP3o7Gryg0pb+87Ufyn6RaHLFUAjhzFtAZVk7wZvmC4HM1mZfWtBg4q9MjefQrOdd4FPASEAcR83hMRwwFK/4R7KnWy896A3AxyAFLIdsJB6XF" + ], + "x-ms-correlation-request-id": [ + "e26ca0b4-1853-40d7-920c-66cc8a647e16" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14180" + ], + "x-ms-request-id": [ + "e26ca0b4-1853-40d7-920c-66cc8a647e16" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:e26ca0b4-1853-40d7-920c-66cc8a647e16" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Partition%20request%20broker%20(User)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9QYXJ0aXRpb24lMjByZXF1ZXN0JTIwYnJva2VyJTIwJTI4VXNlciUyOT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f7432dcc-d7a3-454e-a558-cc9ca5e0541c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Partition request broker (User)\",\r\n \"name\": \"Partition request broker (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "509" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvJbgiI02xaNcdbIhl0PBzGtCuUj5Bk2It5u069KyJTEhpt0nYc/3yaohaJE3hItMTyojRAmIAMTp/5lmyAZ+iVGHkd1bZvNUtIioo61EfrjQi4gnCsSS9/7SgGYNdLZAyXnCXB1/jo1gRDcwq2jC6" + ], + "x-ms-correlation-request-id": [ + "d61f2fc4-0b28-4c90-93c1-18264d0529fd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14179" + ], + "x-ms-request-id": [ + "d61f2fc4-0b28-4c90-93c1-18264d0529fd" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:d61f2fc4-0b28-4c90-93c1-18264d0529fd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Portal%20(Administrator)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9Qb3J0YWwlMjAlMjhBZG1pbmlzdHJhdG9yJTI5P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d872c7a4-e799-4d51-90f0-d8f21e07236a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Portal (Administrator)\",\r\n \"name\": \"Portal (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "491" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvZsRIcmw9FsdWCWrplOxyUIquaUUvQQMBEQQkfVqwaWOGwO2ADRKvRlWySC68YUdXkI7Iy/cggKeTi2+4Si2XJKj6DpmiJFqjOw52KF+aEfa6JIAan8XW0Pq7kn8V6eoF1BIpW7Ux/BDWk1D8KE5N" + ], + "x-ms-correlation-request-id": [ + "2467a391-6851-4ca7-9fe5-5198bcda6346" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14178" + ], + "x-ms-request-id": [ + "2467a391-6851-4ca7-9fe5-5198bcda6346" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:2467a391-6851-4ca7-9fe5-5198bcda6346" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Portal%20(User)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9Qb3J0YWwlMjAlMjhVc2VyJTI5P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "763f026b-9aee-4f5d-97be-bd49994b5d34" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Portal (User)\",\r\n \"name\": \"Portal (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "474" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvAIczN54+arWygK5qscCZ5UNAlmuomb8RK5CXFF7y44FkoxktvyLhh7H8JToMNzyBcnbQQlg9Dc3uA9/BTMx/IA85xAirdVzxwMvOlvuLWLs0bwA9+uKi4UAOUU64qQ4XCnaWAjo8Tvr/kcOMvkSt" + ], + "x-ms-correlation-request-id": [ + "8dcc62a9-144b-4ea4-9701-c99fb1b7ce27" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14177" + ], + "x-ms-request-id": [ + "8dcc62a9-144b-4ea4-9701-c99fb1b7ce27" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:8dcc62a9-144b-4ea4-9701-c99fb1b7ce27" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Privileged%20endpoint?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9Qcml2aWxlZ2VkJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9cca8699-f6cc-4787-8828-8ebdb497aedc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Privileged endpoint\",\r\n \"name\": \"Privileged endpoint\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ERCS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "486" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvUlwZm+UEbQMSpOu/RVYlmUPjr7uX6EPF3CnWvT0xjOqQPP+I0lJn7CWwTbuz+5yjNt+bmfTGTbIln6nE5lEYqzyB/OuOWVN3lj5osfJSuekbGhITA81ITnDt+mo4zsQIRvlCfJqcI3V1Ok1MGmp9" + ], + "x-ms-correlation-request-id": [ + "aaa46377-bd0e-42ec-aee7-c8e0fe6f79b3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14176" + ], + "x-ms-request-id": [ + "aaa46377-bd0e-42ec-aee7-c8e0fe6f79b3" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:aaa46377-bd0e-42ec-aee7-c8e0fe6f79b3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Region%20Management?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9SZWdpb24lMjBNYW5hZ2VtZW50P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7e4283e1-0abb-42b6-9f63-663349bda7d2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Region Management\",\r\n \"name\": \"Region Management\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "481" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvcuw/cfBhFJGJ9/l6USHB8og80okSD5mJfjHY9eY7DJL4Tvh4hO5VOOtpXsipwTpwIeOH8SyZyg/eTjxEhvEpzS1J63L9x4gjEVBWQejEtwdBoOnTR9NnsAGLtWrNijhNi3EdCZME2p6b/A/lZb0K" + ], + "x-ms-correlation-request-id": [ + "e9115101-b702-4c95-8b31-6513b9334cad" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14175" + ], + "x-ms-request-id": [ + "e9115101-b702-4c95-8b31-6513b9334cad" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:e9115101-b702-4c95-8b31-6513b9334cad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9TdG9yYWdlP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a83883c5-469b-429d-b67b-a8242fbb3912" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage\",\r\n \"name\": \"Storage\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "461" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvZD1pzlYOsYE/DEyeMOdVKuQmSGSeXj7tfkSOQBHvLA9nMyAkKpZfjCWXB//mbGy1uFv82kh6TJdqRxOGrrTsMJUfK+y+Ii0Mebj15ASYzuQFOqAm+rIX+Fz7dGh6jpa9R34bXpBnN7LPqPSs7Ev+" + ], + "x-ms-correlation-request-id": [ + "72c2ba96-a4b5-494c-92e7-c99411d2f93d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14174" + ], + "x-ms-request-id": [ + "72c2ba96-a4b5-494c-92e7-c99411d2f93d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:72c2ba96-a4b5-494c-92e7-c99411d2f93d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage%20controller?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9TdG9yYWdlJTIwY29udHJvbGxlcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0b518bbe-eb0e-44ef-b0e7-a57417c00127" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage controller\",\r\n \"name\": \"Storage controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvN/a2AsOiAHOleQrxKomLIpwYZpQ0NK+YNTP33KtGdYTG4ZbqQxuOOOLo5Rqs68O4GYfv5P6Y8ABdUoGYPvQpD//V4YEPJg5H+Btqega/J5zVc/oXC2RgXB+RbAm0nf958M8OhkYcgcwZxmq/0Uz+" + ], + "x-ms-correlation-request-id": [ + "d569bc62-f92d-4c30-9806-c8e778db1c7d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14173" + ], + "x-ms-request-id": [ + "d569bc62-f92d-4c30-9806-c8e778db1c7d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190903Z:d569bc62-f92d-4c30-9806-c8e778db1c7d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage%20services?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9TdG9yYWdlJTIwc2VydmljZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3bec8dcb-b189-4dc8-9d35-d88e6a87b47c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage services\",\r\n \"name\": \"Storage services\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "479" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvy3vkj1Fl3t1MxM+eAV+dJx5KIKDrLLU49bSofhHHAjAo/u4l+9tnstlZIP+iRlaZSFfjdIFkLeezZDnYAm+sSTZiNSKCftxrDW48opJ6zwq2M6gNJR5n/Na9+y4GhoKUOPlU6rTKcfu93KdyttZN" + ], + "x-ms-correlation-request-id": [ + "93d061c7-6a6b-4a54-9110-0c4cbb5fca76" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14172" + ], + "x-ms-request-id": [ + "93d061c7-6a6b-4a54-9110-0c4cbb5fca76" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190904Z:93d061c7-6a6b-4a54-9110-0c4cbb5fca76" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Subscriptions%20service?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9TdWJzY3JpcHRpb25zJTIwc2VydmljZT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d1c78d11-6091-4139-9e52-0854e0617007" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Subscriptions service\",\r\n \"name\": \"Subscriptions service\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "489" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvtRXGq7nrUTmyWOaGEwWqS7jvdjRduzLUMfHakDNFzzv0vNM1kdEtierNQqUauq90KELShNIUV451G1zGhH1zE4XUR+SvzlrNRxC80X4PBvgNhAFLewCuVBOxQndAxr4O/X2UuN6U72dcOFWjg0Zc" + ], + "x-ms-correlation-request-id": [ + "71ccef36-94c6-405c-9f81-1ae98d880870" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14171" + ], + "x-ms-request-id": [ + "71ccef36-94c6-405c-9f81-1ae98d880870" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190904Z:71ccef36-94c6-405c-9f81-1ae98d880870" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Updates?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9VcGRhdGVzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "38767a38-a83c-4de7-91ee-46d13f5aaf1a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Updates\",\r\n \"name\": \"Updates\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "461" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvzNI8vXifmXWCakraP/asZ8kA9pfpJLMW9yQmEMKGD2GzzkJiTtZwkqGwyTquxUfZoga5QHlozHwAyB5VH9sfJGa439OiupJZEmF6yAsgeQ+TEqzDrnLJUObXu/cIbHkkK2tyyiYqs47yH72KJqj/" + ], + "x-ms-correlation-request-id": [ + "c6917813-b2a8-4420-9152-2250d2ac2b2a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14170" + ], + "x-ms-request-id": [ + "c6917813-b2a8-4420-9152-2250d2ac2b2a" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190904Z:c6917813-b2a8-4420-9152-2250d2ac2b2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage%20Bridge%20host?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9Vc2FnZSUyMEJyaWRnZSUyMGhvc3Q/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3412aed3-c7c9-4b26-b892-c525f4720a10" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage Bridge host\",\r\n \"name\": \"Usage Bridge host\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "481" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv5EgUy7Sb1A9/KheqzQDn33+5Pd6N9UkwPa1beZ8PWRCGjzZS4s31LuH8w7ecDsjXsB7k2EXdfHAIZbD8wgq2Ca4aqbrk4z4zVDDesmkTtj/A7VsfxS7V/Lx2pR8WoBskj+f4c4GiQS/4MS1i/Sk5" + ], + "x-ms-correlation-request-id": [ + "1fb72de2-c7bf-4d51-9116-d1605aee5034" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14169" + ], + "x-ms-request-id": [ + "1fb72de2-c7bf-4d51-9116-d1605aee5034" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190904Z:1fb72de2-c7bf-4d51-9116-d1605aee5034" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage%20service%20(Administrator)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9Vc2FnZSUyMHNlcnZpY2UlMjAlMjhBZG1pbmlzdHJhdG9yJTI5P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b7ffca52-e4ec-4574-94b8-155c78c76f8d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage service (Administrator)\",\r\n \"name\": \"Usage service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvaXjMNVToGi4z5rGfB09WjSHLRBnvgUgU5mEhlUeVtj6hg8fxSLCOfRtyAQvBNRKNekWLgLCEhnwavA2mumEvy3o3Qx53quZJRfpkvQ1z52U65Ie823ZwOx9PwZx8bk2vZDX02n+Luz2o1IiYh8uT" + ], + "x-ms-correlation-request-id": [ + "cbb0a3fa-2b5a-4c42-89a9-cc257d5f3add" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14168" + ], + "x-ms-request-id": [ + "cbb0a3fa-2b5a-4c42-89a9-cc257d5f3add" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190904Z:cbb0a3fa-2b5a-4c42-89a9-cc257d5f3add" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage%20service%20(User)?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9Vc2FnZSUyMHNlcnZpY2UlMjAlMjhVc2VyJTI5P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3e692953-a338-47a1-8237-93b8be842cf7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage service (User)\",\r\n \"name\": \"Usage service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "488" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvsbfIQSOj/9bMtmD+QT2DK2k4fireoQB7M54dgLuPx3LVAlBGAZcQAaBxXgSw2NPuVaRWai+BSRMR1W9y9/+gB/X+mubNBd5NIZWRS88XG1lf+uhWoLwGqY/mTw+rgW9ag6c7jzwO5Ia0sQb88yTh" + ], + "x-ms-correlation-request-id": [ + "19a1d95c-892c-4c43-b14f-5e3be76f12bf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14167" + ], + "x-ms-request-id": [ + "19a1d95c-892c-4c43-b14f-5e3be76f12bf" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190904Z:19a1d95c-892c-4c43-b14f-5e3be76f12bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllIpPools.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllIpPools.json new file mode 100644 index 000000000000..1332c67c726a --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllIpPools.json @@ -0,0 +1,456 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaXBQb29scz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8beef4f5-434f-4cae-aba0-c7b900376821" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/08786a0f-ad8c-43aa-a154-06083abfc1ac\",\r\n \"name\": \"08786a0f-ad8c-43aa-a154-06083abfc1ac\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.105.1\",\r\n \"endIpAddress\": \"192.168.105.255\",\r\n \"numberOfIpAddresses\": 255,\r\n \"numberOfAllocatedIpAddresses\": 8,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/75e93974-f451-468d-bbc2-8a388a938344\",\r\n \"name\": \"75e93974-f451-468d-bbc2-8a388a938344\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.112\",\r\n \"endIpAddress\": \"192.168.200.127\",\r\n \"numberOfIpAddresses\": 16,\r\n \"numberOfAllocatedIpAddresses\": 1,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/7c9d2d8a-e243-4d4d-b635-9545ba2bd8a8\",\r\n \"name\": \"7c9d2d8a-e243-4d4d-b635-9545ba2bd8a8\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.65\",\r\n \"endIpAddress\": \"192.168.200.111\",\r\n \"numberOfIpAddresses\": 47,\r\n \"numberOfAllocatedIpAddresses\": 0,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/a09498cb-d6b3-4d6e-9c3d-0caea30cfb58\",\r\n \"name\": \"a09498cb-d6b3-4d6e-9c3d-0caea30cfb58\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.1\",\r\n \"endIpAddress\": \"192.168.200.62\",\r\n \"numberOfIpAddresses\": 62,\r\n \"numberOfAllocatedIpAddresses\": 1,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/a8dee838-b2b7-4648-8a00-2c61ff8ffde6\",\r\n \"name\": \"a8dee838-b2b7-4648-8a00-2c61ff8ffde6\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.102.1\",\r\n \"endIpAddress\": \"192.168.102.255\",\r\n \"numberOfIpAddresses\": 255,\r\n \"numberOfAllocatedIpAddresses\": 31,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/c743f3e0-9fa4-4236-8c3d-a0f8ad945fb4\",\r\n \"name\": \"c743f3e0-9fa4-4236-8c3d-a0f8ad945fb4\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.224\",\r\n \"endIpAddress\": \"192.168.200.254\",\r\n \"numberOfIpAddresses\": 31,\r\n \"numberOfAllocatedIpAddresses\": 1,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2988" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvQsaCKLcZpkJ0XIZS3fOahY8Du7ycaskPxa18lGUSxkBkgkZHcS/qkNYICaRZ1ZEQzSDN4l0E2dtOiITJH61EhVq1vnNGLQysYuBXPGtRxBKZf+EzzYHo+Xeg9DaBcbqJ9jcJtIy8HMre4CT9qOCb" + ], + "x-ms-correlation-request-id": [ + "dbee3b8c-cff0-4406-9f80-e91d609abf43" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14120" + ], + "x-ms-request-id": [ + "dbee3b8c-cff0-4406-9f80-e91d609abf43" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:dbee3b8c-cff0-4406-9f80-e91d609abf43" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/08786a0f-ad8c-43aa-a154-06083abfc1ac?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaXBQb29scy8wODc4NmEwZi1hZDhjLTQzYWEtYTE1NC0wNjA4M2FiZmMxYWM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "008df0dd-7393-4a5b-a071-191a5e6383d9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/08786a0f-ad8c-43aa-a154-06083abfc1ac\",\r\n \"name\": \"08786a0f-ad8c-43aa-a154-06083abfc1ac\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.105.1\",\r\n \"endIpAddress\": \"192.168.105.255\",\r\n \"numberOfIpAddresses\": 255,\r\n \"numberOfAllocatedIpAddresses\": 8,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "495" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvqc+uF/4Sj5jl/cOfA7e4EG+zYf+Av5LYg+Y82cGXLD/RBFwHD1pkzlGAhafWlF6yRGYpbl6m0E6zlAXmfjeLWa16rSU0IY7wxRbroznBZqT1tDasheQ8aZoEpWVZp/lj3QjIvAKRL4EzxmGY5qBq" + ], + "x-ms-correlation-request-id": [ + "2aecdda1-cd43-4ba2-8ee0-8475895950f1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14119" + ], + "x-ms-request-id": [ + "2aecdda1-cd43-4ba2-8ee0-8475895950f1" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:2aecdda1-cd43-4ba2-8ee0-8475895950f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/75e93974-f451-468d-bbc2-8a388a938344?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaXBQb29scy83NWU5Mzk3NC1mNDUxLTQ2OGQtYmJjMi04YTM4OGE5MzgzNDQ/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2ad66306-6e66-4642-acf4-80ad06e183e6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/75e93974-f451-468d-bbc2-8a388a938344\",\r\n \"name\": \"75e93974-f451-468d-bbc2-8a388a938344\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.112\",\r\n \"endIpAddress\": \"192.168.200.127\",\r\n \"numberOfIpAddresses\": 16,\r\n \"numberOfAllocatedIpAddresses\": 1,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "496" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvO5y+bAj//eWR7z2/rwpTXdyxGUw0/d5uZwA6Y3RvNPeWE+nd/08Sd1ygmyuaHGgUdKO7pb5H1iV4qTOeKaWiRQL7DLRxNjntYrwzNVf/zRv9tiCRKdvNyK1CwIMK5D0J/XdN1wF4n1c1CYidxwjb" + ], + "x-ms-correlation-request-id": [ + "7c0384e7-ca10-450b-8372-87b5b537798b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14118" + ], + "x-ms-request-id": [ + "7c0384e7-ca10-450b-8372-87b5b537798b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:7c0384e7-ca10-450b-8372-87b5b537798b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/7c9d2d8a-e243-4d4d-b635-9545ba2bd8a8?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaXBQb29scy83YzlkMmQ4YS1lMjQzLTRkNGQtYjYzNS05NTQ1YmEyYmQ4YTg/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bef60c4e-d09e-4256-af56-a61f88cefba1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/7c9d2d8a-e243-4d4d-b635-9545ba2bd8a8\",\r\n \"name\": \"7c9d2d8a-e243-4d4d-b635-9545ba2bd8a8\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.65\",\r\n \"endIpAddress\": \"192.168.200.111\",\r\n \"numberOfIpAddresses\": 47,\r\n \"numberOfAllocatedIpAddresses\": 0,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "495" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvGmiWMYosBvnROGS2fZ4Hr8CmhFjKWFe/HjJfGN8H92S8XnngZ5ImW2ABv4+eGdFHyaZJItJ8EGQuoD1dpDxB0CkTSmciIJUo9dVObwEbsF/Rtt+RrYmKd6SOWziJXo1qFmyedkA0dCRdRRxuoNRi" + ], + "x-ms-correlation-request-id": [ + "7af9096b-a07d-4372-bd9b-66b3d3e276ba" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14117" + ], + "x-ms-request-id": [ + "7af9096b-a07d-4372-bd9b-66b3d3e276ba" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:7af9096b-a07d-4372-bd9b-66b3d3e276ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/a09498cb-d6b3-4d6e-9c3d-0caea30cfb58?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaXBQb29scy9hMDk0OThjYi1kNmIzLTRkNmUtOWMzZC0wY2FlYTMwY2ZiNTg/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7450c00f-8b52-4873-b392-437d73001f1f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/a09498cb-d6b3-4d6e-9c3d-0caea30cfb58\",\r\n \"name\": \"a09498cb-d6b3-4d6e-9c3d-0caea30cfb58\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.1\",\r\n \"endIpAddress\": \"192.168.200.62\",\r\n \"numberOfIpAddresses\": 62,\r\n \"numberOfAllocatedIpAddresses\": 1,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "493" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv4otMXx7NjTrsCxnr3ReZ4QWab+j3pItuEcCZflJHcav5PIJSMOofr5zEJkHvSL0cWf/UTxUvOhQnW+Dtd6WkB5IhmaF4RiOoc61c74KBzWWugqBXyHMdeP++Lr5eWgF0Yb4l0wuaiEIBKiw2E3lx" + ], + "x-ms-correlation-request-id": [ + "58b2f365-032a-49bf-8628-7cff339c5485" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14116" + ], + "x-ms-request-id": [ + "58b2f365-032a-49bf-8628-7cff339c5485" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:58b2f365-032a-49bf-8628-7cff339c5485" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/a8dee838-b2b7-4648-8a00-2c61ff8ffde6?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaXBQb29scy9hOGRlZTgzOC1iMmI3LTQ2NDgtOGEwMC0yYzYxZmY4ZmZkZTY/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "678d9cac-cfdb-4281-8af5-84ebb660ace3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/a8dee838-b2b7-4648-8a00-2c61ff8ffde6\",\r\n \"name\": \"a8dee838-b2b7-4648-8a00-2c61ff8ffde6\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.102.1\",\r\n \"endIpAddress\": \"192.168.102.255\",\r\n \"numberOfIpAddresses\": 255,\r\n \"numberOfAllocatedIpAddresses\": 31,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "496" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvJLA3nBnxqv48YecWRiGMf5DFV1nLSVZO9Tt7qsZPvV41xSETEREquFjOEXK8wSVYrtasdd/vzuSgH+zEN3dViUCWL5tbqBUVguWbZDRrCb/yqiTHXTO6FzRvMVRv2+Shp+5F9/vTj77Anlr48oLd" + ], + "x-ms-correlation-request-id": [ + "0bfda0c1-70eb-4fff-a8bf-40fffd9b1611" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14115" + ], + "x-ms-request-id": [ + "0bfda0c1-70eb-4fff-a8bf-40fffd9b1611" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:0bfda0c1-70eb-4fff-a8bf-40fffd9b1611" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/c743f3e0-9fa4-4236-8c3d-a0f8ad945fb4?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaXBQb29scy9jNzQzZjNlMC05ZmE0LTQyMzYtOGMzZC1hMGY4YWQ5NDVmYjQ/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9d228c76-f82b-44e3-86f1-e2a9cc8b0841" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/c743f3e0-9fa4-4236-8c3d-a0f8ad945fb4\",\r\n \"name\": \"c743f3e0-9fa4-4236-8c3d-a0f8ad945fb4\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.224\",\r\n \"endIpAddress\": \"192.168.200.254\",\r\n \"numberOfIpAddresses\": 31,\r\n \"numberOfAllocatedIpAddresses\": 1,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "496" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv5MazQ1wvi2ns5Os9sN2A1PH2f00PWfkzrpd59b/ktx2t3YRaB9HUrc5aBeEk8hg/laU0BVpCUFqRwG7Pw2CV9C/LpSlYmwEOAy5mEjSxznUl20+3vEZE8lWkptvwui4itexS7o1SkgjccJPAsie0" + ], + "x-ms-correlation-request-id": [ + "bb79e066-a0b0-4fd9-a65a-22fe30060b9f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14114" + ], + "x-ms-request-id": [ + "bb79e066-a0b0-4fd9-a65a-22fe30060b9f" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:bb79e066-a0b0-4fd9-a65a-22fe30060b9f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllLogicalNetworks.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllLogicalNetworks.json new file mode 100644 index 000000000000..e23b7115c44e --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllLogicalNetworks.json @@ -0,0 +1,456 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f758d24a-6f5d-490f-a3fa-1e78336ef62e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001\",\r\n \"name\": \"00000000-2222-1111-9999-000000000001\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968\",\r\n \"name\": \"47931036-2874-4d45-b1f1-b69666088968\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"64311075-3ae7-4327-bafa-2c58804addb7\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"name\": \"B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"1ee6e531-b000-412c-bba7-2d6d6f257ac4\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"name\": \"bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": true,\r\n \"subnets\": [\r\n \"be20afa7-2ada-4261-a12a-4e48498223cf\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"name\": \"F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d43d2881-3aad-40c9-b207-4280a9b3b699\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"name\": \"f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"9ec2eb29-6d47-4e22-a322-eb575c16937a\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2644" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvkMtPt5Jb0aSYGfplqW1Fyz2aQ1ytXOov9/KhtzhaRhY+dCEoOzG0DMdbbxV103plDktQGvOvxlzKoO5ykbW/ijCbsiUQw3QFlyNCOVb/GElLArK9e27NyxUGQqFlnXJSGbUQ04XrzIZ/JqKjOc+Y" + ], + "x-ms-correlation-request-id": [ + "e83802ac-4532-4e9a-8700-7994cb34cf0e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14081" + ], + "x-ms-request-id": [ + "e83802ac-4532-4e9a-8700-7994cb34cf0e" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:e83802ac-4532-4e9a-8700-7994cb34cf0e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzLzAwMDAwMDAwLTIyMjItMTExMS05OTk5LTAwMDAwMDAwMDAwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1cfa72bc-6b6d-4ca5-9cfc-063594908108" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001\",\r\n \"name\": \"00000000-2222-1111-9999-000000000001\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "438" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvR61kh00Hf3B9xqd57UOKHUS0AkMFc7KRzaoK3PVBGfN0OcUgs9pAro9PjfRiYQgjYRI+7TWJHp6l+crj+/jt5qDX3Pizf4zRr/A2rCA7B5A9cP8O91gb5AbA37cx8e7EsxE2sGlQ53QFMFRmYNzh" + ], + "x-ms-correlation-request-id": [ + "61711cf7-0e25-458c-aead-77933dc41a1f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14080" + ], + "x-ms-request-id": [ + "61711cf7-0e25-458c-aead-77933dc41a1f" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:61711cf7-0e25-458c-aead-77933dc41a1f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzLzQ3OTMxMDM2LTI4NzQtNGQ0NS1iMWYxLWI2OTY2NjA4ODk2OD9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8903d924-0948-4e13-bb5c-4fefa366343c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968\",\r\n \"name\": \"47931036-2874-4d45-b1f1-b69666088968\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"64311075-3ae7-4327-bafa-2c58804addb7\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "438" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvHrAxUMn8CZfKLN6Z2UV91XlAiPNb92qE3Uod15usdSr/y3uNDvbHqSwu+zwBVYUrjXMKf6lhKVeCv+mjVYH9ZuTmBCjxGjapaIF1/hXWLq9G548v986nGQEPNyyQdeoy/mYUscGEKXBEnQ4JnUyq" + ], + "x-ms-correlation-request-id": [ + "a7ea8179-7414-448f-b388-1eddff8134f4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14079" + ], + "x-ms-request-id": [ + "a7ea8179-7414-448f-b388-1eddff8134f4" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:a7ea8179-7414-448f-b388-1eddff8134f4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL0I2MEI3MUFBLTM2QkYtNDBBQy1BOUNFLUE2OTE1RDFFQUUxQT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "daf72d0a-4e1e-4978-8bc0-6c78a627ef09" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"name\": \"B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"1ee6e531-b000-412c-bba7-2d6d6f257ac4\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "438" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv5j92nCalRXa4O5bpjBdoM0AziAGB0x7pUbO3sP0rHy8Wfzi8zmxr3IWpQsI01KmrtlFlujXGR0/Sa+fPaY9VDcCj/B2LLgo6GCV8tcGOlOqjZ3Xs+m+Uzy8Z/YBcL2CwaSpevoggsw82nWWfwI77" + ], + "x-ms-correlation-request-id": [ + "03308c95-f353-40ae-aa1c-cef05d613ad6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14078" + ], + "x-ms-request-id": [ + "03308c95-f353-40ae-aa1c-cef05d613ad6" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:03308c95-f353-40ae-aa1c-cef05d613ad6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL2JiNmM2ZjI4LWJhZDktNDQxYi04ZTYyLTU3ZDJiZTI1NTkwND9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7a2cf41d-8177-47b7-af30-22bd6e3f76ea" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"name\": \"bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": true,\r\n \"subnets\": [\r\n \"be20afa7-2ada-4261-a12a-4e48498223cf\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "437" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv3uqOZ4saTmRhLNuZOsTLGAKXJ7SvpOJ54WiaZ2/wb5+aV1f6haYGD0u7NTjdFWKjVxK93B0KCaRGKt8OA2kRjpP40SqzS3TzW5Sasf5S6zc9uEEkZVIw75ChLS6+T0LQpbEoivKrcrLbxVjfNbDP" + ], + "x-ms-correlation-request-id": [ + "050e264c-4398-4b21-a880-443af9335a99" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14077" + ], + "x-ms-request-id": [ + "050e264c-4398-4b21-a880-443af9335a99" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:050e264c-4398-4b21-a880-443af9335a99" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL0YyMDdDMTg0LTM2N0MtNEJDNy04Qzc0LTAzQUEzOUQ2OEMyND9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b4ce9d8b-e05d-4172-a0ec-92efcbbd7cf8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"name\": \"F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d43d2881-3aad-40c9-b207-4280a9b3b699\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "438" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvkfUXStb0bZtb+VnoT3u5G35j38F6csCjT704wj8ByHjTJj1DivFaroaEREJQW0S7TLuFK5XJV+57W8wm+bcMPsLdvvvFd90g1wF41XjLL+etTjdn/WgtFwVGA2qWvVUjgERHCU40QzJ/fCMqaT/X" + ], + "x-ms-correlation-request-id": [ + "de2df2f0-aff5-4791-9cb7-72cc6495a1e9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14076" + ], + "x-ms-request-id": [ + "de2df2f0-aff5-4791-9cb7-72cc6495a1e9" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:de2df2f0-aff5-4791-9cb7-72cc6495a1e9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL2Y4ZjY3OTU2LTM5MDYtNDMwMy05NGM1LTA5Y2Y5MWU3ZTMxMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f144242f-578b-4fc6-a533-19297225bc8d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"name\": \"f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"9ec2eb29-6d47-4e22-a322-eb575c16937a\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "438" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvdtBKSrUeSXZ7vA8aBI9Six+j75WNV0LZAuR5fik3xRWYl1N09Fu/NhwvWde22saMDbazZ9B9j+7eiZvwcujk7qRgjy3gXgySwCtJ+FKy6URROPCZf9vOW+xDXVM7HoprEQcDs5dr49Oxc/dJnJZt" + ], + "x-ms-correlation-request-id": [ + "089aa397-3792-4350-9cc4-08477b725ab7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14075" + ], + "x-ms-request-id": [ + "089aa397-3792-4350-9cc4-08477b725ab7" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:089aa397-3792-4350-9cc4-08477b725ab7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllLogicalSubnets.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllLogicalSubnets.json new file mode 100644 index 000000000000..2f1d22e99bc8 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllLogicalSubnets.json @@ -0,0 +1,840 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "09a7b807-4532-45cb-aefd-6247dc4f1110" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001\",\r\n \"name\": \"00000000-2222-1111-9999-000000000001\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968\",\r\n \"name\": \"47931036-2874-4d45-b1f1-b69666088968\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"64311075-3ae7-4327-bafa-2c58804addb7\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"name\": \"B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"1ee6e531-b000-412c-bba7-2d6d6f257ac4\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"name\": \"bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": true,\r\n \"subnets\": [\r\n \"be20afa7-2ada-4261-a12a-4e48498223cf\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"name\": \"F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d43d2881-3aad-40c9-b207-4280a9b3b699\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"name\": \"f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"9ec2eb29-6d47-4e22-a322-eb575c16937a\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2644" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvEcsfWdswQB/hr74XorrwIQTqtK1GlkSIngie0pP4wO0LSDP3pLEMaSC8/rsWKDp069gHBcb3CJeoweHqCV23n9vdLC1f104D2x+7SyrDkxZCx0d+Dkhr8DG2kah9DTUvaS89RXd2/lujl/wEWGxl" + ], + "x-ms-correlation-request-id": [ + "f8df452b-08dc-4ddc-ba96-6416253adc38" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14151" + ], + "x-ms-request-id": [ + "f8df452b-08dc-4ddc-ba96-6416253adc38" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:f8df452b-08dc-4ddc-ba96-6416253adc38" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001/logicalSubnets?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzLzAwMDAwMDAwLTIyMjItMTExMS05OTk5LTAwMDAwMDAwMDAwMS9sb2dpY2FsU3VibmV0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5bdabec6-9bda-451c-9512-56891934f636" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001/logicalSubnets/d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\",\r\n \"name\": \"d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"2ce37b2a-3da0-493c-9eb5-b95054fc71f4\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "497" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvwEIZEgJQSOuBChgPEnXebjM2BRVIFGJKh1CE8lC/c6/QxgTum9t5AEY4BiCKWcGYnCTBUKdPxRbNVLONDWet7LEg5AkHqKQK+KBUj7KkEv0H9qKBoTxnYfKvYBhKOqHR0KheHe5gp0Myvo8y6wh/" + ], + "x-ms-correlation-request-id": [ + "c06a15df-f931-40f0-af92-92019b8aa2ce" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14150" + ], + "x-ms-request-id": [ + "c06a15df-f931-40f0-af92-92019b8aa2ce" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:c06a15df-f931-40f0-af92-92019b8aa2ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001/logicalSubnets/d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzLzAwMDAwMDAwLTIyMjItMTExMS05OTk5LTAwMDAwMDAwMDAwMS9sb2dpY2FsU3VibmV0cy9kOGNmZWYyZC1jMGM4LTRjZGItYjBhOC1mYjFiZGYzZjJhZDc/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "372099b4-2fc5-49ed-89ed-a5186883e310" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001/logicalSubnets/d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\",\r\n \"name\": \"d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"2ce37b2a-3da0-493c-9eb5-b95054fc71f4\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "485" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvJA0FUdyeNdPutIX7MYxJ52nJVE0IFRx9PpivB6ikSZ+ssfB5Qqp4634syI/MlWdVf2s6vRc0XQH1doEvw86IRH0x8REYy29bKvAJZzlLEJwg9Ae906LAkZVHdl+v60HA+Bt7ASjzb1+lpQJ4upHC" + ], + "x-ms-correlation-request-id": [ + "6d5d8b2e-1be7-4538-892d-558f4bba5e57" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14149" + ], + "x-ms-request-id": [ + "6d5d8b2e-1be7-4538-892d-558f4bba5e57" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:6d5d8b2e-1be7-4538-892d-558f4bba5e57" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968/logicalSubnets?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzLzQ3OTMxMDM2LTI4NzQtNGQ0NS1iMWYxLWI2OTY2NjA4ODk2OC9sb2dpY2FsU3VibmV0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ea072f3f-d559-4acf-bbc0-1b08cab625f3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968/logicalSubnets/64311075-3ae7-4327-bafa-2c58804addb7\",\r\n \"name\": \"64311075-3ae7-4327-bafa-2c58804addb7\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"f1be0e18-b532-44e7-acc0-fbf4eab527de\",\r\n \"9b53eaf9-d03d-41ed-a9e4-d75e0d79373a\",\r\n \"4c4d948f-1f77-4536-8160-83b859c21961\",\r\n \"d7a27cd0-fe49-420c-93a9-f589f7a07cf7\",\r\n \"90d3b095-998c-484e-946a-52350d5b5758\",\r\n \"67cf8315-07d7-4a24-9681-10b3a3666f7e\",\r\n \"5770d013-e458-46f4-8a11-06ba9e90ee9c\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "731" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvinzBEeXCWVA41oZESBWhVgkp56AfUA85tpMHyQ/4HLe8ShZtioVLqe+h1rK8VLLfRpcp66hfAauaJxj6T7Bybj7SivP/sApl1MkjQEk6PBE8omBYCRqLnyTtMgNEEO8lT6nBeFRQtVMoT9HkoTge" + ], + "x-ms-correlation-request-id": [ + "1eb10577-afeb-4b71-a327-5b8e53d1154d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14148" + ], + "x-ms-request-id": [ + "1eb10577-afeb-4b71-a327-5b8e53d1154d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:1eb10577-afeb-4b71-a327-5b8e53d1154d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968/logicalSubnets/64311075-3ae7-4327-bafa-2c58804addb7?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzLzQ3OTMxMDM2LTI4NzQtNGQ0NS1iMWYxLWI2OTY2NjA4ODk2OC9sb2dpY2FsU3VibmV0cy82NDMxMTA3NS0zYWU3LTQzMjctYmFmYS0yYzU4ODA0YWRkYjc/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "911d15df-a6d0-480a-b63e-49a3c232c9e6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968/logicalSubnets/64311075-3ae7-4327-bafa-2c58804addb7\",\r\n \"name\": \"64311075-3ae7-4327-bafa-2c58804addb7\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"f1be0e18-b532-44e7-acc0-fbf4eab527de\",\r\n \"9b53eaf9-d03d-41ed-a9e4-d75e0d79373a\",\r\n \"4c4d948f-1f77-4536-8160-83b859c21961\",\r\n \"d7a27cd0-fe49-420c-93a9-f589f7a07cf7\",\r\n \"90d3b095-998c-484e-946a-52350d5b5758\",\r\n \"67cf8315-07d7-4a24-9681-10b3a3666f7e\",\r\n \"5770d013-e458-46f4-8a11-06ba9e90ee9c\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "719" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv+iMylsxscCHKRfZjo2ryWpFQ6lrIwFWcuQPdwi8ge/hOzyAMFNtmz9ckKekbI5nJ/4UICM4/S5B47I3ReALhJwER4cIS7PVNaDWkkrN51Oy0zNP0DFmZvAS0DNI7sCEiM/GC34Ar4okN6tkvL4aE" + ], + "x-ms-correlation-request-id": [ + "b5eae6b3-55a4-423d-b98c-d38e429c4a9c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14147" + ], + "x-ms-request-id": [ + "b5eae6b3-55a4-423d-b98c-d38e429c4a9c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:b5eae6b3-55a4-423d-b98c-d38e429c4a9c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A/logicalSubnets?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL0I2MEI3MUFBLTM2QkYtNDBBQy1BOUNFLUE2OTE1RDFFQUUxQS9sb2dpY2FsU3VibmV0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "de306bda-b4be-4ce4-8c90-725b5ee23150" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A/logicalSubnets/1ee6e531-b000-412c-bba7-2d6d6f257ac4\",\r\n \"name\": \"1ee6e531-b000-412c-bba7-2d6d6f257ac4\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"7fad6f9f-b3de-4336-922d-febe4b1743d1\",\r\n \"98fc9878-4a0b-4ffb-b82a-56b0b548fa75\",\r\n \"8fb5a173-8197-4b10-bf02-0ba006863c90\",\r\n \"b4a6c6b8-5680-4ccb-ae64-35211f235363\",\r\n \"9432d3dd-203a-4792-b65c-d3a1bad48cad\",\r\n \"bb4c5c7a-47d8-4f35-9ee4-2eea26fd4536\",\r\n \"31866284-e6f7-41c7-a9b7-787ef7b645f6\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "731" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv+vpLfRb5bGVkJx674XR6OVisLr64Vmov0EhQ5utzFqR61Mi5jxv9FvLEJ4ItKwE0h7cIHhkOZUMSNTmRuXSk5GIunqqcf5A6xznK2PNrgDJb7GhUsdnHe6sgCNvtTcgV3p8VSHpUy3moWBX0y8LY" + ], + "x-ms-correlation-request-id": [ + "b3a2e0d7-ec89-499e-9831-8d9a596fe424" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14146" + ], + "x-ms-request-id": [ + "b3a2e0d7-ec89-499e-9831-8d9a596fe424" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:b3a2e0d7-ec89-499e-9831-8d9a596fe424" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A/logicalSubnets/1ee6e531-b000-412c-bba7-2d6d6f257ac4?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL0I2MEI3MUFBLTM2QkYtNDBBQy1BOUNFLUE2OTE1RDFFQUUxQS9sb2dpY2FsU3VibmV0cy8xZWU2ZTUzMS1iMDAwLTQxMmMtYmJhNy0yZDZkNmYyNTdhYzQ/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f559daca-acc3-4c84-a3ea-0bfe60248057" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A/logicalSubnets/1ee6e531-b000-412c-bba7-2d6d6f257ac4\",\r\n \"name\": \"1ee6e531-b000-412c-bba7-2d6d6f257ac4\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"7fad6f9f-b3de-4336-922d-febe4b1743d1\",\r\n \"98fc9878-4a0b-4ffb-b82a-56b0b548fa75\",\r\n \"8fb5a173-8197-4b10-bf02-0ba006863c90\",\r\n \"b4a6c6b8-5680-4ccb-ae64-35211f235363\",\r\n \"9432d3dd-203a-4792-b65c-d3a1bad48cad\",\r\n \"bb4c5c7a-47d8-4f35-9ee4-2eea26fd4536\",\r\n \"31866284-e6f7-41c7-a9b7-787ef7b645f6\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "719" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvVt6SKMFZWXqUmQZ10YYU0ZeGNXOnqGk5Ig+UJElNbqxJtJEfPaj7/D6Soxh6CVXgroRGBBHk+sLnytMZw3hSmk9Qk+T4vH3w2Qt1oJWSxGnt/dzAfyo+LteQYzmGzAcOh0OiTy2wanzOaMvD8DA7" + ], + "x-ms-correlation-request-id": [ + "ffe917bc-7e0b-454c-85df-26838b1573ce" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14145" + ], + "x-ms-request-id": [ + "ffe917bc-7e0b-454c-85df-26838b1573ce" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:ffe917bc-7e0b-454c-85df-26838b1573ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904/logicalSubnets?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL2JiNmM2ZjI4LWJhZDktNDQxYi04ZTYyLTU3ZDJiZTI1NTkwNC9sb2dpY2FsU3VibmV0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "141a8122-c501-45ac-b6d6-972f378a41a3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904/logicalSubnets/be20afa7-2ada-4261-a12a-4e48498223cf\",\r\n \"name\": \"be20afa7-2ada-4261-a12a-4e48498223cf\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [],\r\n \"isPublic\": false\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "459" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvuZ7H2sXbYXuV2vz7PfeZgL3oQnnyCtR3EqiwZdSuGgMUsDwCRm+qRlghZPlvc8OIA2GsgYvmHsJ665dKhZcE2q0A3PaHcYUbPI968s8F+8DQ+tmBzvBkvyGgZ+GooI8FyiQRg8e7d9kOcz3i7mwk" + ], + "x-ms-correlation-request-id": [ + "7bc8e23b-9fad-455f-924b-876232c19c14" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14144" + ], + "x-ms-request-id": [ + "7bc8e23b-9fad-455f-924b-876232c19c14" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:7bc8e23b-9fad-455f-924b-876232c19c14" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904/logicalSubnets/be20afa7-2ada-4261-a12a-4e48498223cf?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL2JiNmM2ZjI4LWJhZDktNDQxYi04ZTYyLTU3ZDJiZTI1NTkwNC9sb2dpY2FsU3VibmV0cy9iZTIwYWZhNy0yYWRhLTQyNjEtYTEyYS00ZTQ4NDk4MjIzY2Y/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "669af1ab-89fc-4f97-886f-17d134ac95aa" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904/logicalSubnets/be20afa7-2ada-4261-a12a-4e48498223cf\",\r\n \"name\": \"be20afa7-2ada-4261-a12a-4e48498223cf\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [],\r\n \"isPublic\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "447" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv+z9XVY1n5Xyr+FJTOdjFl2i8NOVEy2+ctoOaP527kBMlkqeL4Y8tf/HCJCrOlL8Ka++rdO1SMyutdGbPiEVG6RTGzMvAheVGr3m1GVe1SfZy5CN9cGyQlrlk3dWAoQrX8sr0GijgvdDB8StcBclV" + ], + "x-ms-correlation-request-id": [ + "3b0ce701-27a1-4f9b-89fb-06e272c7e9ef" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14143" + ], + "x-ms-request-id": [ + "3b0ce701-27a1-4f9b-89fb-06e272c7e9ef" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:3b0ce701-27a1-4f9b-89fb-06e272c7e9ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24/logicalSubnets?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL0YyMDdDMTg0LTM2N0MtNEJDNy04Qzc0LTAzQUEzOUQ2OEMyNC9sb2dpY2FsU3VibmV0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3cb47a4d-91c0-40df-9933-a06298cee9f0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24/logicalSubnets/d43d2881-3aad-40c9-b207-4280a9b3b699\",\r\n \"name\": \"d43d2881-3aad-40c9-b207-4280a9b3b699\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"57018ee5-6818-4c55-828e-d99f7cb5d8a3\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "497" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvPiE/pLi4mTz1/FiRn7znCBOIIhH+JSUB0IV1DRxwBfMlzV07jLmd8du40WDDoIBlCXKjbqJD0flCMawO+TlogokYHSwfM7uX7kaIvP75g18Zv4McuZSMKLxmjBBbXW926+/f4QEmnW8IU6sTvK6j" + ], + "x-ms-correlation-request-id": [ + "47e9b6a0-f5e1-432c-a1d9-919d00cd7b1f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14142" + ], + "x-ms-request-id": [ + "47e9b6a0-f5e1-432c-a1d9-919d00cd7b1f" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:47e9b6a0-f5e1-432c-a1d9-919d00cd7b1f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24/logicalSubnets/d43d2881-3aad-40c9-b207-4280a9b3b699?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL0YyMDdDMTg0LTM2N0MtNEJDNy04Qzc0LTAzQUEzOUQ2OEMyNC9sb2dpY2FsU3VibmV0cy9kNDNkMjg4MS0zYWFkLTQwYzktYjIwNy00MjgwYTliM2I2OTk/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1853c1c5-8af8-4072-8c2d-c29782e4dc99" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24/logicalSubnets/d43d2881-3aad-40c9-b207-4280a9b3b699\",\r\n \"name\": \"d43d2881-3aad-40c9-b207-4280a9b3b699\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"57018ee5-6818-4c55-828e-d99f7cb5d8a3\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "485" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvBP8VX2Y/9+0qDRyWol1M3xIOGUvKMxYh+1mlZ9lMBs7jhslkje1LAdLfPOMR82411zu2HWZOiK+ccw48G1FN1lqSfBp9xJxBKLtdA9mK+zjr1FviI7DowURR4VIHoMj+CqzhZae3ZwS+f/8VvKnd" + ], + "x-ms-correlation-request-id": [ + "99a4f05d-2a11-4729-ae90-1dbfb31caa1b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14141" + ], + "x-ms-request-id": [ + "99a4f05d-2a11-4729-ae90-1dbfb31caa1b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:99a4f05d-2a11-4729-ae90-1dbfb31caa1b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311/logicalSubnets?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL2Y4ZjY3OTU2LTM5MDYtNDMwMy05NGM1LTA5Y2Y5MWU3ZTMxMS9sb2dpY2FsU3VibmV0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9622c1bd-22a7-47f4-b3b9-8dad531e97ba" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311/logicalSubnets/9ec2eb29-6d47-4e22-a322-eb575c16937a\",\r\n \"name\": \"9ec2eb29-6d47-4e22-a322-eb575c16937a\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"d7e4fca0-8c09-4ef9-8305-47f050fc79c6\",\r\n \"184ec1e4-5ba7-4440-bbec-572d69db9b2b\",\r\n \"0a6dc307-9e6d-466f-8c3c-3efea7190a78\",\r\n \"e3a512fc-797b-454e-91ff-6486ca8d597c\",\r\n \"919be20b-a450-4a2f-a4a8-2da22b2a8945\",\r\n \"a927bec5-158a-4590-a04d-73573d923a16\",\r\n \"0a61f171-94ca-4e09-bff6-a4db34c023da\",\r\n \"0c22b5a9-997c-48fb-af48-a7a6a2998aaa\",\r\n \"52a75d52-64d0-47dc-a7b4-4f650a714175\",\r\n \"87620c7b-d6bb-459f-9c90-4ce81547d921\",\r\n \"b9e4cb86-0bb9-49a3-9451-639dcc3b3de8\",\r\n \"8a4493f8-0945-4583-8658-9aef9704db3d\"\r\n ],\r\n \"isPublic\": true\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "925" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvQne5WU9ekpSmE3KHwxj30C4msZ315LwYjcFYZC3zWaLWVqnThgNpcQdu+wAvqjghqnm/rzjL89C1tnSQKp/5nn9ZFTNqpO5oEQMX3NWWeYJWu5AoTy7TOqg2ZAgH3iaGYUaUYhKzkmuyf9FAQANF" + ], + "x-ms-correlation-request-id": [ + "c93ce828-36d8-41d6-a021-1f0da545051b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14140" + ], + "x-ms-request-id": [ + "c93ce828-36d8-41d6-a021-1f0da545051b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:c93ce828-36d8-41d6-a021-1f0da545051b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311/logicalSubnets/9ec2eb29-6d47-4e22-a322-eb575c16937a?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL2Y4ZjY3OTU2LTM5MDYtNDMwMy05NGM1LTA5Y2Y5MWU3ZTMxMS9sb2dpY2FsU3VibmV0cy85ZWMyZWIyOS02ZDQ3LTRlMjItYTMyMi1lYjU3NWMxNjkzN2E/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "be654c08-9455-4580-a058-9334d5ef7c23" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311/logicalSubnets/9ec2eb29-6d47-4e22-a322-eb575c16937a\",\r\n \"name\": \"9ec2eb29-6d47-4e22-a322-eb575c16937a\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"d7e4fca0-8c09-4ef9-8305-47f050fc79c6\",\r\n \"184ec1e4-5ba7-4440-bbec-572d69db9b2b\",\r\n \"0a6dc307-9e6d-466f-8c3c-3efea7190a78\",\r\n \"e3a512fc-797b-454e-91ff-6486ca8d597c\",\r\n \"919be20b-a450-4a2f-a4a8-2da22b2a8945\",\r\n \"a927bec5-158a-4590-a04d-73573d923a16\",\r\n \"0a61f171-94ca-4e09-bff6-a4db34c023da\",\r\n \"0c22b5a9-997c-48fb-af48-a7a6a2998aaa\",\r\n \"52a75d52-64d0-47dc-a7b4-4f650a714175\",\r\n \"87620c7b-d6bb-459f-9c90-4ce81547d921\",\r\n \"b9e4cb86-0bb9-49a3-9451-639dcc3b3de8\",\r\n \"8a4493f8-0945-4583-8658-9aef9704db3d\"\r\n ],\r\n \"isPublic\": true\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "913" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv438wOClSZXxL7oUidFOCRqBlTUl9FbTkQKvohijFW3NTf8G8fM/vyWYbfnWQSF/DAGFA27xXY5HdXV5L/+eIMdUeKAaA0O79OZlIm1Emi+82kaowHFs8QhhQQfPcR4t76t6Fk2voylllg3LU5LR3" + ], + "x-ms-correlation-request-id": [ + "c5e12a2e-d6b5-4ea8-8664-9916df234b96" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14139" + ], + "x-ms-request-id": [ + "c5e12a2e-d6b5-4ea8-8664-9916df234b96" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:c5e12a2e-d6b5-4ea8-8664-9916df234b96" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllMacAddressPools.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllMacAddressPools.json new file mode 100644 index 000000000000..17848c66441c --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllMacAddressPools.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/macAddressPools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbWFjQWRkcmVzc1Bvb2xzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f28d6cc3-70b1-4bc5-af09-421c1f222b36" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/macAddressPools/8197fd09-8a69-417e-a55c-10c2c61f5ee7\",\r\n \"name\": \"8197fd09-8a69-417e-a55c-10c2c61f5ee7\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/macAddressPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startMacAddress\": \"00-1D-D8-B7-1C-00\",\r\n \"endMacAddress\": \"00-1D-D8-F4-1F-FF\",\r\n \"numberOfAllocatedMacAddresses\": 2,\r\n \"numberOfAvailableMacAddresses\": 3998718\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv+VUOYemtVho/Fqbr3wYjqCDBfsLASaAxuoJpUz0+HHYctgr5ueFzAa87Aj974MYLbfPfWv+ee/dPPUqUXm2t2QLPurOCe+QCX3p3vVVaemdqNhhNvxJovIv44g2TN83uerfiHNccL10qwTo7eOSD" + ], + "x-ms-correlation-request-id": [ + "e7a0b854-c182-4905-b86d-75cb4a537f58" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14132" + ], + "x-ms-request-id": [ + "e7a0b854-c182-4905-b86d-75cb4a537f58" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192220Z:e7a0b854-c182-4905-b86d-75cb4a537f58" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/macAddressPools/8197fd09-8a69-417e-a55c-10c2c61f5ee7?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbWFjQWRkcmVzc1Bvb2xzLzgxOTdmZDA5LThhNjktNDE3ZS1hNTVjLTEwYzJjNjFmNWVlNz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "27dfec25-85e4-476e-afbe-2a967aa7f7b4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/macAddressPools/8197fd09-8a69-417e-a55c-10c2c61f5ee7\",\r\n \"name\": \"8197fd09-8a69-417e-a55c-10c2c61f5ee7\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/macAddressPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startMacAddress\": \"00-1D-D8-B7-1C-00\",\r\n \"endMacAddress\": \"00-1D-D8-F4-1F-FF\",\r\n \"numberOfAllocatedMacAddresses\": 2,\r\n \"numberOfAvailableMacAddresses\": 3998718\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "498" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRve+mtUP9RmTKstNJ1RlHtIzayj6vu4m/YTeSfZUYGbyhE0hSLVYHCqBF4za2pgNVDI7fEfwy3lrfQoSHya6jv92qdWO/YJtFquwlyCvp6k4Rf/R9bwbhxq8SJBjndvPP0eO8xYaE5ST9HAv/nqlfk" + ], + "x-ms-correlation-request-id": [ + "9c540bc2-43cd-4e27-b339-5b1bdfb6e35d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14131" + ], + "x-ms-request-id": [ + "9c540bc2-43cd-4e27-b339-5b1bdfb6e35d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192220Z:9c540bc2-43cd-4e27-b339-5b1bdfb6e35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllScaleUnitNodes.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllScaleUnitNodes.json new file mode 100644 index 000000000000..e7af73ddcd48 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllScaleUnitNodes.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c881fbd3-74fb-49ab-8e52-aa9def0c7ba1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"name\": \"HC1n25r2236\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnitNodes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitNodeStatus\": \"Running\",\r\n \"powerState\": \"Running\",\r\n \"scaleUnitName\": \"S-Cluster\",\r\n \"scaleUnitUri\": \"/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"canPowerOff\": false,\r\n \"macAddress\": \"24-8A-07-89-15-62\",\r\n \"capacity\": {\r\n \"memoryGB\": 255.875,\r\n \"cores\": 56\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "550" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:10:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvaPvIDARgXdWs9i3KbT1tTnzL/mFFqJ3x3EStf6CRn6Y7JXXQJwMTO9T/Vl5ZY7+5E8P9FuzmPWCFgCG9ghuom+TpQo8USDdyJwhFF36w6aozFC/teQuQw8ASwghojSu1kpCOWnuDTbSrSx2ooW4N" + ], + "x-ms-correlation-request-id": [ + "141b50e7-0793-4fc9-b431-cdcee99e23fa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14154" + ], + "x-ms-request-id": [ + "141b50e7-0793-4fc9-b431-cdcee99e23fa" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191007Z:141b50e7-0793-4fc9-b431-cdcee99e23fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXMvSEMxbjI1cjIyMzY/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e1e28bdd-c1c4-4d8e-958b-3d294b7be381" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"name\": \"HC1n25r2236\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnitNodes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitNodeStatus\": \"Running\",\r\n \"powerState\": \"Running\",\r\n \"scaleUnitName\": \"S-Cluster\",\r\n \"scaleUnitUri\": \"/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"canPowerOff\": false,\r\n \"macAddress\": \"24-8A-07-89-15-62\",\r\n \"capacity\": {\r\n \"memoryGB\": 255.875,\r\n \"cores\": 56\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "538" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:10:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv/Enc9dTy5nCCZw2SGTvtok4de29ozNJIimkSj9eEFfip2l8fghabMZsF3ucMtiZ5ZvvsDDo9LYz7tVk02s+RL5eNOp9elWHuE1BkqQmbGAhML6hSOy4et4qeCu4NIwVBiRkrWtt+KKB3x4SHclgq" + ], + "x-ms-correlation-request-id": [ + "0026bc19-dc93-4c4f-a12d-82ba34fe3235" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14176" + ], + "x-ms-request-id": [ + "0026bc19-dc93-4c4f-a12d-82ba34fe3235" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191007Z:0026bc19-dc93-4c4f-a12d-82ba34fe3235" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllScaleUnits.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllScaleUnits.json new file mode 100644 index 000000000000..68cd698edeaf --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllScaleUnits.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9d7387ab-aa58-42d5-825b-73bd812dcb8e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"name\": \"S-Cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 255.875,\r\n \"cores\": 56\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "594" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvskjsi3LnP/WMPlbyTvvKCaAWrIBoWAfPqx81mx1seuZJgK8QgAjMyUcMvtEsTmlC/YFPoHDhykJbjUrtfxYy4YqgjoE84Q0yKQIe9G3cJ40rytWA7Q03Vv5C40evk2tCIwM6Gz0YmbRTYl9tn2+g" + ], + "x-ms-correlation-request-id": [ + "b631d2eb-013f-478a-bd53-a558d517c290" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14089" + ], + "x-ms-request-id": [ + "b631d2eb-013f-478a-bd53-a558d517c290" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:b631d2eb-013f-478a-bd53-a558d517c290" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9TLUNsdXN0ZXI/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c2fa8b2a-1883-489e-9dd7-83389dcff11b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"name\": \"S-Cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 255.875,\r\n \"cores\": 56\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "582" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv86/adNeAk0f7R72LPQCudHeFS161sz2hXvZRXVJrN9fAddoHCaMd8b2UvFJCMMSQRyK1atd0AjENfLkkUiE4UNIe9jXHXSFASzyTJWZSLpSw0r9DF3XTa7ac4fVA8uJ7dUz183yF9RUUJ2ulfvcB" + ], + "x-ms-correlation-request-id": [ + "2208249e-f2e7-49d9-9460-139e7443e3da" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14088" + ], + "x-ms-request-id": [ + "2208249e-f2e7-49d9-9460-139e7443e3da" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:2208249e-f2e7-49d9-9460-139e7443e3da" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllSlbMuxInstances.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllSlbMuxInstances.json new file mode 100644 index 000000000000..d6c47b0b15eb --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllSlbMuxInstances.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/slbMuxInstances?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2xiTXV4SW5zdGFuY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b8cce2a6-181d-48fc-b491-845a40334f7a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/slbMuxInstances/AzS-SLB01\",\r\n \"name\": \"AzS-SLB01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/slbMuxInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"configurationState\": \"Success\",\r\n \"virtualServer\": \"AzS-SLB01\",\r\n \"bgpPeers\": [\r\n \"BGPGateway-64000-64001\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "405" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvbdDUIhpTo4RHMcnqaK6TqzY6OC15OD60bDPPfsBYn1yNcsvd4wDgWZ/jL7WRPgqr4Uva24UDxJS1l3WWhwmkR8Uoe5V8JNNh2gS0M7jkMuPKvD4JSNIoCqU7ZeKQoGgdhkNMAiSZIH6NDgUOI1nf" + ], + "x-ms-correlation-request-id": [ + "ad6e17a7-9813-4073-ac89-802cf42475f4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14123" + ], + "x-ms-request-id": [ + "ad6e17a7-9813-4073-ac89-802cf42475f4" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191318Z:ad6e17a7-9813-4073-ac89-802cf42475f4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/slbMuxInstances/AzS-SLB01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2xiTXV4SW5zdGFuY2VzL0F6Uy1TTEIwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f6146f5c-5c64-4f8a-bfee-2f630c9cf0e6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/slbMuxInstances/AzS-SLB01\",\r\n \"name\": \"AzS-SLB01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/slbMuxInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"configurationState\": \"Success\",\r\n \"virtualServer\": \"AzS-SLB01\",\r\n \"bgpPeers\": [\r\n \"BGPGateway-64000-64001\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "393" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvUtvhUX5XGsVyy4hb0INLHjMcRsg4kAcR5YKGB987A4V66t5oD5bMJk84G4GoKUPV8Mmiwc2Gj5PabbzfoIjTBp+A+GMNhj9tvz/+TSksuL8Mbyqyc0YeEX5U88joKWsAdw2SRXx5jWF0hpPRyziU" + ], + "x-ms-correlation-request-id": [ + "1913011a-56b5-4adf-865e-3f0917608e4b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14122" + ], + "x-ms-request-id": [ + "1913011a-56b5-4adf-865e-3f0917608e4b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191318Z:1913011a-56b5-4adf-865e-3f0917608e4b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllStoragePools.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllStoragePools.json new file mode 100644 index 000000000000..d221808af986 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllStoragePools.json @@ -0,0 +1,200 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3e6b2938-1992-440e-8a9d-36b3ce7e1d28" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "369" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvrJm9UlO6/E6YCVFDMnMyyvk4f32rG1YG8JsRmeI2RACh5g+nWkvgAC/ZK4V++r6G11HVQZNYU1MI4w1sbq/ERx4uET+y2tFMWoEnPQXHeWlRYuIQxtAqYU4rSQw/r9uiF1+Sng1TNWd7l0jqijjR" + ], + "x-ms-correlation-request-id": [ + "784f5e5c-718e-40c1-9a26-c3fa63c1ecf9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14129" + ], + "x-ms-request-id": [ + "784f5e5c-718e-40c1-9a26-c3fa63c1ecf9" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:784f5e5c-718e-40c1-9a26-c3fa63c1ecf9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f88a3019-6189-40ea-8d37-f49e0eff2043" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool\",\r\n \"name\": \"SU1_Pool\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sizeGB\": 5614\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "377" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvetfkNMRrwOlGf/s/OMTIS05L9LelzjEwDTKsZEqsn9zAtrx8sTt4C5La/LCsQJkzudplZGw/ImbZpnK8uvoX+ch+z8XvxVARXlCpRmyLWyGdos3FgpWZpgWrenqaQEVkP8CqP2NvCYwRp+BnTtR5" + ], + "x-ms-correlation-request-id": [ + "92c220af-3532-459b-a036-ae039f0510e0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14128" + ], + "x-ms-request-id": [ + "92c220af-3532-459b-a036-ae039f0510e0" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:92c220af-3532-459b-a036-ae039f0510e0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzL1NVMV9Qb29sP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "40f29f8a-853c-4baf-9e03-05be25c178fb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool\",\r\n \"name\": \"SU1_Pool\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sizeGB\": 5614\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "365" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv4iNK6s1ZdLBQ08v0ZPt7+9Ib/ZRtWrpxRV+sZI89OLnudsyZjyTFrBsq6Gt1wraakpPFJNTRePgJQV17iDgBBjqW/BF9iXT3QptsDg7fvjoK/gUIISAAIeHSG2SMLeDxAJgKVYELnKi1GfzFXvQA" + ], + "x-ms-correlation-request-id": [ + "903db29d-ba29-4fb6-8c15-b021656719b7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14127" + ], + "x-ms-request-id": [ + "903db29d-ba29-4fb6-8c15-b021656719b7" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:903db29d-ba29-4fb6-8c15-b021656719b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllStorageSystems.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllStorageSystems.json new file mode 100644 index 000000000000..4b7b0d5cdd50 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllStorageSystems.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9693b052-6a46-4f6d-b9f1-092d973c5385" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "369" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv2N8QugbgUv4ugr9Nr4wTdasI65AalXro1EKiJQQVFxEMKs8cUVskHi+aATPZEp60SPylpk22dFYuXyLQfJibqpe9N/G6nyepKHNJ+3SCIbFyeN1+S17Y/2GVGDzP74geaaq896+Cd4VkcjTP64V8" + ], + "x-ms-correlation-request-id": [ + "a00a7f32-44ce-439d-acca-8b4a1065310f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14121" + ], + "x-ms-request-id": [ + "a00a7f32-44ce-439d-acca-8b4a1065310f" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191318Z:a00a7f32-44ce-439d-acca-8b4a1065310f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWw/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0697a693-0275-43e2-ac55-80149bf1cdf8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "357" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv2CqjnfeOj4XBkrEpQpCM8uAFx0DhSqVliVXwRqgH9Lza0Op1YTC4Fql7Rs6sQC6oVgDIpPlXdaTzs5j8Jlzsxfnza4y1WiBT9GTdBoUTQ6n69TDiflZ6/cZ/rHInJzKRawvWCcj2nQ9+fTTjlCN9" + ], + "x-ms-correlation-request-id": [ + "f16ab998-c605-4531-a7ee-99afc2a3c393" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14120" + ], + "x-ms-request-id": [ + "f16ab998-c605-4531-a7ee-99afc2a3c393" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191318Z:f16ab998-c605-4531-a7ee-99afc2a3c393" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllVolumes.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllVolumes.json new file mode 100644 index 000000000000..5854e4792c63 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetAllVolumes.json @@ -0,0 +1,264 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "226e25a8-6609-476f-aa43-0bb610e64273" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "369" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv1xgU+yHSiEnM6RJPNo3+jRvVMFsmanh2rOU7pgQTzmqwc6Uwq7ejM0EqwbCHz5NNd3ZqQQNCfASDNpQ/r6l1bxiwi3BAM5MVPHdTP0JBI9Xbco+VbsM/gbzYSLM9tm1ej2SJpteir8Txjx5409ck" + ], + "x-ms-correlation-request-id": [ + "3dbecc01-4840-4750-8f4d-8419a3d5145c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14098" + ], + "x-ms-request-id": [ + "3dbecc01-4840-4750-8f4d-8419a3d5145c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:3dbecc01-4840-4750-8f4d-8419a3d5145c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6ec7aae5-d11a-46f5-8f04-a696a3c34b1a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool\",\r\n \"name\": \"SU1_Pool\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sizeGB\": 5614\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "377" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvGvSNCpy6tk2YCQS77fJUAeKUsT5s5n6SZhNkrEyqlk/lJwFqKDrWasW/6N1XLjM9b7L3wEWaNbt1AphUlb3Fjjt0iri/gPkQMQw3ITSpij7iKJlVMdZNj2eUTazYlaptoAcWzoYps2a2/5zNUcJl" + ], + "x-ms-correlation-request-id": [ + "534bdf50-c73d-4e24-a871-4e496ce5328b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14097" + ], + "x-ms-request-id": [ + "534bdf50-c73d-4e24-a871-4e496ce5328b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:534bdf50-c73d-4e24-a871-4e496ce5328b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzL1NVMV9Qb29sL3ZvbHVtZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "950d31c5-5f62-4e5c-8afb-7e121d5957ce" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b\",\r\n \"name\": \"a42d219b\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"fileSystem\": \"CSVFS_ReFS\",\r\n \"remainingSizeGB\": 2201,\r\n \"sizeGB\": 2525,\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "478" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvyUh3PlDCMG9Pmnq/LmLJ4VXwgoB3VFj8DQG46JOIh1cAcm6FPBBb7HsjipxscASdFHjkq3jlA702dyhn45qh/mbAVBrg38UbMpY7R3OfEU4h3Odct6mE6nWFIn38huhLtIxJMCPKzC8VMBGIS40B" + ], + "x-ms-correlation-request-id": [ + "cca94a8d-f3ce-492d-8c99-c55ed0892049" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14096" + ], + "x-ms-request-id": [ + "cca94a8d-f3ce-492d-8c99-c55ed0892049" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:cca94a8d-f3ce-492d-8c99-c55ed0892049" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzL1NVMV9Qb29sL3ZvbHVtZXMvYTQyZDIxOWI/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9a502d9-4cfb-4a0f-82d3-b1f8509173b0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b\",\r\n \"name\": \"a42d219b\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"fileSystem\": \"CSVFS_ReFS\",\r\n \"remainingSizeGB\": 2201,\r\n \"sizeGB\": 2525,\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvCQushyou8bxgRVVh5sZFiTZyAL660/Yzn/n7J1gviAgOSR4H/s26eZCSKBvrt4Dr4EjOqJ8OhSqcj0X81llGJFUGC6xsUARy0/5h/gqFiZwsTDnDjy4erGc3jXHW7cHsS0+xtbBrSzEPtILxlAE3" + ], + "x-ms-correlation-request-id": [ + "25a8f9dc-11d2-4b41-a884-320bd1128c6a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14095" + ], + "x-ms-request-id": [ + "25a8f9dc-11d2-4b41-a884-320bd1128c6a" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:25a8f9dc-11d2-4b41-a884-320bd1128c6a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetEdgeGateway.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetEdgeGateway.json new file mode 100644 index 000000000000..72ec144b1ecd --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetEdgeGateway.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGateways?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZWRnZUdhdGV3YXlzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "875b4d46-83a4-4ba0-9dff-a3ee9794bce4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGateways/AzS-Gwy01\",\r\n \"name\": \"AzS-Gwy01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/edgeGateways\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"totalCapacity\": 100000000,\r\n \"availableCapacity\": 100000000,\r\n \"numberOfConnections\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "399" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvcJqWNEg+WmaMUQYgCJ1EA7sf+BzAzxz5qqE/GRX/flDFQl8Xre1R1wJBlrQvxScIHaJAaR3vZjwz+kManrRE6RziUWoFtd7BO7haM65y6dglSGcMSfSR8scST7pLyT9EzgsvNgtZsowCoe8/rTEl" + ], + "x-ms-correlation-request-id": [ + "7cbdbbe2-ba72-4b8d-b721-3cc021d85bc0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14094" + ], + "x-ms-request-id": [ + "7cbdbbe2-ba72-4b8d-b721-3cc021d85bc0" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:7cbdbbe2-ba72-4b8d-b721-3cc021d85bc0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGateways/AzS-Gwy01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZWRnZUdhdGV3YXlzL0F6Uy1Hd3kwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d8aca33d-daed-41a4-943d-889042e1c56b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGateways/AzS-Gwy01\",\r\n \"name\": \"AzS-Gwy01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/edgeGateways\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"totalCapacity\": 100000000,\r\n \"availableCapacity\": 100000000,\r\n \"numberOfConnections\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "387" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv054nRCYnh2Q9NoyK8MvyNHxNum90KdCLFMSm2tYV5ypA+/TVkBZvuOcYu9NLI048nvwx0qW5hA0jO+2N+B42FGgpEz309Oj6AZ86sQqd9DTqNxCJ/i0uqqqjEMjDBZcBXZRQMDuxNjTdVz//MmLj" + ], + "x-ms-correlation-request-id": [ + "473cd8b7-8ec6-4a45-9e9e-d78895ce4cde" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14093" + ], + "x-ms-request-id": [ + "473cd8b7-8ec6-4a45-9e9e-d78895ce4cde" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:473cd8b7-8ec6-4a45-9e9e-d78895ce4cde" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetEdgeGatewayPool.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetEdgeGatewayPool.json new file mode 100644 index 000000000000..1c4bbfb77176 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetEdgeGatewayPool.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGatewayPools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZWRnZUdhdGV3YXlQb29scz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3821cb49-ed9b-4831-a0aa-83c4bffacebf" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGatewayPools/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/edgeGatewayPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"gatewayType\": \"S2sIPsec\",\r\n \"numberOfGateways\": 1,\r\n \"redundantGatewayCount\": 0,\r\n \"gatewayCapacityKiloBitsPerSecond\": 100000000,\r\n \"publicIpAddress\": \"00000000-5555-0000-0001-000000000000\",\r\n \"edgeGateways\": [\r\n \"AzS-Gwy01\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "509" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRveqMEX3N++Tz6nwLTt/3YLtWovjvEV4p3L1bBU4NzkjsHxldtul3ZFOA5FWSNuxUhuySijcljglG7ZMEmq/v/xAUmBMQscrPXkWIC5JuKxJhJxdgaVx3fQRXl+xI0OMGXloyVzeYnC1s02XpCYxTE" + ], + "x-ms-correlation-request-id": [ + "4a45a2d2-6dbc-4624-85cb-554651797bd1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14139" + ], + "x-ms-request-id": [ + "4a45a2d2-6dbc-4624-85cb-554651797bd1" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:4a45a2d2-6dbc-4624-85cb-554651797bd1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGatewayPools/default?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZWRnZUdhdGV3YXlQb29scy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a6c48419-aab5-4e9a-9ed0-236da7b57269" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGatewayPools/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/edgeGatewayPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"gatewayType\": \"S2sIPsec\",\r\n \"numberOfGateways\": 1,\r\n \"redundantGatewayCount\": 0,\r\n \"gatewayCapacityKiloBitsPerSecond\": 100000000,\r\n \"publicIpAddress\": \"00000000-5555-0000-0001-000000000000\",\r\n \"edgeGateways\": [\r\n \"AzS-Gwy01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "497" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv2h7U//mFMmCyMTdDIRLfHidUe6HkXXrniRCCYIwRWVi80rps1gGcWwLzkUQm6X62K/eI2AvSMlKn83Iyzp9T5cIBhRSgswlxzz4xKoPgWbb6K+5LuZSNMnziO5NE8cz+3lgFjQ48CfVuJiPbopP3" + ], + "x-ms-correlation-request-id": [ + "17164796-bc40-4908-873c-c26647202951" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14138" + ], + "x-ms-request-id": [ + "17164796-bc40-4908-873c-c26647202951" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:17164796-bc40-4908-873c-c26647202951" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetFabricLocation.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetFabricLocation.json new file mode 100644 index 000000000000..c04e780960c6 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetFabricLocation.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "269dbfe4-3e71-43d1-b8c5-da9fbd14fa15" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "263" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv00HUK3NXAjQmJp6UxzeKswKDg8CYaC1SVFvRhZsaO8XpveKV1Azs8JkMRRF4MvWRwBDZA6Lg1/1QY6mZKa5EzenwCLhtddVKrqqaq56lDc/bzxXX0OjOmD3Lg5tZy6ldJqWB3ZWXcyFamRBp6Pji" + ], + "x-ms-correlation-request-id": [ + "9b1d35eb-612f-4f8f-9151-2a100e0db703" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14110" + ], + "x-ms-request-id": [ + "9b1d35eb-612f-4f8f-9151-2a100e0db703" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:9b1d35eb-612f-4f8f-9151-2a100e0db703" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWw/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6d5cb29b-869a-4ddc-a0af-4955ae28328e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "251" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRviuzCTLWnOSFjMTDlZr2naeL9ZK6oWcJJXQjU9Rqi15j3/YbDPJpcWTGORZm1HDH7LqN6+KAk18kAZdT+uOw+EQhT/exYKmACtT5Blfy5ys9QU1QYwov0KBXn8VtSR8DVwInZ7+IW1AmehjPiDqcN" + ], + "x-ms-correlation-request-id": [ + "c65e0354-2353-468a-9112-bf4bc451657c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14109" + ], + "x-ms-request-id": [ + "c65e0354-2353-468a-9112-bf4bc451657c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:c65e0354-2353-468a-9112-bf4bc451657c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetFileShare.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetFileShare.json new file mode 100644 index 000000000000..11d98d2b7794 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetFileShare.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZmlsZVNoYXJlcz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4f66999d-1042-44cf-8086-41af0c517a32" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_1\",\r\n \"name\": \"SU1_Infrastructure_1\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Infrastructure_1\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_2\",\r\n \"name\": \"SU1_Infrastructure_2\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Infrastructure_2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_3\",\r\n \"name\": \"SU1_Infrastructure_3\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Infrastructure_3\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_ObjStore\",\r\n \"name\": \"SU1_ObjStore\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Public\",\r\n \"name\": \"SU1_Public\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Public\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_VmTemp\",\r\n \"name\": \"SU1_VmTemp\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_VmTemp\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2375" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvg1ztU0HzFd4sBS9uyIi1SGioElG/kFPxA1XURX/8TwUd9ldukuamOlTJzuzNq7FrbsbF0jTngSpxuLC7YClQAmeZ1JlZuL2TsAALZp0HX9t3lYnRxy2b/2SHSEsU+BR4dMVFYG7qkzNh+ZoDRqnu" + ], + "x-ms-correlation-request-id": [ + "85ff6899-1957-456d-a17a-d592d89d1df0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14130" + ], + "x-ms-request-id": [ + "85ff6899-1957-456d-a17a-d592d89d1df0" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192220Z:85ff6899-1957-456d-a17a-d592d89d1df0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_1?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZmlsZVNoYXJlcy9TVTFfSW5mcmFzdHJ1Y3R1cmVfMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "451dff70-1b43-4f77-ad59-d76e80ae8754" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_1\",\r\n \"name\": \"SU1_Infrastructure_1\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Infrastructure_1\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "407" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvJiJeRI/N9WrbayBAsCKnw8qDeXH25l8zBeswIYVI6bCO+xeZExMWUF4L6WjaDR83cnSdZLKJurWQHHynmdxLI2oGeDFhocPlsQFgxmOUrGcXWltmqJ3o3pkTbz0NBs1/QXQyKWUGeb8q+NHhotj8" + ], + "x-ms-correlation-request-id": [ + "4dce5a1f-7684-49fd-8be1-496fae3cb621" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14129" + ], + "x-ms-request-id": [ + "4dce5a1f-7684-49fd-8be1-496fae3cb621" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192220Z:4dce5a1f-7684-49fd-8be1-496fae3cb621" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetInfraRole.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetInfraRole.json new file mode 100644 index 000000000000..51ccf4a2362b --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetInfraRole.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bad3bae7-810b-4d91-9608-b6f9a550459e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Active Directory Federation Services\",\r\n \"name\": \"Active Directory Federation Services\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ADFS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Authorization service (Administrator)\",\r\n \"name\": \"Authorization service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Authorization service (User)\",\r\n \"name\": \"Authorization service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure bridge\",\r\n \"name\": \"Azure bridge\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure Resource Manager (Administrator)\",\r\n \"name\": \"Azure Resource Manager (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure Resource Manager (User)\",\r\n \"name\": \"Azure Resource Manager (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Backup controller\",\r\n \"name\": \"Backup controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ERCS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Backup Restore Resource Provider\",\r\n \"name\": \"Backup Restore Resource Provider\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Capacity\",\r\n \"name\": \"Capacity\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Certificate management\",\r\n \"name\": \"Certificate management\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-CA01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Compute\",\r\n \"name\": \"Compute\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Compute controller\",\r\n \"name\": \"Compute controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Directory management\",\r\n \"name\": \"Directory management\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-DC01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Edge gateway\",\r\n \"name\": \"Edge gateway\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Gwy01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Gallery service (Administrator)\",\r\n \"name\": \"Gallery service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Gallery service (User)\",\r\n \"name\": \"Gallery service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Health controller\",\r\n \"name\": \"Health controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure deployment\",\r\n \"name\": \"Infrastructure deployment\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ERCS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure management controller\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure role controller\",\r\n \"name\": \"Infrastructure role controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Insights service (Administrator)\",\r\n \"name\": \"Insights service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Insights service (User)\",\r\n \"name\": \"Insights service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Internal data store\",\r\n \"name\": \"Internal data store\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Sql01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault\",\r\n \"name\": \"Key Vault\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault controller (Administrator)\",\r\n \"name\": \"Key Vault controller (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault controller (User)\",\r\n \"name\": \"Key Vault controller (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault name manager\",\r\n \"name\": \"Key Vault name manager\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault service (Administrator)\",\r\n \"name\": \"Key Vault service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault service (User)\",\r\n \"name\": \"Key Vault service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Load balancer multiplexer\",\r\n \"name\": \"Load balancer multiplexer\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-SLB01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Network\",\r\n \"name\": \"Network\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Network controller\",\r\n \"name\": \"Network controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-NC01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Partition request broker (Administrator)\",\r\n \"name\": \"Partition request broker (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Partition request broker (User)\",\r\n \"name\": \"Partition request broker (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Portal (Administrator)\",\r\n \"name\": \"Portal (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Portal (User)\",\r\n \"name\": \"Portal (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Privileged endpoint\",\r\n \"name\": \"Privileged endpoint\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ERCS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Region Management\",\r\n \"name\": \"Region Management\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage\",\r\n \"name\": \"Storage\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage controller\",\r\n \"name\": \"Storage controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage services\",\r\n \"name\": \"Storage services\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Subscriptions service\",\r\n \"name\": \"Subscriptions service\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Updates\",\r\n \"name\": \"Updates\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage Bridge host\",\r\n \"name\": \"Usage Bridge host\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage service (Administrator)\",\r\n \"name\": \"Usage service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage service (User)\",\r\n \"name\": \"Usage service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "22684" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv2siJYmQ4ce9lE4qhQ+bn9jRbaZZENcAgYKRI0XnXvd6NiG831rL7CdAFCOay+S5Swb+fyvETc7tXhRd1L27mP6tVreUSzKH7aGeRMBObIDj6Z5Xix/zor9r/D+uj4ymYTOpbW/+PQdv6wMCfVn6I" + ], + "x-ms-correlation-request-id": [ + "477557c4-4698-4602-a971-c6422be37f4b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14165" + ], + "x-ms-request-id": [ + "477557c4-4698-4602-a971-c6422be37f4b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190904Z:477557c4-4698-4602-a971-c6422be37f4b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Active%20Directory%20Federation%20Services?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcy9BY3RpdmUlMjBEaXJlY3RvcnklMjBGZWRlcmF0aW9uJTIwU2VydmljZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c08c0457-4c2f-46dc-b481-191d39a5d1f3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Active Directory Federation Services\",\r\n \"name\": \"Active Directory Federation Services\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ADFS01\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "520" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvEJEODYRp/04W79hprgExKsAiwjcQFN6kXonWEN/vvzqMMKjITDFBS5apjkNTZzgAb3BdkX49XI025mwpV9Imf3kafIxM6sGdXEkIG9zeYU/SBEFb3PE3GJq+EvoQbdQab/tXDMgjC6yBOqn+gG9I" + ], + "x-ms-correlation-request-id": [ + "439b1278-7b66-49f0-865a-86b07908bcfa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14164" + ], + "x-ms-request-id": [ + "439b1278-7b66-49f0-865a-86b07908bcfa" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190904Z:439b1278-7b66-49f0-865a-86b07908bcfa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetInfraRoleInstance.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetInfraRoleInstance.json new file mode 100644 index 000000000000..03b2f87e0489 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetInfraRoleInstance.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "53fb5cf4-28aa-4ec5-8a00-8789ba6ee7d4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01\",\r\n \"name\": \"AzS-ACS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ADFS01\",\r\n \"name\": \"AzS-ADFS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-BGPNAT01\",\r\n \"name\": \"AzS-BGPNAT01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-CA01\",\r\n \"name\": \"AzS-CA01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 1.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Gwy01\",\r\n \"name\": \"AzS-Gwy01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-NC01\",\r\n \"name\": \"AzS-NC01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-SLB01\",\r\n \"name\": \"AzS-SLB01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Sql01\",\r\n \"name\": \"AzS-Sql01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\",\r\n \"name\": \"AzS-WAS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\",\r\n \"name\": \"AzS-WASP01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\",\r\n \"name\": \"AzS-Xrp01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "7772" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvRBnd03uc4LjR37PCc8MYL6dP2ZOvzgIlLuU5Z1uipoES6xEAeLIxtklpHIML8yrTa5ZA2Yy0FjcYroPZ04j0CUXKfyr5c2Ntlmq+6j75gykyzVHnSJp/UP2sA4FHQ1bDKlFIN5cTLGaw8GzY7Zbl" + ], + "x-ms-correlation-request-id": [ + "cb49dc8f-76ea-449e-9c0c-8d6383498d44" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14166" + ], + "x-ms-request-id": [ + "cb49dc8f-76ea-449e-9c0c-8d6383498d44" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191513Z:cb49dc8f-76ea-449e-9c0c-8d6383498d44" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1BQ1MwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3b93e53a-174e-440c-972e-85a006eb2ed4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01\",\r\n \"name\": \"AzS-ACS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "704" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvJdW59WMtADldiRfHO30Ih2z4NvmidsJJpp0EIdEjAMNxNj0KIf348IBdefp6v1on0skG6FxskdS5IFNTiyYZ/GnKuH5Q0BvIyQKu4H7/B2xTT280x2txwiokJO/jZ8aAIB0uYatJzXoPPGHcHDbm" + ], + "x-ms-correlation-request-id": [ + "77337bb7-d0dd-4333-ba9d-48c90f0a3e4c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14165" + ], + "x-ms-request-id": [ + "77337bb7-d0dd-4333-ba9d-48c90f0a3e4c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191513Z:77337bb7-d0dd-4333-ba9d-48c90f0a3e4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetInfraRoleInstanceOnTenantVM.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetInfraRoleInstanceOnTenantVM.json new file mode 100644 index 000000000000..e7f5b3f2402e --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetInfraRoleInstanceOnTenantVM.json @@ -0,0 +1,69 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/502828aa-de3a-4ba9-a66c-5ae6d49589d7?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzLzUwMjgyOGFhLWRlM2EtNGJhOS1hNjZjLTVhZTZkNDk1ODlkNz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "78a37028-16f1-4abd-8d1e-48e7bc38bfc9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv2dPb79vb9H1lo6La1scrnFn1f+qa/297KFW4BqZ8zaRfZITvqkc4GKPo1PIy2NUQ5SVNc6wuVw6faqL4weUpBqZnogwJrNWnbC3SU9+UV2tC2tyHLEu1BakJihB7ywzIiEKxreXJZnDDDVnX5yPA" + ], + "x-ms-correlation-request-id": [ + "86c8af0e-20b8-44cb-a497-d4caba162172" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14167" + ], + "x-ms-request-id": [ + "86c8af0e-20b8-44cb-a497-d4caba162172" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191513Z:86c8af0e-20b8-44cb-a497-d4caba162172" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetIpPool.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetIpPool.json new file mode 100644 index 000000000000..d6524f9c1a27 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetIpPool.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaXBQb29scz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "aa35d31c-91ba-4b49-a788-2e244c59430f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/08786a0f-ad8c-43aa-a154-06083abfc1ac\",\r\n \"name\": \"08786a0f-ad8c-43aa-a154-06083abfc1ac\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.105.1\",\r\n \"endIpAddress\": \"192.168.105.255\",\r\n \"numberOfIpAddresses\": 255,\r\n \"numberOfAllocatedIpAddresses\": 8,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/75e93974-f451-468d-bbc2-8a388a938344\",\r\n \"name\": \"75e93974-f451-468d-bbc2-8a388a938344\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.112\",\r\n \"endIpAddress\": \"192.168.200.127\",\r\n \"numberOfIpAddresses\": 16,\r\n \"numberOfAllocatedIpAddresses\": 1,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/7c9d2d8a-e243-4d4d-b635-9545ba2bd8a8\",\r\n \"name\": \"7c9d2d8a-e243-4d4d-b635-9545ba2bd8a8\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.65\",\r\n \"endIpAddress\": \"192.168.200.111\",\r\n \"numberOfIpAddresses\": 47,\r\n \"numberOfAllocatedIpAddresses\": 0,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/a09498cb-d6b3-4d6e-9c3d-0caea30cfb58\",\r\n \"name\": \"a09498cb-d6b3-4d6e-9c3d-0caea30cfb58\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.1\",\r\n \"endIpAddress\": \"192.168.200.62\",\r\n \"numberOfIpAddresses\": 62,\r\n \"numberOfAllocatedIpAddresses\": 1,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/a8dee838-b2b7-4648-8a00-2c61ff8ffde6\",\r\n \"name\": \"a8dee838-b2b7-4648-8a00-2c61ff8ffde6\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.102.1\",\r\n \"endIpAddress\": \"192.168.102.255\",\r\n \"numberOfIpAddresses\": 255,\r\n \"numberOfAllocatedIpAddresses\": 31,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/c743f3e0-9fa4-4236-8c3d-a0f8ad945fb4\",\r\n \"name\": \"c743f3e0-9fa4-4236-8c3d-a0f8ad945fb4\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.224\",\r\n \"endIpAddress\": \"192.168.200.254\",\r\n \"numberOfIpAddresses\": 31,\r\n \"numberOfAllocatedIpAddresses\": 1,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2988" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvjZJDhIHzGnGsjVz6hCGabI7vC4z9jx2P3LkiX83+wnBYX3QR3dYEwfYqu1EG6sVoht8/3Najk7UoPD3JOYKlEXCHJLbpR+dk3MdfIyOEi6D4PvRtDQUhqXmd76NJJ9c8Uq2OL1g/evm1Uta+4zfA" + ], + "x-ms-correlation-request-id": [ + "3b65032f-62a9-4e42-a9cd-b8efadc18f80" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14112" + ], + "x-ms-request-id": [ + "3b65032f-62a9-4e42-a9cd-b8efadc18f80" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:3b65032f-62a9-4e42-a9cd-b8efadc18f80" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/08786a0f-ad8c-43aa-a154-06083abfc1ac?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaXBQb29scy8wODc4NmEwZi1hZDhjLTQzYWEtYTE1NC0wNjA4M2FiZmMxYWM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "01095d00-1dfd-4b16-8254-936898769e2a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/08786a0f-ad8c-43aa-a154-06083abfc1ac\",\r\n \"name\": \"08786a0f-ad8c-43aa-a154-06083abfc1ac\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.105.1\",\r\n \"endIpAddress\": \"192.168.105.255\",\r\n \"numberOfIpAddresses\": 255,\r\n \"numberOfAllocatedIpAddresses\": 8,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "495" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvSHIMq7krt0Rq2tObyydV9ivN9kaadsf7Qp+sHGMjswmdS8b4yQjvs4TsjGfXRyFdO77bOGsK5lZqmzyzmhmw6/wG0KQflXzMcQuOfZ/zOp4oH86ML5Y+rna7OmDshDs1EQWncfPpFUSOpZY2bxE9" + ], + "x-ms-correlation-request-id": [ + "af6d3abf-b69e-4e72-821c-8d7089d2d903" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14111" + ], + "x-ms-request-id": [ + "af6d3abf-b69e-4e72-821c-8d7089d2d903" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:af6d3abf-b69e-4e72-821c-8d7089d2d903" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetLogicalNetwork.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetLogicalNetwork.json new file mode 100644 index 000000000000..067583449a02 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetLogicalNetwork.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b9f0fc52-c1c4-40fa-af87-bf14a78817b0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001\",\r\n \"name\": \"00000000-2222-1111-9999-000000000001\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968\",\r\n \"name\": \"47931036-2874-4d45-b1f1-b69666088968\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"64311075-3ae7-4327-bafa-2c58804addb7\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"name\": \"B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"1ee6e531-b000-412c-bba7-2d6d6f257ac4\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"name\": \"bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": true,\r\n \"subnets\": [\r\n \"be20afa7-2ada-4261-a12a-4e48498223cf\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"name\": \"F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d43d2881-3aad-40c9-b207-4280a9b3b699\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"name\": \"f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"9ec2eb29-6d47-4e22-a322-eb575c16937a\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2644" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv7AXGCfcNPK3gnizsPy9rCEaA0m8el/X1nZ5K1/7UaltT4yp0zSVdkneC9JRdtG1hM3A4CCbCmjHXqcyFBeNgeu65oyjodwrclubymtaBzetI8LzbBneyItainAHL2u8yivBc2iEVHFnQzOoSADZE" + ], + "x-ms-correlation-request-id": [ + "0b0e4e32-8380-47d3-9aeb-8684c2a3cb96" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14084" + ], + "x-ms-request-id": [ + "0b0e4e32-8380-47d3-9aeb-8684c2a3cb96" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:0b0e4e32-8380-47d3-9aeb-8684c2a3cb96" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzLzAwMDAwMDAwLTIyMjItMTExMS05OTk5LTAwMDAwMDAwMDAwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e4a0ca5f-69d3-479b-9686-5b1d198341d6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001\",\r\n \"name\": \"00000000-2222-1111-9999-000000000001\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "438" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv8xHLyUjL2+jj3nJ3hIBjx+xP7v1Q/TLGQG73RKs1DmZo5QALAm3YUZRU4Tj5xk9yOQ1ZpvMb00aB13SBjTjGj/iI+FzCjbE/xSawR01SS1KAE5qrlFcdbzG6B+EQgKmZYCW8TAAZhI/g1hbuom78" + ], + "x-ms-correlation-request-id": [ + "4854eb93-a5a3-43a7-8bde-8623a10ee892" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14083" + ], + "x-ms-request-id": [ + "4854eb93-a5a3-43a7-8bde-8623a10ee892" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:4854eb93-a5a3-43a7-8bde-8623a10ee892" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetLogicalSubnet.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetLogicalSubnet.json new file mode 100644 index 000000000000..2773257318fe --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetLogicalSubnet.json @@ -0,0 +1,200 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "519db9bd-418d-492d-b9fd-a889c7e2f4dc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001\",\r\n \"name\": \"00000000-2222-1111-9999-000000000001\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968\",\r\n \"name\": \"47931036-2874-4d45-b1f1-b69666088968\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"64311075-3ae7-4327-bafa-2c58804addb7\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"name\": \"B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"1ee6e531-b000-412c-bba7-2d6d6f257ac4\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"name\": \"bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": true,\r\n \"subnets\": [\r\n \"be20afa7-2ada-4261-a12a-4e48498223cf\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"name\": \"F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d43d2881-3aad-40c9-b207-4280a9b3b699\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"name\": \"f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"9ec2eb29-6d47-4e22-a322-eb575c16937a\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2644" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvbygF7GVQmvGQ1ckXiDTzrry2OF5wNdErj3MQCdKjodxZb1m2CHyh0ow8vJDwRzjsnUgNXvEIBgpgmZ9Mjy3xMUKBOWjMjWFsFCCXCi0inMdxSQMO3UlYVcu7YTpMtQRUVzf4emLbDnfLL6jntfFM" + ], + "x-ms-correlation-request-id": [ + "94cddc28-6158-4859-baba-b944f66b4813" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14138" + ], + "x-ms-request-id": [ + "94cddc28-6158-4859-baba-b944f66b4813" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:94cddc28-6158-4859-baba-b944f66b4813" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001/logicalSubnets?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzLzAwMDAwMDAwLTIyMjItMTExMS05OTk5LTAwMDAwMDAwMDAwMS9sb2dpY2FsU3VibmV0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7847375b-7313-4bb6-ad81-875409b55704" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001/logicalSubnets/d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\",\r\n \"name\": \"d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"2ce37b2a-3da0-493c-9eb5-b95054fc71f4\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "497" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvOwrRhfBivlMcQk6jrphquOWXrMP/ZKBFmJglOq5Kz0vthE5/gQGVPzXt0EZy5vJdMxSujDsTJCr25rH/PeChbkafJ6QiAX2T8f6B1pAbeI/UYWxBv9AZq99iHpcT5CiVfxRNyHFXKCMgV/EnQhG0" + ], + "x-ms-correlation-request-id": [ + "12d89ebb-c7c0-4cd7-a675-f9c77f66a05c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14137" + ], + "x-ms-request-id": [ + "12d89ebb-c7c0-4cd7-a675-f9c77f66a05c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:12d89ebb-c7c0-4cd7-a675-f9c77f66a05c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001/logicalSubnets/d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzLzAwMDAwMDAwLTIyMjItMTExMS05OTk5LTAwMDAwMDAwMDAwMS9sb2dpY2FsU3VibmV0cy9kOGNmZWYyZC1jMGM4LTRjZGItYjBhOC1mYjFiZGYzZjJhZDc/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ee82d2e0-5f4b-4343-8768-cd46acf0d12a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001/logicalSubnets/d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\",\r\n \"name\": \"d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"2ce37b2a-3da0-493c-9eb5-b95054fc71f4\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "485" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv9ofwYj4NPzc3hsNouKv11JjdfnDRHi4xhKzIdJ+vSALekz/OfKpSKgvjUs09GdFCoyn5zcBdcz4c+tnhfltBmEQE+YV3mpM4MKGfnTguhO2QLX4I+FJ+NnnXyUfi8eYCOdsWZlJzIW46/wrM3SkA" + ], + "x-ms-correlation-request-id": [ + "b4d105f5-f783-4729-85ee-3d3cc05342b5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14136" + ], + "x-ms-request-id": [ + "b4d105f5-f783-4729-85ee-3d3cc05342b5" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:b4d105f5-f783-4729-85ee-3d3cc05342b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetMacAddressPool.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetMacAddressPool.json new file mode 100644 index 000000000000..f14c4bebf038 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetMacAddressPool.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/macAddressPools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbWFjQWRkcmVzc1Bvb2xzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "538e5d3b-8e30-4862-abe5-c05ac956c9d1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/macAddressPools/8197fd09-8a69-417e-a55c-10c2c61f5ee7\",\r\n \"name\": \"8197fd09-8a69-417e-a55c-10c2c61f5ee7\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/macAddressPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startMacAddress\": \"00-1D-D8-B7-1C-00\",\r\n \"endMacAddress\": \"00-1D-D8-F4-1F-FF\",\r\n \"numberOfAllocatedMacAddresses\": 2,\r\n \"numberOfAvailableMacAddresses\": 3998718\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvDwFQ4xwppm8jLyGbjazO2vjaFGsuqSKiWu1C18RyXrhQt6dZmKraoIwfcoprpJnYGcq/0k5AHYwEnWDsS4n9Adut1D8b+MVsgvYpJ8Ql4Oq7Lqi9KfT88KubAWjGyCU5Ml9kyNtuA2x2qP9KFBR7" + ], + "x-ms-correlation-request-id": [ + "ae3cc461-a2a1-4cc4-bf73-c9b7365299e7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14134" + ], + "x-ms-request-id": [ + "ae3cc461-a2a1-4cc4-bf73-c9b7365299e7" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:ae3cc461-a2a1-4cc4-bf73-c9b7365299e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/macAddressPools/8197fd09-8a69-417e-a55c-10c2c61f5ee7?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbWFjQWRkcmVzc1Bvb2xzLzgxOTdmZDA5LThhNjktNDE3ZS1hNTVjLTEwYzJjNjFmNWVlNz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e68addd2-3990-4d2b-ae14-381779bdde49" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/macAddressPools/8197fd09-8a69-417e-a55c-10c2c61f5ee7\",\r\n \"name\": \"8197fd09-8a69-417e-a55c-10c2c61f5ee7\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/macAddressPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startMacAddress\": \"00-1D-D8-B7-1C-00\",\r\n \"endMacAddress\": \"00-1D-D8-F4-1F-FF\",\r\n \"numberOfAllocatedMacAddresses\": 2,\r\n \"numberOfAvailableMacAddresses\": 3998718\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "498" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvypA5pPVrtO7BDMN6h59r6vQlQrWnmI1Ek5ORc1liuwQYyk8QN6OAK8lu+eI+lD96gJhU/QEUYxMgGcSJSReC1yfjiqnKWlis9YLdYf61aPX1271fhG84o58dLTQ+w3d/1/jUqfJCeEpGqeeQ+RTm" + ], + "x-ms-correlation-request-id": [ + "22fbd18e-9771-4b00-aad7-982fa2475d67" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14133" + ], + "x-ms-request-id": [ + "22fbd18e-9771-4b00-aad7-982fa2475d67" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192220Z:22fbd18e-9771-4b00-aad7-982fa2475d67" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetScaleUnit.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetScaleUnit.json new file mode 100644 index 000000000000..0ab4ae62c22c --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetScaleUnit.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0ac4e741-89a4-4305-92c7-30e96d0cb6cd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"name\": \"S-Cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 255.875,\r\n \"cores\": 56\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "594" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv7z63i6RXRmczqw5fZCu93YO/jEsAa0XW/pRFymW7FcMx0iSl0ekwKpLcUGcC0KdsqZWvXZi4mNVWtEV7HrR/edII2lMUqMXDz+itQg9sGh3vPGjx6YUJxBHIHQkmAC5RhShfRqk0u1H8mxil2Zyq" + ], + "x-ms-correlation-request-id": [ + "c9891ac0-b1aa-475e-8466-7eb4fc87c69d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14086" + ], + "x-ms-request-id": [ + "c9891ac0-b1aa-475e-8466-7eb4fc87c69d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:c9891ac0-b1aa-475e-8466-7eb4fc87c69d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9TLUNsdXN0ZXI/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4cb91a97-41db-4a01-aed4-72a122bbcd32" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"name\": \"S-Cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 255.875,\r\n \"cores\": 56\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "582" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvxJ66qBn6glp0hMrIeiwANnBMEt005mnuHzmYY5/ppMexYpWgtckgup3ciRCYSKS/kDh+ZcoB5uGag3YZ/ALfe+6mFJW5PvYoO56nd2kUT63x1ZyEe6GP1Yp4wfsVgc3ZoT55DRxR77/b5rFI17Li" + ], + "x-ms-correlation-request-id": [ + "b151a83a-471f-4ed1-9375-b1d1ef228ece" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14085" + ], + "x-ms-request-id": [ + "b151a83a-471f-4ed1-9375-b1d1ef228ece" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:b151a83a-471f-4ed1-9375-b1d1ef228ece" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetScaleUnitNode.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetScaleUnitNode.json new file mode 100644 index 000000000000..c1230a6560b4 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetScaleUnitNode.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "925a6e7e-7b81-4014-a5b3-4ba25d3a2dc7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"name\": \"HC1n25r2236\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnitNodes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitNodeStatus\": \"Running\",\r\n \"powerState\": \"Running\",\r\n \"scaleUnitName\": \"S-Cluster\",\r\n \"scaleUnitUri\": \"/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"canPowerOff\": false,\r\n \"macAddress\": \"24-8A-07-89-15-62\",\r\n \"capacity\": {\r\n \"memoryGB\": 255.875,\r\n \"cores\": 56\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "550" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:12:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvkeDq6MWoSoUi8aO2ejVC1f8aFPC9o74cSayujvHJ4nOxfnHrZiRK7KL4elFTNYWdy0KVGI5/UEey2zwYAjsPunMUaxL6Q9EU42cDh/SWaDfmK8EGWwo6LqcGo8BSavBP6f1ymDfs49qpTLE0Zb5M" + ], + "x-ms-correlation-request-id": [ + "6ebdbfd8-edc7-485d-b953-2ce82e3fb9e9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14147" + ], + "x-ms-request-id": [ + "6ebdbfd8-edc7-485d-b953-2ce82e3fb9e9" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191239Z:6ebdbfd8-edc7-485d-b953-2ce82e3fb9e9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXMvSEMxbjI1cjIyMzY/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "34259a9c-4cfe-42e7-9c00-524486022f13" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"name\": \"HC1n25r2236\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnitNodes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitNodeStatus\": \"Running\",\r\n \"powerState\": \"Running\",\r\n \"scaleUnitName\": \"S-Cluster\",\r\n \"scaleUnitUri\": \"/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"canPowerOff\": false,\r\n \"macAddress\": \"24-8A-07-89-15-62\",\r\n \"capacity\": {\r\n \"memoryGB\": 255.875,\r\n \"cores\": 56\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "538" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:12:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvsSrzTCTKaskYrfT5XzcnjUR9DTxxuXMu0EgpffqCEeEuJwTZd+HAweW0F++ev/RljHTOgkKmOGpb8q7UUCxr6D6WIgqHTUokWR6GGZaLWLLR3w+VN3OimK8plD1as06N08mAObHhTTrg4+rTUc0E" + ], + "x-ms-correlation-request-id": [ + "2c5ac625-8905-4336-bdad-a94a3ed37b49" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14146" + ], + "x-ms-request-id": [ + "2c5ac625-8905-4336-bdad-a94a3ed37b49" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191239Z:2c5ac625-8905-4336-bdad-a94a3ed37b49" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetScaleUnitNodeOnTenantVM.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetScaleUnitNodeOnTenantVM.json new file mode 100644 index 000000000000..22264954c33e --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetScaleUnitNodeOnTenantVM.json @@ -0,0 +1,69 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/502828aa-de3a-4ba9-a66c-5ae6d49589d7?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXMvNTAyODI4YWEtZGUzYS00YmE5LWE2NmMtNWFlNmQ0OTU4OWQ3P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8b2dfbca-0703-46d2-892d-d6844a0b6145" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:10:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvYUxSldl95oWb/DHw4idZXGNLT10ycRvOiMed916CEawW8k/HBweXBytQUY+xHcgT4sYaEAsI84ka1KDrjJSRQ1Nc958miiXEpAmbN4pizo91PzXNDqMsZ6Ga/0xC/TrllHq0Un7cGGYGYeQ6HZcE" + ], + "x-ms-correlation-request-id": [ + "0a33926b-b899-40ee-87a7-3837dbdf85eb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14162" + ], + "x-ms-request-id": [ + "0a33926b-b899-40ee-87a7-3837dbdf85eb" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191058Z:0a33926b-b899-40ee-87a7-3837dbdf85eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetSlbMuxInstance.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetSlbMuxInstance.json new file mode 100644 index 000000000000..b302980133c7 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetSlbMuxInstance.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/slbMuxInstances?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2xiTXV4SW5zdGFuY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8c21542e-6056-4849-9651-7ddd487e2e4c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/slbMuxInstances/AzS-SLB01\",\r\n \"name\": \"AzS-SLB01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/slbMuxInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"configurationState\": \"Success\",\r\n \"virtualServer\": \"AzS-SLB01\",\r\n \"bgpPeers\": [\r\n \"BGPGateway-64000-64001\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "405" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvf+Kx0fjtaTE7FIi3L7jdXGXvvhS/tdhTTxJalmFr6U0hckaBUnaBAkiG3Aahr0pIH5ob9VJ7sQLNba6RUe48EiiMX79Q7ovBWKTBuQqONcDYWWr7N7eh9NFTPCrjr+nR4HrAnVUEfVzuO6II0Fse" + ], + "x-ms-correlation-request-id": [ + "5604f8ff-9e89-497a-8f4a-75e2e8bb0d94" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14126" + ], + "x-ms-request-id": [ + "5604f8ff-9e89-497a-8f4a-75e2e8bb0d94" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:5604f8ff-9e89-497a-8f4a-75e2e8bb0d94" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/slbMuxInstances/AzS-SLB01?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2xiTXV4SW5zdGFuY2VzL0F6Uy1TTEIwMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eea9f1bb-b0b1-44f5-9627-02166028a7fc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/slbMuxInstances/AzS-SLB01\",\r\n \"name\": \"AzS-SLB01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/slbMuxInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"configurationState\": \"Success\",\r\n \"virtualServer\": \"AzS-SLB01\",\r\n \"bgpPeers\": [\r\n \"BGPGateway-64000-64001\"\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "393" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvcg2twOnkaBnJQqZqIKYzV5gLXMQX40AfnlKNJmbLrPeeXuoUCrCpxovhVbdqg6iTW68MSXN3vPG0jgVvuZjkt/cAPJAaAiMSiX8ZkkmpgIJqpk6oaLExRREq6G/cPS+TOylNCU48lTeGNdSj60MB" + ], + "x-ms-correlation-request-id": [ + "e6a97ab4-8feb-4ee7-9070-7eda329de31c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14125" + ], + "x-ms-request-id": [ + "e6a97ab4-8feb-4ee7-9070-7eda329de31c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:e6a97ab4-8feb-4ee7-9070-7eda329de31c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetStoragePool.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetStoragePool.json new file mode 100644 index 000000000000..0b46365908f1 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetStoragePool.json @@ -0,0 +1,200 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c22d4f74-a973-4ca5-a068-4f2b160e6bc8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "369" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvX82I2L01xm02XaSOhYwQ2uX0vbsxJg/7dPDuwWMpCFEvt8j964QWLzeRM/faJRSeNNoM+x5uHEx8+k7znu917BFSapuzf+7UclnPjTps78q8FiUB95GrgVjgrPfJJKXEyQtAVWzINTBMyUb9g6cg" + ], + "x-ms-correlation-request-id": [ + "689f08e8-1859-42cb-aced-52e56c7a2841" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14134" + ], + "x-ms-request-id": [ + "689f08e8-1859-42cb-aced-52e56c7a2841" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:689f08e8-1859-42cb-aced-52e56c7a2841" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b540d94a-938e-49d3-bcc4-30bed6569f04" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool\",\r\n \"name\": \"SU1_Pool\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sizeGB\": 5614\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "377" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv5hGwvc03cnhYeu8lnOsgBc4NaYcm5jLYq98IWPOQuOID7wVgAe0xXdWKaHeWt7UwKy4qBPqCpQ28z2ZsjLq+ta3d/B+7x+ICikidrxWMPxgA/+EKDz+/EpJ6U8ud5dnWDNjR+JD4PlXob4GXNCNb" + ], + "x-ms-correlation-request-id": [ + "4fc67dea-cd81-4b86-bed7-255be3c1612d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14133" + ], + "x-ms-request-id": [ + "4fc67dea-cd81-4b86-bed7-255be3c1612d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:4fc67dea-cd81-4b86-bed7-255be3c1612d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzL1NVMV9Qb29sP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fda72077-6512-45e5-9b60-c5167dfbf61e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool\",\r\n \"name\": \"SU1_Pool\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sizeGB\": 5614\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "365" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvdAEem/gjmVVpVA8eTyQM9tFtCi90nughKr/LtXB06Lw6kPteCepMX+b1OtAptZsaTZawdMnyh+5M13C7vflLs++G+g9Hszar+FTNq8KkrwfDkxxbMxTCXesoLwiN1BG/Xap69GadjLy4fCydNGv3" + ], + "x-ms-correlation-request-id": [ + "32e3190a-5a95-430f-9df3-dd54c7c94ca3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14132" + ], + "x-ms-request-id": [ + "32e3190a-5a95-430f-9df3-dd54c7c94ca3" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:32e3190a-5a95-430f-9df3-dd54c7c94ca3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetStorageSystem.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetStorageSystem.json new file mode 100644 index 000000000000..bf0164d401af --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetStorageSystem.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3a6b5523-c9d0-4bda-8f6f-ab2ed76976dd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "369" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv6QIM3xQSBvqEQi2pJMRS6WFJ9ZeFG8QEI6U38g7TU/eEJApwCa9kQb97pO/WyN8/nOd8zQCs/Oad9RJfEwlUY9DFxr8LeUD+SXCQo3QjcsZ6yl1fLeKGct2Nb1duouBFIBPiwmlf7mMi9NoDaPPj" + ], + "x-ms-correlation-request-id": [ + "6a3e4076-06a6-4e66-8b70-f15161a896b8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14118" + ], + "x-ms-request-id": [ + "6a3e4076-06a6-4e66-8b70-f15161a896b8" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191318Z:6a3e4076-06a6-4e66-8b70-f15161a896b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWw/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c4ce3520-1aa5-472c-9056-2a2555f93ea7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "357" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvkK5nq0EY2wy5Y48dLZyZWYRyBB543QgOHBO/V30fKp3GkNM4X1pMPMuhC0LSH5GrZUNLFW52OYcuqbgn9/koVAYm/LSI/u1kcK+AIBEc0a0bqccrP9bresHN7G8LICt9wAYJyw0z2EYF+rYz6WiU" + ], + "x-ms-correlation-request-id": [ + "ce4d714d-1831-4e51-a292-0d3373f70aa3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14117" + ], + "x-ms-request-id": [ + "ce4d714d-1831-4e51-a292-0d3373f70aa3" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191318Z:ce4d714d-1831-4e51-a292-0d3373f70aa3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetVolume.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetVolume.json new file mode 100644 index 000000000000..14319a6e347d --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestGetVolume.json @@ -0,0 +1,264 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c4f01cc5-57fa-4998-aa4b-4b60562cbe4c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "369" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvjyzutKJMuS+gfMPAcYUugNbhBFl7nNat66IqoG2fhlCv9ZRlofWEeY/ONGki/7/XF8Ids43R2ZV8h9G12CWi5AbxMo6xzWGSyqHR9seaEDPn2fGtKNLxjEMn5Au122HH/0y6oSbjMlxCMkQkoBdT" + ], + "x-ms-correlation-request-id": [ + "5c1d8ede-fc17-4620-91aa-499f07f66074" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14102" + ], + "x-ms-request-id": [ + "5c1d8ede-fc17-4620-91aa-499f07f66074" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:5c1d8ede-fc17-4620-91aa-499f07f66074" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f74cbcfb-64ff-4fda-8618-05b6f3b55f49" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool\",\r\n \"name\": \"SU1_Pool\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sizeGB\": 5614\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "377" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv3U2aAtbQy0Rizz0c6XVbdAvJF6qcSKQoI0oHC42Od8u0D64DBpj2PUy+7LuH8Uv84L9cMcua8BxYQ1UpfNo/ew2519JMEDPCG+C3vllKbHtb0TusfzsQT5Zd7b+970sdmrM9U8mQBKehSkpX9yLL" + ], + "x-ms-correlation-request-id": [ + "c8a36a39-7456-4acc-8e68-d042646d6216" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14101" + ], + "x-ms-request-id": [ + "c8a36a39-7456-4acc-8e68-d042646d6216" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:c8a36a39-7456-4acc-8e68-d042646d6216" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzL1NVMV9Qb29sL3ZvbHVtZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bec4dfe9-76bf-49a8-9ded-b863830077ea" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b\",\r\n \"name\": \"a42d219b\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"fileSystem\": \"CSVFS_ReFS\",\r\n \"remainingSizeGB\": 2201,\r\n \"sizeGB\": 2525,\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "478" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvOEJFc/28x6nLtVcgp3GWnCEvc6P+9ACENvQ+CVxbH+i/T0YLRxd2iyAbTySUtbvNcqOzVSBPE/v4YZ1Kh2XoGxvdaZAXsoqU9ToPaAlUnt2r3KNQA+F5pSey45fqLfFrUcpma16UU0holzfHJ1Kb" + ], + "x-ms-correlation-request-id": [ + "7e293db9-98d8-4a58-82a6-04777b5cbe7f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14100" + ], + "x-ms-request-id": [ + "7e293db9-98d8-4a58-82a6-04777b5cbe7f" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:7e293db9-98d8-4a58-82a6-04777b5cbe7f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzL1NVMV9Qb29sL3ZvbHVtZXMvYTQyZDIxOWI/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c7710bb7-6ccc-49ce-826e-6f6843020bc5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b\",\r\n \"name\": \"a42d219b\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"fileSystem\": \"CSVFS_ReFS\",\r\n \"remainingSizeGB\": 2201,\r\n \"sizeGB\": 2525,\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvUQYiigGL3uZkWKA4w4OZ0Dwybl+kfhTS1IUVIf4rSB3+Ixy/+jRrCqKdMD9uY7oHi6Ej6+3a24PnlOu592Il/RMkyg/8/QgWoKrwZ4Ez3dqa544d8VhS3SQ/D439PaHxemHn17E9cm0sdYu+8t/8" + ], + "x-ms-correlation-request-id": [ + "0dd04724-8d83-4d74-acb5-ac981afb75d9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14099" + ], + "x-ms-request-id": [ + "0dd04724-8d83-4d74-acb5-ac981afb75d9" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:0dd04724-8d83-4d74-acb5-ac981afb75d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstancePowerOffOnTenantVM.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstancePowerOffOnTenantVM.json new file mode 100644 index 000000000000..bd77028e41ab --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstancePowerOffOnTenantVM.json @@ -0,0 +1,139 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/502828aa-de3a-4ba9-a66c-5ae6d49589d7/PowerOff?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzLzUwMjgyOGFhLWRlM2EtNGJhOS1hNjZjLTVhZTZkNDk1ODlkNy9Qb3dlck9mZj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0f20f7a4-f713-4ccd-b012-52318f8ac9af" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:14:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/0f20f7a4-f713-4ccd-b012-52318f8ac9af?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvdtbUCRSxQ9eRlSulOMujnmFZzco5LEJU/eIyz+YRAczYJowqtI/X0TPmznjG41qK899xG9BU+uzRSqWGiDnTqk00PXhzzmYKLwCGR6PfY6NHLqKHnt5D04iWNQ1V9QPAGzWyoE2tRNWcJ6wXHaTt" + ], + "x-ms-correlation-request-id": [ + "1c2ba674-5770-407e-89ba-18204d0c264e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1144" + ], + "x-ms-request-id": [ + "1c2ba674-5770-407e-89ba-18204d0c264e" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191409Z:1c2ba674-5770-407e-89ba-18204d0c264e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/0f20f7a4-f713-4ccd-b012-52318f8ac9af?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvMGYyMGY3YTQtZjcxMy00Y2NkLWIwMTItNTIzMThmOGFjOWFmP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"AggregateException\",\r\n \"message\": \"One or more errors occurred.\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "124" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Wed, 30 Aug 2017 19:14:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv8pFuwekFyXPqIBb0Xqm/TjRfLd0lEi0j7QzLCv4OzPon6OTgpKyX5TtWkoMFnaI1A4N5ew+joOBJhoRmKsvTubWEqXkoDz5NdxCLd3r0d1ZqH7TIuJrATmcRyRR/n0lO+Yg8Ki3PviIGh0U7ud0R" + ], + "x-ms-correlation-request-id": [ + "6847136c-068e-4807-82e1-6d2b50f156c2" + ], + "x-ms-failure-cause": [ + "service" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14101" + ], + "x-ms-request-id": [ + "6847136c-068e-4807-82e1-6d2b50f156c2" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191459Z:6847136c-068e-4807-82e1-6d2b50f156c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 500 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstancePowerOn.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstancePowerOn.json new file mode 100644 index 000000000000..308fdbfad640 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstancePowerOn.json @@ -0,0 +1,197 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e874ff60-a254-4ad3-ad8f-9d32f5296463" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01\",\r\n \"name\": \"AzS-ACS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ADFS01\",\r\n \"name\": \"AzS-ADFS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-BGPNAT01\",\r\n \"name\": \"AzS-BGPNAT01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-CA01\",\r\n \"name\": \"AzS-CA01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 1.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Gwy01\",\r\n \"name\": \"AzS-Gwy01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-NC01\",\r\n \"name\": \"AzS-NC01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-SLB01\",\r\n \"name\": \"AzS-SLB01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Sql01\",\r\n \"name\": \"AzS-Sql01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\",\r\n \"name\": \"AzS-WAS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\",\r\n \"name\": \"AzS-WASP01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\",\r\n \"name\": \"AzS-Xrp01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "7772" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvlEWdGxH6cCAc0Yvd5GCwXcQapSzS+/grhm86Ym840rnmj0OXYw+YD+c7cRb2HjMJ3/pqJcEiUyjkmov/YbTYMA8rGD6eJX9YMHvQQw6fDAM+DfLx17u0nELqRiBphb07pUqQRTQOm7fXKacOw+Jz" + ], + "x-ms-correlation-request-id": [ + "c021a742-c6f9-4a32-a95c-1fc96c22bca3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14164" + ], + "x-ms-request-id": [ + "c021a742-c6f9-4a32-a95c-1fc96c22bca3" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191513Z:c021a742-c6f9-4a32-a95c-1fc96c22bca3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1BQ1MwMS9Qb3dlck9uP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "70056737-bd09-4f45-a81c-46e9cc7bef83" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/70056737-bd09-4f45-a81c-46e9cc7bef83?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvkmg5RvaCYbF+4Q5DCLLL1SGWXg8wq+Yhmx9PfPR+EmMpQB+2cOlXnvUa3CCp7PWYL3yBMIhzeC54ovOWp02W/2hwbEhw9M5W+tGqu6EbaBdtL8TfvQBvpc+n35ogAHCiTeoQcpvJKGetVyjFWGHH" + ], + "x-ms-correlation-request-id": [ + "3e100228-aa1a-4ad1-8d0a-ea94ebfb797a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1147" + ], + "x-ms-request-id": [ + "3e100228-aa1a-4ad1-8d0a-ea94ebfb797a" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191513Z:3e100228-aa1a-4ad1-8d0a-ea94ebfb797a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/70056737-bd09-4f45-a81c-46e9cc7bef83?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvNzAwNTY3MzctYmQwOS00ZjQ1LWE4MWMtNDZlOWNjN2JlZjgzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "48" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv2b6Jimd4pwi2vAFBzUc6aKntOeBjPRy7z4axau8TZ3k1p6leHInPJM/to084gcSFMMYSe3t5XFehw2Y0UDPdRawTDt3OAiCgaJPmzKYw0oz+79j/OINkLC1UVpz7TyyONhU4ZkA3QAKZWtXSAy2j" + ], + "x-ms-correlation-request-id": [ + "c1f6346d-ba85-4147-b692-08a3a60ae700" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14162" + ], + "x-ms-request-id": [ + "c1f6346d-ba85-4147-b692-08a3a60ae700" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191543Z:c1f6346d-ba85-4147-b692-08a3a60ae700" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstancePowerOnAll.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstancePowerOnAll.json new file mode 100644 index 000000000000..3c91d7343c75 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstancePowerOnAll.json @@ -0,0 +1,1447 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3303afb2-9e7d-492d-bf66-acbe2bd86f8c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01\",\r\n \"name\": \"AzS-ACS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ADFS01\",\r\n \"name\": \"AzS-ADFS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-BGPNAT01\",\r\n \"name\": \"AzS-BGPNAT01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-CA01\",\r\n \"name\": \"AzS-CA01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 1.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Gwy01\",\r\n \"name\": \"AzS-Gwy01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-NC01\",\r\n \"name\": \"AzS-NC01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-SLB01\",\r\n \"name\": \"AzS-SLB01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Sql01\",\r\n \"name\": \"AzS-Sql01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\",\r\n \"name\": \"AzS-WAS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\",\r\n \"name\": \"AzS-WASP01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\",\r\n \"name\": \"AzS-Xrp01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "7772" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:16:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvBqGQzte3SZSXBTyyxV5boYRmlOjJarUb8wVn60VletDrmpAWRe5FOsPsdjln9pjJxHhmLXOG/D/6z4WZz5rj0ymGJbr/CLnO/z5Ar+Yx6C7lF+DkqL+tEnbj2sk+bxpuxxXWlKoX7XnDElLlUr5m" + ], + "x-ms-correlation-request-id": [ + "9d6b1648-5074-49aa-9cbb-dbde106215f3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14151" + ], + "x-ms-request-id": [ + "9d6b1648-5074-49aa-9cbb-dbde106215f3" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191647Z:9d6b1648-5074-49aa-9cbb-dbde106215f3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1BQ1MwMS9Qb3dlck9uP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0326dd8e-bb3b-428d-9b2a-8fd17e4eee1e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:16:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/0326dd8e-bb3b-428d-9b2a-8fd17e4eee1e?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvqXjZ/P/vD8uZhQqtHJnwrexSrIqepMOlAYZNYv+g/sCbRZLadwlupHAYDmFKF13WMzXbxcBy6XtiW5V5DmOMD7EaE4BPx5p5tIKOW477tt20LF/9K4vmPon0CqIYj6zUYadjVvqbWfeqV53YxswP" + ], + "x-ms-correlation-request-id": [ + "95149f1c-28e3-4790-8652-4f8269feb360" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1145" + ], + "x-ms-request-id": [ + "95149f1c-28e3-4790-8652-4f8269feb360" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191647Z:95149f1c-28e3-4790-8652-4f8269feb360" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/0326dd8e-bb3b-428d-9b2a-8fd17e4eee1e?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvMDMyNmRkOGUtYmIzYi00MjhkLTliMmEtOGZkMTdlNGVlZTFlP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "48" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:17:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvx7FsitSr9oeYgVMrcPh92TNNgM+Xof+euYDAzV60TIoA8VJxMNzHFCh6W2aK5KG0WFY05zQDbpmOosb/KnVygWb5uHxWlwN4/OOEBSuS8vtG4M+rgdwWAhl74PLUpbIhLw7rCzECb1zU7/pWIP7M" + ], + "x-ms-correlation-request-id": [ + "ec286e7c-f6a2-48b0-8a03-b01715535c4e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14146" + ], + "x-ms-request-id": [ + "ec286e7c-f6a2-48b0-8a03-b01715535c4e" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191717Z:ec286e7c-f6a2-48b0-8a03-b01715535c4e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ADFS01/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1BREZTMDEvUG93ZXJPbj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a73efb88-4ee0-4602-b027-42d534d845b6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:17:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/a73efb88-4ee0-4602-b027-42d534d845b6?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvkk0S33i8QRBfFgn7QuXjj1QOLF7asyf500PYU3K9H7308229IlJ6W6/T0yKPuXmsxC3q1KBmJUQ5bdrvMjvgf4l8buyk+9NEEr2gycmCV36cxPwqTPQyE2akZaUqVUrOwudM4rhUtsO5mzixX5ui" + ], + "x-ms-correlation-request-id": [ + "95fee961-e564-4fa9-8bd7-f8d67f0e9633" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1144" + ], + "x-ms-request-id": [ + "95fee961-e564-4fa9-8bd7-f8d67f0e9633" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191717Z:95fee961-e564-4fa9-8bd7-f8d67f0e9633" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/a73efb88-4ee0-4602-b027-42d534d845b6?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvYTczZWZiODgtNGVlMC00NjAyLWIwMjctNDJkNTM0ZDg0NWI2P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "48" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:17:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvbjz6fJj9U+Q+OKQxu5YCsObsKgQY8isKg6PtxvXMR8cAZcnXgCCr4M6msUOJHpkl56WPD+hyAGJHT6MPUfP7GJDQEEM5kvrqIS+LVjx2Sv/M2r4MzIgyxeECWY9/C3JQxzVOfwHo3zZEg+Qb7J07" + ], + "x-ms-correlation-request-id": [ + "3e91761c-c21f-4569-b24b-315fd38d6caf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14143" + ], + "x-ms-request-id": [ + "3e91761c-c21f-4569-b24b-315fd38d6caf" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191747Z:3e91761c-c21f-4569-b24b-315fd38d6caf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-BGPNAT01/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1CR1BOQVQwMS9Qb3dlck9uP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4f86c40a-2614-46f6-adc4-fc4bc7c2655d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:17:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/4f86c40a-2614-46f6-adc4-fc4bc7c2655d?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv2noenwIusvSrI3doxwRGv4zI7ZNa5MYF+Duvf2HWr2RzQ/GV/5rWODJ6p9/ahtpfPqqX2Af4mRfCF8kyFCR9DH3DmU8l0S5yJF7G8btHPXRJlnrM0S2ozr2AZb2WIRWxCVGX6qPO2ZpzNqmOD/a7" + ], + "x-ms-correlation-request-id": [ + "23e315e0-17be-4881-8e70-84849bd906a5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1143" + ], + "x-ms-request-id": [ + "23e315e0-17be-4881-8e70-84849bd906a5" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191747Z:23e315e0-17be-4881-8e70-84849bd906a5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/4f86c40a-2614-46f6-adc4-fc4bc7c2655d?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvNGY4NmM0MGEtMjYxNC00NmY2LWFkYzQtZmM0YmM3YzI2NTVkP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "48" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:18:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvnuNziH9bkzjnpMiSjT70bzBB3oeivxZlpf0y1PGD+sfA/muWxEto2nK5wC61tsKOZNGgEQ+Bo76bcT/TIxRsDqLR0eZps/kMlcBMYbsP9RPn2xv567ZMDyPXGAs44G6VnzeaHP7l6cTGHk7GchpC" + ], + "x-ms-correlation-request-id": [ + "5f9f2424-ea64-4f79-890d-09a8c58f0ad2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14140" + ], + "x-ms-request-id": [ + "5f9f2424-ea64-4f79-890d-09a8c58f0ad2" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191817Z:5f9f2424-ea64-4f79-890d-09a8c58f0ad2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-CA01/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1DQTAxL1Bvd2VyT24/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4cd68220-0303-47b7-9ccd-268016f12b34" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:18:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/4cd68220-0303-47b7-9ccd-268016f12b34?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvyvbxxUxl43XlzA5uU95A6ppycZ0uAXiLR77PYbR67gy0rM1lNpopLa6UdMYUBNi81LJwEnSilAC3yUw6hbrnIQ7gG9qY1el1115B2EN9JZEb6wBTppxZXQXmZetvmDkI6Wp/ejtYgmZTDVfrWtNJ" + ], + "x-ms-correlation-request-id": [ + "25b50571-df21-4753-8981-3c7f2b932482" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1142" + ], + "x-ms-request-id": [ + "25b50571-df21-4753-8981-3c7f2b932482" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191817Z:25b50571-df21-4753-8981-3c7f2b932482" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/4cd68220-0303-47b7-9ccd-268016f12b34?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvNGNkNjgyMjAtMDMwMy00N2I3LTljY2QtMjY4MDE2ZjEyYjM0P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "48" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:18:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvDSzGnTMt+VrCd8poYN6mnftjJ2eaH8iCzj0ILIshj3M7LY7UX6W1Hja3fXyeGTNHDkxNEGxWpGTD67L7j12Zr9Fd/L8bWeYHp2/MSbBw/RyeILu1rpPsPilOBpuNIPpXpjPG/GOhi0p6EwxaYrYT" + ], + "x-ms-correlation-request-id": [ + "f47afb33-de3b-4ca9-9d58-5bb5876db27c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14138" + ], + "x-ms-request-id": [ + "f47afb33-de3b-4ca9-9d58-5bb5876db27c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191847Z:f47afb33-de3b-4ca9-9d58-5bb5876db27c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Gwy01/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1Hd3kwMS9Qb3dlck9uP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6db7fa20-7ed5-431c-bb61-f52f28fd1d22" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:18:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/6db7fa20-7ed5-431c-bb61-f52f28fd1d22?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvnoj4HB+oOlZkSKDyVjJlx9a7yC+AWowC4lio0K5RtlfSBDEbPkkUl3kBJtyGcdVPN9Pw61b8enxNF8Zq974zvH37gY6/abVdVcQN5CX27uCSa309BqbkEUxdEypRkQlhiNnlQFNBo7dp0NVNJaot" + ], + "x-ms-correlation-request-id": [ + "08e2f233-d840-4f35-ab06-03a8f9e59fcf" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1141" + ], + "x-ms-request-id": [ + "08e2f233-d840-4f35-ab06-03a8f9e59fcf" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191847Z:08e2f233-d840-4f35-ab06-03a8f9e59fcf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/6db7fa20-7ed5-431c-bb61-f52f28fd1d22?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvNmRiN2ZhMjAtN2VkNS00MzFjLWJiNjEtZjUyZjI4ZmQxZDIyP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "48" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:19:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvXI49VoxsL+beT/kBLAaFzodlNI7G4OtsaI4WxSIdXkWVMCyDueeeqntc/6J0xUmLc9VneAWBotV8NbylkWKTIB/Hpiv9LNx6NAdFZ93apopQ/9C15D5B//LxTmqw+NroHkMAoBP7JtvbQrNjM5JB" + ], + "x-ms-correlation-request-id": [ + "6d098e05-afa1-4556-a0bf-373137a73bdd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14134" + ], + "x-ms-request-id": [ + "6d098e05-afa1-4556-a0bf-373137a73bdd" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191917Z:6d098e05-afa1-4556-a0bf-373137a73bdd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-NC01/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1OQzAxL1Bvd2VyT24/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c9fe151f-9979-4610-96ce-31fdf97142c4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:19:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/c9fe151f-9979-4610-96ce-31fdf97142c4?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvBQcx/Rpkfql9P0LGvJiapxQyiBBWK4RrAgJlzetYb+xpYdGMdbdmKs3nOnhgHUBDapzSYwL51jBPEbzQG9reI4vXLAUkjn6A0MUEH9wddxtlKAtO5BbVhI72AZvuTPMdrks5Qr2HmVg2qt3F83x7" + ], + "x-ms-correlation-request-id": [ + "d34afbf7-6dbc-428b-a682-cb9843592b3f" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1140" + ], + "x-ms-request-id": [ + "d34afbf7-6dbc-428b-a682-cb9843592b3f" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191917Z:d34afbf7-6dbc-428b-a682-cb9843592b3f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/c9fe151f-9979-4610-96ce-31fdf97142c4?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvYzlmZTE1MWYtOTk3OS00NjEwLTk2Y2UtMzFmZGY5NzE0MmM0P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "48" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:19:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv2ISKw5qvCn6B5qjwa4KdpFqJfXshsJvfke4Kga/cUrlMTg2mxYEgcSik8qDhi0NYUKBvZLiwFdKz5RadAfYPuceaeTIabe3WviagRJfjdeTFLsigIX4DMttONa3ZNJBtx9b4NISF2gBvOYPbA5GF" + ], + "x-ms-correlation-request-id": [ + "ee49b669-ce1e-4582-90c5-ad8d641a4c2a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14131" + ], + "x-ms-request-id": [ + "ee49b669-ce1e-4582-90c5-ad8d641a4c2a" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191948Z:ee49b669-ce1e-4582-90c5-ad8d641a4c2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-SLB01/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1TTEIwMS9Qb3dlck9uP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "49edbbcb-19f0-48d1-aa30-9dd341a3088f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:19:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/49edbbcb-19f0-48d1-aa30-9dd341a3088f?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvN6HyGR2d5S8QZ1AEZmLvnMfqixx514YTAhJeTX/xFDvLP7Cd5zxA0NFuVbRqmmkS4t1J7KWn1fKrzEdQ3BsS4BlkGQucdZg4+oQwuxK4iLhGYi4OskHPaOj93Joy/j0hGiaRKlJc+s6lYMoLe11z" + ], + "x-ms-correlation-request-id": [ + "3e55405c-9662-4d9d-81a5-a6a1d206809a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1139" + ], + "x-ms-request-id": [ + "3e55405c-9662-4d9d-81a5-a6a1d206809a" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191948Z:3e55405c-9662-4d9d-81a5-a6a1d206809a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/49edbbcb-19f0-48d1-aa30-9dd341a3088f?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvNDllZGJiY2ItMTlmMC00OGQxLWFhMzAtOWRkMzQxYTMwODhmP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "48" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:20:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRveUqyKzVvDv4NyjiMS3PsFywOmbgzuEct4KyCkhWkLICYsLJsMAfGaKSYYI8+fZFJndkOIBI3EpJdF7Ri7vussrFWfg/5yV/CkZX4X1yMW5yt3ZcnRgEhwftd0fvqCNhHStWQh8CinJgtO68iDp2B" + ], + "x-ms-correlation-request-id": [ + "6daa773d-af58-46ee-aeee-752bcedd1a04" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14175" + ], + "x-ms-request-id": [ + "6daa773d-af58-46ee-aeee-752bcedd1a04" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192018Z:6daa773d-af58-46ee-aeee-752bcedd1a04" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Sql01/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1TcWwwMS9Qb3dlck9uP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d273cb11-a579-400d-8d81-aabc0f24ac75" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:20:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/d273cb11-a579-400d-8d81-aabc0f24ac75?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvdg8DvI1yLtMnlnLKoB7WAidHA7Uo6g+4yX4gGbRfN1jFrVc3sShpdqA1qvacHud5z0YGkApdzG3HNNWfW8+CjYD8VxHMqUMTnoQHwb1QNmvZFMpheMp3lMWpnEGKU5aHDWbpLdOcW/fmNU7He2Gu" + ], + "x-ms-correlation-request-id": [ + "b51bbe6e-7288-4d6d-81fc-5aeca147f0fb" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1145" + ], + "x-ms-request-id": [ + "b51bbe6e-7288-4d6d-81fc-5aeca147f0fb" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192018Z:b51bbe6e-7288-4d6d-81fc-5aeca147f0fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/d273cb11-a579-400d-8d81-aabc0f24ac75?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvZDI3M2NiMTEtYTU3OS00MDBkLThkODEtYWFiYzBmMjRhYzc1P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "48" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:20:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvqTgQ9blMmhz2mQ0kHp0ewBhBtR0lOunS4tZA5P5Ah64IIjdKoHQGfQDc+0GYjVl5z8NC5VjJNqprc9UxvSAuzEMO4t5xIfLPo/Y7iMpPysvtWSj1VHKiJvoLDCZtTF+ia1E8exv7XHdxBqKVXW1I" + ], + "x-ms-correlation-request-id": [ + "b80d6c7f-03c2-48b6-9f4d-409a8a728ba4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14172" + ], + "x-ms-request-id": [ + "b80d6c7f-03c2-48b6-9f4d-409a8a728ba4" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192048Z:b80d6c7f-03c2-48b6-9f4d-409a8a728ba4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1XQVMwMS9Qb3dlck9uP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d866a336-e5e5-465d-86eb-9e8f47673988" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:20:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/d866a336-e5e5-465d-86eb-9e8f47673988?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvcXynrtXGXkdfoVzrbNQ5/Y97LHi+72ybMQcQQYz6uO4PlccntwP7atezhzuJ8kEIoXIRc4tlaYOVvtg19supEEcUgByuJBp6807Z4AXAuIldpLy7Nl41zu25vGv2pn2+Nm/64K7i93YwD6jX8iNg" + ], + "x-ms-correlation-request-id": [ + "57595ded-5cce-49c9-be0d-bf77ab186fbc" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1144" + ], + "x-ms-request-id": [ + "57595ded-5cce-49c9-be0d-bf77ab186fbc" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192048Z:57595ded-5cce-49c9-be0d-bf77ab186fbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/d866a336-e5e5-465d-86eb-9e8f47673988?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvZDg2NmEzMzYtZTVlNS00NjVkLTg2ZWItOWU4ZjQ3NjczOTg4P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "48" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:21:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvCsyKTi0cqgwQEx83nlQhtlxCgXplmTqJDKBUvlGGPD3iB6oJqInY9MoIHF/x00ADwzG1eoynxcyJNCmLNot0+LSpPAwPamyXdmeFoiLmGFQlV7Cn5eFhxChQBcxmEa6sjt29U6ZgKTGF9ZtQ9Qid" + ], + "x-ms-correlation-request-id": [ + "a7107467-9e05-4133-a558-049081477230" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14166" + ], + "x-ms-request-id": [ + "a7107467-9e05-4133-a558-049081477230" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192118Z:a7107467-9e05-4133-a558-049081477230" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1XQVNQMDEvUG93ZXJPbj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a7197943-f647-415a-9ad1-66e4fd441a5e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:21:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/a7197943-f647-415a-9ad1-66e4fd441a5e?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvAc2/pUFTbiH/wTWbMsZDqOR4Cua30sAhTe9KVburJy6lEzziBNYv+OB6+Ros2ZS5ZXb9PZHouVFmV4+BbNd7qbMDm/T/Yn3qeRTWIyoTSsXcMTfHDNsqElF+U41WYiASdZNhPUkc6WGpbEk52zVL" + ], + "x-ms-correlation-request-id": [ + "d433318f-ed63-4663-82ca-3f0a85708ba5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1143" + ], + "x-ms-request-id": [ + "d433318f-ed63-4663-82ca-3f0a85708ba5" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192118Z:d433318f-ed63-4663-82ca-3f0a85708ba5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/a7197943-f647-415a-9ad1-66e4fd441a5e?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvYTcxOTc5NDMtZjY0Ny00MTVhLTlhZDEtNjZlNGZkNDQxYTVlP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "48" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:21:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvDhOR+B77Dr0CZjNbMAlSV86FA0rHbndVGhdJ3VssgeQYFNRc4CFpxyhf6vmRZLyUEl7IatHO1ZeTvckRHa9n28BwdoxJt9WWGh6p3VyPREw1sdifAvlBfmpPBobiLcxWUFugYBv3jHQ0N3ZG2U2Z" + ], + "x-ms-correlation-request-id": [ + "26561b88-a0e3-4dbf-b25d-11e1e0ebddb7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14162" + ], + "x-ms-request-id": [ + "26561b88-a0e3-4dbf-b25d-11e1e0ebddb7" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192148Z:26561b88-a0e3-4dbf-b25d-11e1e0ebddb7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzL0F6Uy1YcnAwMS9Qb3dlck9uP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "96b20385-b33f-4227-922e-1174321b53ac" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:21:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/96b20385-b33f-4227-922e-1174321b53ac?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv9WIFuQN4mICeKu+V4QfhUNjVD3dtbssgmsKwiSYRbT8OxtdxDmdQ21YLb+OnSSQitU0rmhpnX5Vv90PD58hhUOxb/1SwlbFMCm9ihPNBuPNE6oeJO7yVnHPrqMCYEy/O0RWkpORR9YFgryMAoNNY" + ], + "x-ms-correlation-request-id": [ + "ed022eb7-ed2b-4f65-9601-845dd0ed62f8" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1142" + ], + "x-ms-request-id": [ + "ed022eb7-ed2b-4f65-9601-845dd0ed62f8" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192148Z:ed022eb7-ed2b-4f65-9601-845dd0ed62f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/96b20385-b33f-4227-922e-1174321b53ac?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvOTZiMjAzODUtYjMzZi00MjI3LTkyMmUtMTE3NDMyMWI1M2FjP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "48" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvzAzsF1jJr9dcj2MsXHSjKBbJ+ztUOkVpis2h3Rujamx6XmeqR4PDmF4zVSPpgHDBSEMa8w3gfZMRPMl4qQDJeI+qyaWTRnQG2BoUpdTPvHNGYYk3Q/XmlyRH9TKKs5Nkhh2mu/sImtx+UiSF1nxU" + ], + "x-ms-correlation-request-id": [ + "6250c8dd-99bd-493b-93c7-9ed8a89c0ae5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14159" + ], + "x-ms-request-id": [ + "6250c8dd-99bd-493b-93c7-9ed8a89c0ae5" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192218Z:6250c8dd-99bd-493b-93c7-9ed8a89c0ae5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstanceRebootOnTenantVM.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstanceRebootOnTenantVM.json new file mode 100644 index 000000000000..406b32669aff --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstanceRebootOnTenantVM.json @@ -0,0 +1,139 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/502828aa-de3a-4ba9-a66c-5ae6d49589d7/Reboot?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzLzUwMjgyOGFhLWRlM2EtNGJhOS1hNjZjLTVhZTZkNDk1ODlkNy9SZWJvb3Q/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "40c22b8f-0121-4458-94e4-2b4bd11bea07" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/40c22b8f-0121-4458-94e4-2b4bd11bea07?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv0BNHuMZVj+43NP4RHueqBMsZ1m7M8VL+g0OJml2KIncNrrRTE/YrPxxKvDZw445+FZ/lx+s5DI3DP1qpMcBlJKO5sdt1zDmyyR3clhFJKAf3O8yKPWGV6zH65wckjT/ATMkmvzSRqrG8LVGqvle9" + ], + "x-ms-correlation-request-id": [ + "b5c317ba-9a27-47c7-8902-c2821e40f161" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1145" + ], + "x-ms-request-id": [ + "b5c317ba-9a27-47c7-8902-c2821e40f161" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191318Z:b5c317ba-9a27-47c7-8902-c2821e40f161" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/40c22b8f-0121-4458-94e4-2b4bd11bea07?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvNDBjMjJiOGYtMDEyMS00NDU4LTk0ZTQtMmI0YmQxMWJlYTA3P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"AggregateException\",\r\n \"message\": \"One or more errors occurred.\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "124" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Wed, 30 Aug 2017 19:14:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvuiDYIT5eoh9mQqVujBoevJwQVyBTVBxK3mSUDtZMdMdkSBynaSI6vczPaHcAMXnrRu85RBLvjQStqCXEXiUuwSI8CxVHMACb08No1u7a/zYbJEvYCqgWM+4BmFrqHkteutJZccbwtUKXOKgwfFAV" + ], + "x-ms-correlation-request-id": [ + "9a298fb1-3c52-42d1-ac99-29cc596576a5" + ], + "x-ms-failure-cause": [ + "service" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14109" + ], + "x-ms-request-id": [ + "9a298fb1-3c52-42d1-ac99-29cc596576a5" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191408Z:9a298fb1-3c52-42d1-ac99-29cc596576a5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 500 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstanceShutdownOnTenantVM.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstanceShutdownOnTenantVM.json new file mode 100644 index 000000000000..5f120766cfe1 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestInfraRoleInstanceShutdownOnTenantVM.json @@ -0,0 +1,139 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/502828aa-de3a-4ba9-a66c-5ae6d49589d7/Shutdown?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzLzUwMjgyOGFhLWRlM2EtNGJhOS1hNjZjLTVhZTZkNDk1ODlkNy9TaHV0ZG93bj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5b63de92-2c52-4005-b8e4-49f4db25f023" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:15:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/5b63de92-2c52-4005-b8e4-49f4db25f023?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvUitpKYWDYtFIcj33Ufilt9D+pVf9kC8dW13nKeiiq93jvPJ1ESmrYkQ+iwr/Z7bqpPunI5UJIBAMnG/eAjyYFf5JGXEQjAWYtx8H61Wzhl6+IAcT9u9FIu8xvju42J7XFbxwsLiNG40oInWIkyvg" + ], + "x-ms-correlation-request-id": [ + "191984b2-494b-4400-b7e6-50e4090352e6" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1146" + ], + "x-ms-request-id": [ + "191984b2-494b-4400-b7e6-50e4090352e6" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191543Z:191984b2-494b-4400-b7e6-50e4090352e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/5b63de92-2c52-4005-b8e4-49f4db25f023?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvNWI2M2RlOTItMmM1Mi00MDA1LWI4ZTQtNDlmNGRiMjVmMDIzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"AggregateException\",\r\n \"message\": \"One or more errors occurred.\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "124" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Wed, 30 Aug 2017 19:16:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvXhvERgzrUZMNzJRbzXcQZCzadHMmZXtDw69oJSg2YVhv4Itdr3VAE6GY6j/gzGCK53S/5xJXaQImszID+/htqgEbqBFHvX3U5f9Ll6tMKsLJBIXOqXDVaShGLpCfX1FYZLcR8Rg/yJOLneyVjqLZ" + ], + "x-ms-correlation-request-id": [ + "ae460616-e00a-4797-b994-7f1038b959e2" + ], + "x-ms-failure-cause": [ + "service" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14152" + ], + "x-ms-request-id": [ + "ae460616-e00a-4797-b994-7f1038b959e2" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191633Z:ae460616-e00a-4797-b994-7f1038b959e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 500 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListEdgeGatewayPools.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListEdgeGatewayPools.json new file mode 100644 index 000000000000..ed48a90512f7 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListEdgeGatewayPools.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGatewayPools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZWRnZUdhdGV3YXlQb29scz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e6008eb7-5b22-41d4-95c2-ac6879ff2537" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGatewayPools/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/edgeGatewayPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"gatewayType\": \"S2sIPsec\",\r\n \"numberOfGateways\": 1,\r\n \"redundantGatewayCount\": 0,\r\n \"gatewayCapacityKiloBitsPerSecond\": 100000000,\r\n \"publicIpAddress\": \"00000000-5555-0000-0001-000000000000\",\r\n \"edgeGateways\": [\r\n \"AzS-Gwy01\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "509" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRviSdSY/lLp4v+yquP3EPr4PwzZDIy6Td/rGFuFUHGefTED0RY3m3DBqG0VikKzkuPNCvGy3nQN1Fmie7uObJp6sKfULbebuKgsVJHK+nn3Noqtk9Rd77akSq/x2gqlvAEO0SZVf/fVzO78Fn9LMZX" + ], + "x-ms-correlation-request-id": [ + "886c2165-2793-4102-9839-1bb0a4cf8814" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14137" + ], + "x-ms-request-id": [ + "886c2165-2793-4102-9839-1bb0a4cf8814" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:886c2165-2793-4102-9839-1bb0a4cf8814" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListEdgeGateways.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListEdgeGateways.json new file mode 100644 index 000000000000..4ed21c0b4a21 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListEdgeGateways.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGateways?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZWRnZUdhdGV3YXlzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e1fd95a2-3a04-43e5-8845-a9803468e1d4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/edgeGateways/AzS-Gwy01\",\r\n \"name\": \"AzS-Gwy01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/edgeGateways\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"totalCapacity\": 100000000,\r\n \"availableCapacity\": 100000000,\r\n \"numberOfConnections\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "399" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvtSd4qWECh1iW/gLjPJa0lUcIXX4CCpxbnln2RJcI3yfQTKhKfcl9TnJi9NueCl3hSXXoiL/RZNT+9Hwn4SDXxo/Ea5WELAsncFNktXRVd78arHHbXCMFBRaDl3rSfnItLcJiEBDDTOu/kvOF5ibo" + ], + "x-ms-correlation-request-id": [ + "15544d1a-7434-4518-ad3e-9864493646c6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14090" + ], + "x-ms-request-id": [ + "15544d1a-7434-4518-ad3e-9864493646c6" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:15544d1a-7434-4518-ad3e-9864493646c6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListFabricLocations.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListFabricLocations.json new file mode 100644 index 000000000000..8e6e04f8875c --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListFabricLocations.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e38f4663-ec59-4596-b0bb-33e0b1a17524" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "263" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv09dg3jxe6YFjzeW2p3C+66UW6S9dqYBvixiYj+xyFn1VR5OCERHfrHViQIsDNdONHeVwc6cTfNYA7wxs2R2t96j6Erm90huL3i5eUnQHa0tSkxuxvWiX5nrJMngB1NuMXNOI02VBM2iWY+47HaAV" + ], + "x-ms-correlation-request-id": [ + "5f9b42a8-fa43-4712-aab8-22e91c59d5aa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14108" + ], + "x-ms-request-id": [ + "5f9b42a8-fa43-4712-aab8-22e91c59d5aa" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:5f9b42a8-fa43-4712-aab8-22e91c59d5aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListFileShares.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListFileShares.json new file mode 100644 index 000000000000..a50868046f26 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListFileShares.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvZmlsZVNoYXJlcz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ce4128eb-889a-4c2b-b55a-51c45e8fc67f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_1\",\r\n \"name\": \"SU1_Infrastructure_1\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Infrastructure_1\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_2\",\r\n \"name\": \"SU1_Infrastructure_2\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Infrastructure_2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Infrastructure_3\",\r\n \"name\": \"SU1_Infrastructure_3\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Infrastructure_3\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_ObjStore\",\r\n \"name\": \"SU1_ObjStore\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_Public\",\r\n \"name\": \"SU1_Public\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_Public\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/fileShares/SU1_VmTemp\",\r\n \"name\": \"SU1_VmTemp\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/fileShares\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"associatedVolume\": \"a42d219b\",\r\n \"uncPath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_VmTemp\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2375" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvHHZ9G/J7SMNQ5HPA5YH5zilw1Rx+rIKYm9VhfdMCNMR/2a276zEY0DDmdFEX7kQl7Aqh9E7VlVXhFf4RgGpCVukg2gwPyi0sSTTUme21iBcP2694eH7Qe5kEPgnDN9jfnoqV3UUC1gtXF+W2ZSQL" + ], + "x-ms-correlation-request-id": [ + "c3b319fd-eb99-4650-b2f6-237bd2648877" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14128" + ], + "x-ms-request-id": [ + "c3b319fd-eb99-4650-b2f6-237bd2648877" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192220Z:c3b319fd-eb99-4650-b2f6-237bd2648877" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListInfraRoleInstances.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListInfraRoleInstances.json new file mode 100644 index 000000000000..7179f57ce28e --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListInfraRoleInstances.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlSW5zdGFuY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "49623e58-ab37-440a-850e-a8bc04def71b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01\",\r\n \"name\": \"AzS-ACS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ADFS01\",\r\n \"name\": \"AzS-ADFS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-BGPNAT01\",\r\n \"name\": \"AzS-BGPNAT01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-CA01\",\r\n \"name\": \"AzS-CA01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 1.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Gwy01\",\r\n \"name\": \"AzS-Gwy01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-NC01\",\r\n \"name\": \"AzS-NC01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-SLB01\",\r\n \"name\": \"AzS-SLB01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 2.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Sql01\",\r\n \"name\": \"AzS-Sql01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\",\r\n \"name\": \"AzS-WAS01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 4.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\",\r\n \"name\": \"AzS-WASP01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 2\r\n },\r\n \"state\": \"Running\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\",\r\n \"name\": \"AzS-Xrp01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoleInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnit\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"scaleUnitNode\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"size\": {\r\n \"memoryGb\": 8.0,\r\n \"cores\": 4\r\n },\r\n \"state\": \"Running\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "7772" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvh6tYYPtRSBkSjuA8fTIzAZG3V7oo4frGh1qvu2SnmyoBrBVx6LuVzkuw14d+jyEvn3ngORBjUU6ciQH4eYxz8MTEmkfdXGBMYoffjug4ct5MuWAzKCULp+GzS/rcHqCWaIG9hFM3UT0i0Cx4pDRk" + ], + "x-ms-correlation-request-id": [ + "c4d0ce19-9404-4809-a00c-32bba8d63a1e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14116" + ], + "x-ms-request-id": [ + "c4d0ce19-9404-4809-a00c-32bba8d63a1e" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191318Z:c4d0ce19-9404-4809-a00c-32bba8d63a1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListInfraRoles.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListInfraRoles.json new file mode 100644 index 000000000000..2499dc1ef1e4 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListInfraRoles.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaW5mcmFSb2xlcz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "507056bc-3d52-4d4f-abdf-397fc7c92aa0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Active Directory Federation Services\",\r\n \"name\": \"Active Directory Federation Services\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ADFS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Authorization service (Administrator)\",\r\n \"name\": \"Authorization service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Authorization service (User)\",\r\n \"name\": \"Authorization service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure bridge\",\r\n \"name\": \"Azure bridge\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure Resource Manager (Administrator)\",\r\n \"name\": \"Azure Resource Manager (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Azure Resource Manager (User)\",\r\n \"name\": \"Azure Resource Manager (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Backup controller\",\r\n \"name\": \"Backup controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ERCS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Backup Restore Resource Provider\",\r\n \"name\": \"Backup Restore Resource Provider\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Capacity\",\r\n \"name\": \"Capacity\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Certificate management\",\r\n \"name\": \"Certificate management\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-CA01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Compute\",\r\n \"name\": \"Compute\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Compute controller\",\r\n \"name\": \"Compute controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Directory management\",\r\n \"name\": \"Directory management\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-DC01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Edge gateway\",\r\n \"name\": \"Edge gateway\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Gwy01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Gallery service (Administrator)\",\r\n \"name\": \"Gallery service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Gallery service (User)\",\r\n \"name\": \"Gallery service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Health controller\",\r\n \"name\": \"Health controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure deployment\",\r\n \"name\": \"Infrastructure deployment\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ERCS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure management controller\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Infrastructure role controller\",\r\n \"name\": \"Infrastructure role controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Insights service (Administrator)\",\r\n \"name\": \"Insights service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Insights service (User)\",\r\n \"name\": \"Insights service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Internal data store\",\r\n \"name\": \"Internal data store\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Sql01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault\",\r\n \"name\": \"Key Vault\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault controller (Administrator)\",\r\n \"name\": \"Key Vault controller (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault controller (User)\",\r\n \"name\": \"Key Vault controller (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault name manager\",\r\n \"name\": \"Key Vault name manager\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault service (Administrator)\",\r\n \"name\": \"Key Vault service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Key Vault service (User)\",\r\n \"name\": \"Key Vault service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Load balancer multiplexer\",\r\n \"name\": \"Load balancer multiplexer\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-SLB01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Network\",\r\n \"name\": \"Network\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Network controller\",\r\n \"name\": \"Network controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-NC01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Partition request broker (Administrator)\",\r\n \"name\": \"Partition request broker (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Partition request broker (User)\",\r\n \"name\": \"Partition request broker (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Portal (Administrator)\",\r\n \"name\": \"Portal (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Portal (User)\",\r\n \"name\": \"Portal (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Privileged endpoint\",\r\n \"name\": \"Privileged endpoint\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ERCS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Region Management\",\r\n \"name\": \"Region Management\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage\",\r\n \"name\": \"Storage\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage controller\",\r\n \"name\": \"Storage controller\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Storage services\",\r\n \"name\": \"Storage services\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-ACS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Subscriptions service\",\r\n \"name\": \"Subscriptions service\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Updates\",\r\n \"name\": \"Updates\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage Bridge host\",\r\n \"name\": \"Usage Bridge host\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-Xrp01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage service (Administrator)\",\r\n \"name\": \"Usage service (Administrator)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WAS01\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Usage service (User)\",\r\n \"name\": \"Usage service (User)\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/infraRoles\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"instances\": [\r\n \"subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AzS-WASP01\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "22684" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvLrlVcYhEWddCY1ctd/A5VI51sTcRUsWnbfTGxvKCqTfmz+SE1kTAuO5TH/Q4ABeFvErygmO0F9D+T5B4YkRhw6GG7cySOO7TsJ74S6Rp72XvrDX9YP8G1aJwtGP/bjTXvxKonEBPINi7UxLCnOR1" + ], + "x-ms-correlation-request-id": [ + "29875e7f-ba17-4e36-99ed-a8271493049f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14166" + ], + "x-ms-request-id": [ + "29875e7f-ba17-4e36-99ed-a8271493049f" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190904Z:29875e7f-ba17-4e36-99ed-a8271493049f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListIpPools.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListIpPools.json new file mode 100644 index 000000000000..8ca227b2d20f --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListIpPools.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvaXBQb29scz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "84ff9043-ff97-4b57-bb38-44bc63f58be7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/08786a0f-ad8c-43aa-a154-06083abfc1ac\",\r\n \"name\": \"08786a0f-ad8c-43aa-a154-06083abfc1ac\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.105.1\",\r\n \"endIpAddress\": \"192.168.105.255\",\r\n \"numberOfIpAddresses\": 255,\r\n \"numberOfAllocatedIpAddresses\": 8,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/75e93974-f451-468d-bbc2-8a388a938344\",\r\n \"name\": \"75e93974-f451-468d-bbc2-8a388a938344\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.112\",\r\n \"endIpAddress\": \"192.168.200.127\",\r\n \"numberOfIpAddresses\": 16,\r\n \"numberOfAllocatedIpAddresses\": 1,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/7c9d2d8a-e243-4d4d-b635-9545ba2bd8a8\",\r\n \"name\": \"7c9d2d8a-e243-4d4d-b635-9545ba2bd8a8\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.65\",\r\n \"endIpAddress\": \"192.168.200.111\",\r\n \"numberOfIpAddresses\": 47,\r\n \"numberOfAllocatedIpAddresses\": 0,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/a09498cb-d6b3-4d6e-9c3d-0caea30cfb58\",\r\n \"name\": \"a09498cb-d6b3-4d6e-9c3d-0caea30cfb58\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.1\",\r\n \"endIpAddress\": \"192.168.200.62\",\r\n \"numberOfIpAddresses\": 62,\r\n \"numberOfAllocatedIpAddresses\": 1,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/a8dee838-b2b7-4648-8a00-2c61ff8ffde6\",\r\n \"name\": \"a8dee838-b2b7-4648-8a00-2c61ff8ffde6\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.102.1\",\r\n \"endIpAddress\": \"192.168.102.255\",\r\n \"numberOfIpAddresses\": 255,\r\n \"numberOfAllocatedIpAddresses\": 31,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/ipPools/c743f3e0-9fa4-4236-8c3d-a0f8ad945fb4\",\r\n \"name\": \"c743f3e0-9fa4-4236-8c3d-a0f8ad945fb4\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/ipPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.200.224\",\r\n \"endIpAddress\": \"192.168.200.254\",\r\n \"numberOfIpAddresses\": 31,\r\n \"numberOfAllocatedIpAddresses\": 1,\r\n \"numberOfIpAddressesInTransition\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2988" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv6HdLAOhlKHp2f0nYnlUQVK8Zf0HqSvx9I+7ZS05l69RJEZk1BQbYZ7et7y6Z1h/VmQa2It70WyyqCVN46XvMCQ7VNbPGJNuKvkvR55sQvwvVFSuZ3dHXLroXZR/bZ9pS6MxIX470Gt6vfsoRlxNT" + ], + "x-ms-correlation-request-id": [ + "83ab6425-9100-4337-ab9b-f2978b4f42a1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14113" + ], + "x-ms-request-id": [ + "83ab6425-9100-4337-ab9b-f2978b4f42a1" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:83ab6425-9100-4337-ab9b-f2978b4f42a1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListLogicalNetworks.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListLogicalNetworks.json new file mode 100644 index 000000000000..5c47e50991d9 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListLogicalNetworks.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "52ca4c61-d4e9-44c7-8308-9799eac4f3da" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001\",\r\n \"name\": \"00000000-2222-1111-9999-000000000001\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968\",\r\n \"name\": \"47931036-2874-4d45-b1f1-b69666088968\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"64311075-3ae7-4327-bafa-2c58804addb7\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"name\": \"B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"1ee6e531-b000-412c-bba7-2d6d6f257ac4\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"name\": \"bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": true,\r\n \"subnets\": [\r\n \"be20afa7-2ada-4261-a12a-4e48498223cf\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"name\": \"F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d43d2881-3aad-40c9-b207-4280a9b3b699\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"name\": \"f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"9ec2eb29-6d47-4e22-a322-eb575c16937a\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2644" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvzfPg1EQTrlc7LrgjcmUYley4J3d5DcuVGE0la6p90bgxQWq0txPPqaYqG6PwXx3KajudMSGzs7iOaWtjD0ZhD3WFra9i/6AbJa5tqjMKkkzKPClyJIeyiMjy5kDDo4p8kPGsFuDG7LQrGKlO0boa" + ], + "x-ms-correlation-request-id": [ + "0d365853-7c3a-4d2b-a073-89b84bc66234" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14082" + ], + "x-ms-request-id": [ + "0d365853-7c3a-4d2b-a073-89b84bc66234" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:0d365853-7c3a-4d2b-a073-89b84bc66234" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListLogicalSubnets.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListLogicalSubnets.json new file mode 100644 index 000000000000..4a2623a0977d --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListLogicalSubnets.json @@ -0,0 +1,456 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bf8ae79e-7fde-41b7-ad54-02f636595589" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001\",\r\n \"name\": \"00000000-2222-1111-9999-000000000001\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968\",\r\n \"name\": \"47931036-2874-4d45-b1f1-b69666088968\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"64311075-3ae7-4327-bafa-2c58804addb7\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"name\": \"B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"1ee6e531-b000-412c-bba7-2d6d6f257ac4\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"name\": \"bb6c6f28-bad9-441b-8e62-57d2be255904\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": true,\r\n \"subnets\": [\r\n \"be20afa7-2ada-4261-a12a-4e48498223cf\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"name\": \"F207C184-367C-4BC7-8C74-03AA39D68C24\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"d43d2881-3aad-40c9-b207-4280a9b3b699\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"name\": \"f8f67956-3906-4303-94c5-09cf91e7e311\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkVirtualizationEnabled\": false,\r\n \"subnets\": [\r\n \"9ec2eb29-6d47-4e22-a322-eb575c16937a\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2644" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvEVAWrz7bbBdQ8C+L68W8pfl6JQhlXYs7EpUfKoGh+UZvyF2PKtINtJHVdj5VFfktDaQYYNpXuI+0Hn5OVNvAd47H/PGiSuXdeqIpARLVNdyV6Ln4LDd/Udwl2tJKlAdjYx+pCVI+BnSUZeZ7fQoD" + ], + "x-ms-correlation-request-id": [ + "764fd0cf-bdc7-4c97-8921-bfc8afca87ba" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14158" + ], + "x-ms-request-id": [ + "764fd0cf-bdc7-4c97-8921-bfc8afca87ba" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192218Z:764fd0cf-bdc7-4c97-8921-bfc8afca87ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001/logicalSubnets?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzLzAwMDAwMDAwLTIyMjItMTExMS05OTk5LTAwMDAwMDAwMDAwMS9sb2dpY2FsU3VibmV0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4d6a8df1-c9e0-42ce-8010-462d03962b84" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/00000000-2222-1111-9999-000000000001/logicalSubnets/d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\",\r\n \"name\": \"d8cfef2d-c0c8-4cdb-b0a8-fb1bdf3f2ad7\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"2ce37b2a-3da0-493c-9eb5-b95054fc71f4\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "497" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv1zfqJEKILc5JiB7PtmTjZr2PaXhH0ZEHwjwG5pmHiNRaOqCHj2D6AYmWJ6lhAcY/HALE+kMG9XzONhWlJF2PFjtoXIwUQC+YJwgsmi5PylDPRnlPLGKj/9093NXTpoTzxDIP4hgVL5d8N6dlmS9I" + ], + "x-ms-correlation-request-id": [ + "84a015b3-576b-4855-bf11-85bd0e55d3c2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14157" + ], + "x-ms-request-id": [ + "84a015b3-576b-4855-bf11-85bd0e55d3c2" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192218Z:84a015b3-576b-4855-bf11-85bd0e55d3c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968/logicalSubnets?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzLzQ3OTMxMDM2LTI4NzQtNGQ0NS1iMWYxLWI2OTY2NjA4ODk2OC9sb2dpY2FsU3VibmV0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1c0db41f-32d4-41c4-af79-d214b883786c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/47931036-2874-4d45-b1f1-b69666088968/logicalSubnets/64311075-3ae7-4327-bafa-2c58804addb7\",\r\n \"name\": \"64311075-3ae7-4327-bafa-2c58804addb7\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"f1be0e18-b532-44e7-acc0-fbf4eab527de\",\r\n \"9b53eaf9-d03d-41ed-a9e4-d75e0d79373a\",\r\n \"4c4d948f-1f77-4536-8160-83b859c21961\",\r\n \"d7a27cd0-fe49-420c-93a9-f589f7a07cf7\",\r\n \"90d3b095-998c-484e-946a-52350d5b5758\",\r\n \"67cf8315-07d7-4a24-9681-10b3a3666f7e\",\r\n \"5770d013-e458-46f4-8a11-06ba9e90ee9c\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "731" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv6aGt3kiJzf99SZ5LJiL7Mg3ty+SmWOMCcgGX1i7PMyGxOJM8b3NyjbsgIsaHgtmMWN7HDOr1cDvYmD1KPD5XYYP6IvjYn+h6BKBteEJAl81haJhhPHBuLwBVuaGkxY0Az90OD3Bz5iDN1Mxwo8xc" + ], + "x-ms-correlation-request-id": [ + "34462cab-342d-45cb-8f1d-80fc41ee320e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14156" + ], + "x-ms-request-id": [ + "34462cab-342d-45cb-8f1d-80fc41ee320e" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192218Z:34462cab-342d-45cb-8f1d-80fc41ee320e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A/logicalSubnets?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL0I2MEI3MUFBLTM2QkYtNDBBQy1BOUNFLUE2OTE1RDFFQUUxQS9sb2dpY2FsU3VibmV0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5d93c0ae-8959-4c69-a784-6ab581bf65f9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/B60B71AA-36BF-40AC-A9CE-A6915D1EAE1A/logicalSubnets/1ee6e531-b000-412c-bba7-2d6d6f257ac4\",\r\n \"name\": \"1ee6e531-b000-412c-bba7-2d6d6f257ac4\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"7fad6f9f-b3de-4336-922d-febe4b1743d1\",\r\n \"98fc9878-4a0b-4ffb-b82a-56b0b548fa75\",\r\n \"8fb5a173-8197-4b10-bf02-0ba006863c90\",\r\n \"b4a6c6b8-5680-4ccb-ae64-35211f235363\",\r\n \"9432d3dd-203a-4792-b65c-d3a1bad48cad\",\r\n \"bb4c5c7a-47d8-4f35-9ee4-2eea26fd4536\",\r\n \"31866284-e6f7-41c7-a9b7-787ef7b645f6\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "731" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv6DNnIPxBEZu/2KZiZsvHGp9mRYg9KpL5pAcQs8a6q7Kg0JTwY0OEh0mx1atDwmps0Ougldp8uBJ/uqmwwjHLn5rgp93R96ovYQJ3l95Zuv2KyA5RzwEQYfyFWix0/ObaTj4UVrGajkeBZHpLZLVs" + ], + "x-ms-correlation-request-id": [ + "d5aceb74-3536-4b31-9b7f-5e4770ba653f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14155" + ], + "x-ms-request-id": [ + "d5aceb74-3536-4b31-9b7f-5e4770ba653f" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192218Z:d5aceb74-3536-4b31-9b7f-5e4770ba653f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904/logicalSubnets?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL2JiNmM2ZjI4LWJhZDktNDQxYi04ZTYyLTU3ZDJiZTI1NTkwNC9sb2dpY2FsU3VibmV0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d84c469f-e4d9-450a-8c65-fdc2ec718c93" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/bb6c6f28-bad9-441b-8e62-57d2be255904/logicalSubnets/be20afa7-2ada-4261-a12a-4e48498223cf\",\r\n \"name\": \"be20afa7-2ada-4261-a12a-4e48498223cf\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [],\r\n \"isPublic\": false\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "459" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvPLfdfQxYBQPCC6W2eFykSAnun4k0/lzoYgg2xrcXttLBYDd1tO4FaxZOopJKMkJxP33C5tufLrM20vimo2T4kqGZce8wE7SM7CIJ06/3mOq+1tOiskZWeo4L2TWKnWCv4TOvvX/yaiubG7P/EkiJ" + ], + "x-ms-correlation-request-id": [ + "32f0f77c-70aa-428b-b59f-90f17f00eb89" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14154" + ], + "x-ms-request-id": [ + "32f0f77c-70aa-428b-b59f-90f17f00eb89" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192218Z:32f0f77c-70aa-428b-b59f-90f17f00eb89" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24/logicalSubnets?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL0YyMDdDMTg0LTM2N0MtNEJDNy04Qzc0LTAzQUEzOUQ2OEMyNC9sb2dpY2FsU3VibmV0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bf67f036-e603-4933-a7f9-f1d5e4fe4a15" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/F207C184-367C-4BC7-8C74-03AA39D68C24/logicalSubnets/d43d2881-3aad-40c9-b207-4280a9b3b699\",\r\n \"name\": \"d43d2881-3aad-40c9-b207-4280a9b3b699\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"57018ee5-6818-4c55-828e-d99f7cb5d8a3\"\r\n ],\r\n \"isPublic\": false\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "497" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvYLQSS2iRlYUg6OFZSoKapR+Lh85Td0e1tYMvTdI/olf70FKeVWt/r0fc7N+mJSflSpbME0p9p6op6Qf+EMnNDnn7yPRX/u2QtDi+ZEj1cHa5d/gKvVN/63Z/GxcjrIPg6la2HdgO5YdUqjUGPsCG" + ], + "x-ms-correlation-request-id": [ + "59fd2ed3-f0b2-4213-bc38-1332e4980e55" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14153" + ], + "x-ms-request-id": [ + "59fd2ed3-f0b2-4213-bc38-1332e4980e55" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192218Z:59fd2ed3-f0b2-4213-bc38-1332e4980e55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311/logicalSubnets?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbG9naWNhbE5ldHdvcmtzL2Y4ZjY3OTU2LTM5MDYtNDMwMy05NGM1LTA5Y2Y5MWU3ZTMxMS9sb2dpY2FsU3VibmV0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a2bec009-a538-4c05-8887-1e98c46eb810" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/logicalNetworks/f8f67956-3906-4303-94c5-09cf91e7e311/logicalSubnets/9ec2eb29-6d47-4e22-a322-eb575c16937a\",\r\n \"name\": \"9ec2eb29-6d47-4e22-a322-eb575c16937a\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/logicalNetworks/logicalSubnets\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"ipPools\": [\r\n \"d7e4fca0-8c09-4ef9-8305-47f050fc79c6\",\r\n \"184ec1e4-5ba7-4440-bbec-572d69db9b2b\",\r\n \"0a6dc307-9e6d-466f-8c3c-3efea7190a78\",\r\n \"e3a512fc-797b-454e-91ff-6486ca8d597c\",\r\n \"919be20b-a450-4a2f-a4a8-2da22b2a8945\",\r\n \"a927bec5-158a-4590-a04d-73573d923a16\",\r\n \"0a61f171-94ca-4e09-bff6-a4db34c023da\",\r\n \"0c22b5a9-997c-48fb-af48-a7a6a2998aaa\",\r\n \"52a75d52-64d0-47dc-a7b4-4f650a714175\",\r\n \"87620c7b-d6bb-459f-9c90-4ce81547d921\",\r\n \"b9e4cb86-0bb9-49a3-9451-639dcc3b3de8\",\r\n \"8a4493f8-0945-4583-8658-9aef9704db3d\"\r\n ],\r\n \"isPublic\": true\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "925" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvetLSdpi+tjdaKRYDzCJt2iXdnO1txCLAQn9RCx6F0aGYdb0N5rgIbgHw+cZ5s2pQ87KRDqle7YcPqQJlYY70n3DzvYaaAO/Qt/DMysty+ypmNvU9hBJBIAMp1GhJD2QTyRRWzQVWsI2YoCSIVS+r" + ], + "x-ms-correlation-request-id": [ + "ddd296f0-c9be-486a-9c0e-adbf9e78c218" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14152" + ], + "x-ms-request-id": [ + "ddd296f0-c9be-486a-9c0e-adbf9e78c218" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192218Z:ddd296f0-c9be-486a-9c0e-adbf9e78c218" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListMacAddressPools.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListMacAddressPools.json new file mode 100644 index 000000000000..dfc398c887eb --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListMacAddressPools.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/macAddressPools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvbWFjQWRkcmVzc1Bvb2xzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3bd4c0f0-472b-449a-abf4-932eccb88a3d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/macAddressPools/8197fd09-8a69-417e-a55c-10c2c61f5ee7\",\r\n \"name\": \"8197fd09-8a69-417e-a55c-10c2c61f5ee7\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/macAddressPools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"startMacAddress\": \"00-1D-D8-B7-1C-00\",\r\n \"endMacAddress\": \"00-1D-D8-F4-1F-FF\",\r\n \"numberOfAllocatedMacAddresses\": 2,\r\n \"numberOfAvailableMacAddresses\": 3998718\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvDTxe83wN1QrBA+TDh6pyVaI5irLjy27Ta9+LnMFjhed/3/aa1gtNavHdPVMlCfVsrfQy2lAsTVR/sDtKZ2akHmsc5eQR1C7a5enoKRIvC1Qn8GJBU1tIo2sPVBOdl1cO60y0aa5bWCxcdgSHjOFk" + ], + "x-ms-correlation-request-id": [ + "2ba3e656-8c68-4a70-b8ec-ba10b88dd497" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14135" + ], + "x-ms-request-id": [ + "2ba3e656-8c68-4a70-b8ec-ba10b88dd497" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192219Z:2ba3e656-8c68-4a70-b8ec-ba10b88dd497" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListScaleUnitNodes.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListScaleUnitNodes.json new file mode 100644 index 000000000000..cc478e5762cc --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListScaleUnitNodes.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7a365648-37d1-4796-88ca-91e36b6a95ab" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"name\": \"HC1n25r2236\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnitNodes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitNodeStatus\": \"Running\",\r\n \"powerState\": \"Running\",\r\n \"scaleUnitName\": \"S-Cluster\",\r\n \"scaleUnitUri\": \"/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"canPowerOff\": false,\r\n \"macAddress\": \"24-8A-07-89-15-62\",\r\n \"capacity\": {\r\n \"memoryGB\": 255.875,\r\n \"cores\": 56\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "550" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:10:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv6bj9nFerYpqCuejRh68/62e2Pj3dnh5ldLaE3SYohF/ulxp8huarKcLDQeWJlP8L1zMkN3dffBh1ksRNJO7p8RrprKZfrF71PxfFjWiuEPMgHQvSu/ar/lsdSFu289RS0qB8qhjz0NqcP175WqDj" + ], + "x-ms-correlation-request-id": [ + "03cbe130-3653-4a61-b892-06f47dbe9f78" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14163" + ], + "x-ms-request-id": [ + "03cbe130-3653-4a61-b892-06f47dbe9f78" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191058Z:03cbe130-3653-4a61-b892-06f47dbe9f78" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListScaleUnits.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListScaleUnits.json new file mode 100644 index 000000000000..642e6ea3e196 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListScaleUnits.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f24bd74d-6975-44fe-865b-757f3be4e46f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"name\": \"S-Cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 255.875,\r\n \"cores\": 56\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "594" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvSjTfF+mWxV8HCBZ/GeLm08NboG+uwL6USxyjTkvhi/63vpvsL63xAHuq5IoSIkOnac40aYF+XN2Lrn/nd6+egiAyrjliyyS1tjwDcE4oEfjmdupuo0a1T20qL0oM/n4Jxt+oAeBg+ohipTvOYiRu" + ], + "x-ms-correlation-request-id": [ + "3dd016fa-a792-4667-9ceb-587ca37bb553" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14087" + ], + "x-ms-request-id": [ + "3dd016fa-a792-4667-9ceb-587ca37bb553" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192223Z:3dd016fa-a792-4667-9ceb-587ca37bb553" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListSlbMuxInstances.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListSlbMuxInstances.json new file mode 100644 index 000000000000..58c95272de84 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListSlbMuxInstances.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/slbMuxInstances?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2xiTXV4SW5zdGFuY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ac957724-03ad-43a4-9fd9-8fde3d0fc16d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/slbMuxInstances/AzS-SLB01\",\r\n \"name\": \"AzS-SLB01\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/slbMuxInstances\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"configurationState\": \"Success\",\r\n \"virtualServer\": \"AzS-SLB01\",\r\n \"bgpPeers\": [\r\n \"BGPGateway-64000-64001\"\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "405" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvkPwLskAARdGwqRzhu/YH/zROpnxbyteprHAj/4q8I+kydt9T+sMlP2FoHClfaYzB+ibLDrp7WLRGZup3sYBfZ5D5I75FHUrgWLfAvgVF9PYHlEZ/Fnolq39RcxFxhW+NWhISjjK1ioXOmSgZWVAG" + ], + "x-ms-correlation-request-id": [ + "e2c97ef4-8053-4885-83d1-d3bab9a9a5c2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14124" + ], + "x-ms-request-id": [ + "e2c97ef4-8053-4885-83d1-d3bab9a9a5c2" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191318Z:e2c97ef4-8053-4885-83d1-d3bab9a9a5c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListStoragePools.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListStoragePools.json new file mode 100644 index 000000000000..de0907e065e1 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListStoragePools.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a127cf6d-a057-421e-9975-4cdab3f3a25c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "369" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvZhhfFOX1zy/18eYugLHbzmNRpDJ947BAkui8oyfeLAGDfpjzu6xSq09Vjwf/OfWRyX0XARBNVrTG/gMKEfAOifINUMJIt/D+X44abe7wO3IF9XskMAkjDSHSlG8utNotYMOSneW3glB0cPYIW6He" + ], + "x-ms-correlation-request-id": [ + "36d3c960-890d-4a97-a736-d0c7fd7e959a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14131" + ], + "x-ms-request-id": [ + "36d3c960-890d-4a97-a736-d0c7fd7e959a" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:36d3c960-890d-4a97-a736-d0c7fd7e959a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3dd200f4-0d7e-464c-a366-35272fa5e8e7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool\",\r\n \"name\": \"SU1_Pool\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sizeGB\": 5614\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "377" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvS4Bpr/al3Ad8p2sTkBXdTOAADuDsbd46Prr9y/3frcYC7lVpPBhuiq0mSqhic2n7uLT6PDAqAoqh1qPU0X2VnZ80v4ecLqB3GPtiABYr/8hllX3H/2EHKqtGcdzHhgKMUp38zG/9JXWzurUD/8EX" + ], + "x-ms-correlation-request-id": [ + "2a01fd73-7a66-4ae6-8e25-7bcb946089cc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14130" + ], + "x-ms-request-id": [ + "2a01fd73-7a66-4ae6-8e25-7bcb946089cc" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191317Z:2a01fd73-7a66-4ae6-8e25-7bcb946089cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListStorageSystems.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListStorageSystems.json new file mode 100644 index 000000000000..edc064f8a602 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListStorageSystems.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f06c3994-b366-4e2b-8fb8-deaff8e2d79e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "369" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv5OMhclseBKcLzJX+/ecSusyg1mE4M4NuLdL2B0rArHkzDDVqU/EkZziidbaw8Zh5OlL7nqgLcxfPzqc9QLGZq5smvgEGaLXOFzfIILOz7aidQS81s/eGM1PQcdV5wvPKMKo42limogC2nEabySbQ" + ], + "x-ms-correlation-request-id": [ + "92446849-b162-4cce-b511-9dc0c57a1f93" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14119" + ], + "x-ms-request-id": [ + "92446849-b162-4cce-b511-9dc0c57a1f93" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191318Z:92446849-b162-4cce-b511-9dc0c57a1f93" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListVolumes.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListVolumes.json new file mode 100644 index 000000000000..ad6b8d98c5f1 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestListVolumes.json @@ -0,0 +1,200 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "900786c7-ce14-46ed-b9b0-a2f0b2969a22" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "369" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvQfVMpU+Nhlzfn/8GvCS9Z3ZooJgokB2BgNOrgzmZn6co/3qtFK7Ub+xgCWzqfYxAbasoFMUSa8MuMCxyZ/3Vi/wMmr95JMB7hZf+W6+q23o198CtPDkOfP63rBu0+7IWCSkbZNNQGJKgq8lf/rsV" + ], + "x-ms-correlation-request-id": [ + "c20a58b9-dfa2-4c92-8230-7299a2781fb6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14105" + ], + "x-ms-request-id": [ + "c20a58b9-dfa2-4c92-8230-7299a2781fb6" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192221Z:c20a58b9-dfa2-4c92-8230-7299a2781fb6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "de5fcecf-f832-4e74-897e-318733f4b6c0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool\",\r\n \"name\": \"SU1_Pool\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sizeGB\": 5614\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "377" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv5HKoEPVfXiD+KRcQy6xk2agHpUGyPYrl7stTmNDCACKPHjWg+JqVnLeraPlLzQe4uM9/7wxCC+NERH80jCq27h+bj6RliBsrlZrMRx+paWIgYDMITJeCl2h1gNYp3srJn+JlwwxinewmcYMeBLj/" + ], + "x-ms-correlation-request-id": [ + "a0d47e5e-edbd-4eec-8102-96a4c131b571" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14104" + ], + "x-ms-request-id": [ + "a0d47e5e-edbd-4eec-8102-96a4c131b571" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:a0d47e5e-edbd-4eec-8102-96a4c131b571" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzL1NVMV9Qb29sL3ZvbHVtZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a4d5ea9c-5807-492e-ab13-a2fd25bf8745" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b\",\r\n \"name\": \"a42d219b\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"fileSystem\": \"CSVFS_ReFS\",\r\n \"remainingSizeGB\": 2201,\r\n \"sizeGB\": 2525,\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "478" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv6HQN/+QPapBq0x/uDlGLiCU917ir3qaSA9uFau6PjOtdYv7YcQ/ZIWpcx800u5Vg872yDN4RKO/xrgPkRdE/dv0gDqpaAZ/4c14TMy3bRWDDw0XpUcryG3akCfRuN9cNImEe0slTE4uWX1bVpagp" + ], + "x-ms-correlation-request-id": [ + "58b95af5-788e-48b0-b30c-f03e892ec1e7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14103" + ], + "x-ms-request-id": [ + "58b95af5-788e-48b0-b30c-f03e892ec1e7" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T192222Z:58b95af5-788e-48b0-b30c-f03e892ec1e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestPowerOffOnTenantVM.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestPowerOffOnTenantVM.json new file mode 100644 index 000000000000..423024d78c30 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestPowerOffOnTenantVM.json @@ -0,0 +1,139 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/502828aa-de3a-4ba9-a66c-5ae6d49589d7/PowerOff?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXMvNTAyODI4YWEtZGUzYS00YmE5LWE2NmMtNWFlNmQ0OTU4OWQ3L1Bvd2VyT2ZmP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "95ef3210-1855-4497-95b4-438178680f2a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:10:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/95ef3210-1855-4497-95b4-438178680f2a?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvsmTMMrUjEHI2pNIq+lM3VwnU4EyoivthWKfBz6+ccVy179ki3xUiZmuLbqxnwNgcqyioJ9XTLLROLDRzE8+5coyn9Rfpq71fTbvm8uFCSY7/N11P24xeL8L9DxZwg4OUQ4FwNSPeqoi0qM3I4uiB" + ], + "x-ms-correlation-request-id": [ + "901ef0a7-8ea2-4cb0-9351-ea7d7213406d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1148" + ], + "x-ms-request-id": [ + "901ef0a7-8ea2-4cb0-9351-ea7d7213406d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191058Z:901ef0a7-8ea2-4cb0-9351-ea7d7213406d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/95ef3210-1855-4497-95b4-438178680f2a?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvOTVlZjMyMTAtMTg1NS00NDk3LTk1YjQtNDM4MTc4NjgwZjJhP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"AggregateException\",\r\n \"message\": \"One or more errors occurred.\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "124" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Wed, 30 Aug 2017 19:11:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvGdFvAs7Rp2deib69yT9+HgyJ4Iyul0hAid5rC9ka0mCGkYLonIYM8ZuWktRpjLkhFX6U6d3g92Qph/ppXO+z+aUMr7ycCgpXwZqwMw5EyWUlH0CHx9MUJ6PB9AhjMx79MxqjFnwZzn/2AQPUnSBC" + ], + "x-ms-correlation-request-id": [ + "79de14ab-8a25-4513-8096-9546bf3483bf" + ], + "x-ms-failure-cause": [ + "service" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14154" + ], + "x-ms-request-id": [ + "79de14ab-8a25-4513-8096-9546bf3483bf" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191148Z:79de14ab-8a25-4513-8096-9546bf3483bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 500 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestPowerOnOnTenantVM.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestPowerOnOnTenantVM.json new file mode 100644 index 000000000000..ad2c8374e07d --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestPowerOnOnTenantVM.json @@ -0,0 +1,139 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/502828aa-de3a-4ba9-a66c-5ae6d49589d7/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXMvNTAyODI4YWEtZGUzYS00YmE5LWE2NmMtNWFlNmQ0OTU4OWQ3L1Bvd2VyT24/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0dd0b5f6-9099-4183-8911-70fa8801d89e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/0dd0b5f6-9099-4183-8911-70fa8801d89e?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvrvHVF5DLlBG9VTiS6kZsfdJXoSERwMhftlQ/j3Bl1y4mF+xCGFg3VVZmertuiscAjMhFNbO64cpVKDXVj3J0dMNRxjSELDSzUrUMk/gFTLmXBJnTakUCWT2WT44Jv6neR/ODJnZu3st7Yov6mA7V" + ], + "x-ms-correlation-request-id": [ + "e381d464-0999-4f5c-b293-e46d4356f6eb" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1150" + ], + "x-ms-request-id": [ + "e381d464-0999-4f5c-b293-e46d4356f6eb" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190904Z:e381d464-0999-4f5c-b293-e46d4356f6eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/0dd0b5f6-9099-4183-8911-70fa8801d89e?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvMGRkMGI1ZjYtOTA5OS00MTgzLTg5MTEtNzBmYTg4MDFkODllP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"AggregateException\",\r\n \"message\": \"One or more errors occurred.\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "124" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Wed, 30 Aug 2017 19:09:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv+mU0FZdulJSL+25dHBqJus8X1d8KPfbyTPcp2rRTWhJkVoKLZJX6E504iUiClNo0Oyg6OQICu4G6XLA3miwVRvvAz38Uh+vw1gqoetkUmeEO+M4ojwBGwbXowTeawl8KWt4Fz547wo9+OWz1mElq" + ], + "x-ms-correlation-request-id": [ + "b13b8c9b-0633-46d4-bf5b-9524e1c456d0" + ], + "x-ms-failure-cause": [ + "service" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14155" + ], + "x-ms-request-id": [ + "b13b8c9b-0633-46d4-bf5b-9524e1c456d0" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T190954Z:b13b8c9b-0633-46d4-bf5b-9524e1c456d0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 500 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestPowerOnScaleUnitNode.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestPowerOnScaleUnitNode.json new file mode 100644 index 000000000000..885adf8ae10e --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestPowerOnScaleUnitNode.json @@ -0,0 +1,261 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0d2ad8b5-2198-4265-b8d8-55ce45d6adb4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"name\": \"HC1n25r2236\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnitNodes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitNodeStatus\": \"Running\",\r\n \"powerState\": \"Running\",\r\n \"scaleUnitName\": \"S-Cluster\",\r\n \"scaleUnitUri\": \"/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"canPowerOff\": false,\r\n \"macAddress\": \"24-8A-07-89-15-62\",\r\n \"capacity\": {\r\n \"memoryGB\": 255.875,\r\n \"cores\": 56\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "550" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:12:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvuU4hSu/23yL9sUuN1zkU/6TM5Ar4amQi2nDlHA8+JGZU4YyGC3HYZaypHb9EXsYUFthu0ilPhd5XKL62szLmx6QETOmfAhKN3J/6WlABmzOv9UVEiMgwbDDybg76xg8cZhT0KaN+ewc1KBqkD+L0" + ], + "x-ms-correlation-request-id": [ + "87d84f34-59df-4a8a-8fef-df80a075e22a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14145" + ], + "x-ms-request-id": [ + "87d84f34-59df-4a8a-8fef-df80a075e22a" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191239Z:87d84f34-59df-4a8a-8fef-df80a075e22a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236/PowerOn?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXMvSEMxbjI1cjIyMzYvUG93ZXJPbj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5c6c409f-16fb-4cff-bf28-ba02884a76c9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:12:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/5c6c409f-16fb-4cff-bf28-ba02884a76c9?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvwMs0FvisQ7rJrPVr/KcQu3bV9gJwZ/M1PHbg2DsKpTiFNHiV/j7cIPqtJcKNirM5c7FEf1o7TNu4bCREd6BH+0ZibGJSLluk5rl4Cre8U3F3VsbYqAwbSCENcx9pjMX8aTnfvfrxz6/E8sqxbiT0" + ], + "x-ms-correlation-request-id": [ + "70b52f43-5724-4e14-a8e4-b9cdb0eabaa7" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1146" + ], + "x-ms-request-id": [ + "70b52f43-5724-4e14-a8e4-b9cdb0eabaa7" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191239Z:70b52f43-5724-4e14-a8e4-b9cdb0eabaa7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/5c6c409f-16fb-4cff-bf28-ba02884a76c9?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvNWM2YzQwOWYtMTZmYi00Y2ZmLWJmMjgtYmEwMjg4NGE3NmM5P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "48" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvgzzp9/5DkG9UesdiB7jtMF8QttjVbnwsIe4BCPV5uzwj1PiURcI/x0m0LWph/6w0CMKCI5bJ40bW+qKmT5HDLfoIlQokBPZCQgkS2mdSLVXNLfx1BzNl956Kz9oCbIjOz4zZp6avGm7TY/L5F4vO" + ], + "x-ms-correlation-request-id": [ + "1a885ccf-eb85-45b1-9837-047ae03e82d1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14142" + ], + "x-ms-request-id": [ + "1a885ccf-eb85-45b1-9837-047ae03e82d1" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191309Z:1a885ccf-eb85-45b1-9837-047ae03e82d1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXMvSEMxbjI1cjIyMzY/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "05c2c85c-a47e-40ab-af58-e54784e8d52c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"name\": \"HC1n25r2236\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnitNodes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitNodeStatus\": \"Running\",\r\n \"powerState\": \"Running\",\r\n \"scaleUnitName\": \"S-Cluster\",\r\n \"scaleUnitUri\": \"/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"canPowerOff\": false,\r\n \"macAddress\": \"24-8A-07-89-15-62\",\r\n \"capacity\": {\r\n \"memoryGB\": 255.875,\r\n \"cores\": 56\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "538" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:13:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv60r9BSJh0w25JJqr+kqDOgxcJ/iLLex8Y8aLMpH5rqwDLd8ofgOQ2iiv1XlFzwjXwTOrlG/S1D6bxAn90iYOLhy+yS+YmuBPdUEw0gYTWgeGw9067ANWEQs2Y1Py72CIwTUw4YvXdG1W7PqPfOSN" + ], + "x-ms-correlation-request-id": [ + "d8d8c188-0a31-4e2b-beff-eadc57e3bcc7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14141" + ], + "x-ms-request-id": [ + "d8d8c188-0a31-4e2b-beff-eadc57e3bcc7" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191316Z:d8d8c188-0a31-4e2b-beff-eadc57e3bcc7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestStartMaintenanceModeOnTenantVM.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestStartMaintenanceModeOnTenantVM.json new file mode 100644 index 000000000000..8031f09e90bd --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestStartMaintenanceModeOnTenantVM.json @@ -0,0 +1,139 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/502828aa-de3a-4ba9-a66c-5ae6d49589d7/StartMaintenanceMode?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXMvNTAyODI4YWEtZGUzYS00YmE5LWE2NmMtNWFlNmQ0OTU4OWQ3L1N0YXJ0TWFpbnRlbmFuY2VNb2RlP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c2101013-8566-4cbd-873c-149aff2df1c9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:11:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/c2101013-8566-4cbd-873c-149aff2df1c9?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv6Xf1Jbco9gAndtg/jKl98ygaWFNLMXHf31MqPj7nr1j/z76Smi6WuddIptPFqF704s9PWbsfBYCeLhBjGYvJU0Bbh7nNhv6Fv7EFILg2u9JYXi2Eps2KM4TVCIl9Iw/TADo5Pytyv7e+vGvw2UKA" + ], + "x-ms-correlation-request-id": [ + "0187da0d-5703-4d97-a768-52931f9185d9" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1147" + ], + "x-ms-request-id": [ + "0187da0d-5703-4d97-a768-52931f9185d9" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191148Z:0187da0d-5703-4d97-a768-52931f9185d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/c2101013-8566-4cbd-873c-149aff2df1c9?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvYzIxMDEwMTMtODU2Ni00Y2JkLTg3M2MtMTQ5YWZmMmRmMWM5P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"AggregateException\",\r\n \"message\": \"One or more errors occurred.\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "124" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Wed, 30 Aug 2017 19:12:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvsvcWzudQROISaKa0NaeoAVohISKwayJxAK/WLs2NZR5yYn0LhUR7o2d28Mcu3r77yMRil8JffqSRugUkRcC9wQliEkRm6EdV7EVds5BlRH0QlCUzH/IBnxZNf0Pd3Gh/9WPHvo/eZuPpk/VanPQq" + ], + "x-ms-correlation-request-id": [ + "4bceb997-58ee-4300-b909-ad7ac31e7341" + ], + "x-ms-failure-cause": [ + "service" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14148" + ], + "x-ms-request-id": [ + "4bceb997-58ee-4300-b909-ad7ac31e7341" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191239Z:4bceb997-58ee-4300-b909-ad7ac31e7341" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 500 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestStartStopMaintenanceModeUnitNode.json b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestStartStopMaintenanceModeUnitNode.json new file mode 100644 index 000000000000..02ffcd846e50 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/SessionRecords/FabricAdminClient/TestStartStopMaintenanceModeUnitNode.json @@ -0,0 +1,203 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "14309ab1-e263-4538-a319-785cc522c07d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236\",\r\n \"name\": \"HC1n25r2236\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnitNodes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitNodeStatus\": \"Running\",\r\n \"powerState\": \"Running\",\r\n \"scaleUnitName\": \"S-Cluster\",\r\n \"scaleUnitUri\": \"/fabricLocations/local/scaleUnits/S-Cluster\",\r\n \"canPowerOff\": false,\r\n \"macAddress\": \"24-8A-07-89-15-62\",\r\n \"capacity\": {\r\n \"memoryGB\": 255.875,\r\n \"cores\": 56\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "550" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:10:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvkuaPwUbvH/3Mcp4h79paGLvmBP4LOBjoDBG5+m0SEPBmF1z1U7QYR0ajfyTvTBQ4Mk3oq9zZJdXB91U57J+wCJ83CY5EM7nBtODhTGfMnnn6UDa4usOJ9GvWknfBE1iXNijSQZLcl2GLuErYXPxh" + ], + "x-ms-correlation-request-id": [ + "db9e8130-cb7b-4fa2-87db-f6f7607ea91d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14175" + ], + "x-ms-request-id": [ + "db9e8130-cb7b-4fa2-87db-f6f7607ea91d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191008Z:db9e8130-cb7b-4fa2-87db-f6f7607ea91d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/HC1n25r2236/StartMaintenanceMode?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0Tm9kZXMvSEMxbjI1cjIyMzYvU3RhcnRNYWludGVuYW5jZU1vZGU/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ac82caaa-c837-4ee3-bdfb-aa463dbd8d91" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 30 Aug 2017 19:10:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://adminmanagement.local.azurestack.external/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/ac82caaa-c837-4ee3-bdfb-aa463dbd8d91?api-version=2016-05-01" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvVxQfW1IagyS/nF1syFlNLiuAq9jiPAJbb8MZ8KTOfAul/4wJPkuuElpX/KVgz/8SgpWs9Uku3AqhWXBEhfbLAjEx1IKdizgZ4n7BKCGH735a7LLse+wugmocB0t50Rw38JeGEqIRh6j2yijOR2zy" + ], + "x-ms-correlation-request-id": [ + "fd3fb2f7-3b91-4344-bb5c-c350ebb621be" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1149" + ], + "x-ms-request-id": [ + "fd3fb2f7-3b91-4344-bb5c-c350ebb621be" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191008Z:fd3fb2f7-3b91-4344-bb5c-c350ebb621be" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/computeOperationResults/ac82caaa-c837-4ee3-bdfb-aa463dbd8d91?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvY29tcHV0ZU9wZXJhdGlvblJlc3VsdHMvYWM4MmNhYWEtYzgzNy00ZWUzLWJkZmItYWE0NjNkYmQ4ZDkxP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"AggregateException\",\r\n \"message\": \"One or more errors occurred.\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "124" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Wed, 30 Aug 2017 19:10:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvK/wX9AsKouEY14rRyO49/OOVmX4HSfmtgDek2cc8PvqQltTKe+yR6kmZP0I2lBJ9TwvC3JEW7VxyV6VybpY5ZEmHiZqh2iG8z5kFLaUhA+BsIB0ZgjeCNq7D8htw1/OU/kfnyOQtrku6wd0PkRxj" + ], + "x-ms-correlation-request-id": [ + "41c9c7be-41f4-48ba-8892-770917673454" + ], + "x-ms-failure-cause": [ + "service" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14164" + ], + "x-ms-request-id": [ + "41c9c7be-41f4-48ba-8892-770917673454" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170830T191058Z:41c9c7be-41f4-48ba-8892-770917673454" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 500 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/EdgeGatewayPoolTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/EdgeGatewayPoolTests.cs new file mode 100644 index 000000000000..b599d67c08bc --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/EdgeGatewayPoolTests.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Xunit; + +namespace Fabric.Tests { + public class EdgeGatewayPoolTests : FabricTestBase { + + private void AssertEdgeGatewayPoolAreSame(EdgeGatewayPool expected, EdgeGatewayPool found) { + if (expected == null) { + Assert.Null(found); + } else { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + Assert.Equal(expected.Name, found.Name); + Assert.Equal(expected.Id, found.Id); + Assert.Equal(expected.Location, found.Location); + Assert.Equal(expected.GatewayType, found.GatewayType); + Assert.Equal(expected.PublicIpAddress, found.PublicIpAddress); + Assert.Equal(expected.NumberOfGateways, found.NumberOfGateways); + } + } + + private void ValidateEdgeGatewayPool(EdgeGatewayPool pool) { + FabricCommon.ValidateResource(pool); + Assert.NotNull(pool.Id); + Assert.NotNull(pool.Location); + Assert.NotNull(pool.Name); + Assert.NotNull(pool.Type); + Assert.NotNull(pool.GatewayType); + Assert.NotNull(pool.PublicIpAddress); + } + + [Fact] + public void TestListEdgeGatewayPools() { + RunTest((client) => { + var pools = client.EdgeGatewayPools.List(Location); + Common.MapOverIPage(pools, client.EdgeGatewayPools.ListNext, ValidateEdgeGatewayPool); + Common.WriteIPagesToFile(pools, client.EdgeGatewayPools.ListNext, "ListEdgeGatewayPools.txt", (pool) => pool.Name); + + }); + } + + [Fact] + public void TestGetEdgeGatewayPool() { + RunTest((client) => { + var pool = client.EdgeGatewayPools.List(Location).GetFirst(); + if (pool != null) { + var retrieved = client.EdgeGatewayPools.Get(Location, pool.Name); + AssertEdgeGatewayPoolAreSame(pool, retrieved); + } + }); + } + + [Fact] + public void TestGetAllEdgeGatewayPools() { + RunTest((client) => { + var pools = client.EdgeGatewayPools.List(Location); + Common.MapOverIPage(pools, client.EdgeGatewayPools.ListNext, (EdgeGatewayPool pool) => { + var retrieved = client.EdgeGatewayPools.Get(Location, pool.Name); + AssertEdgeGatewayPoolAreSame(pool, retrieved); + }); + }); + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/EdgeGatewayTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/EdgeGatewayTests.cs new file mode 100644 index 000000000000..a840f00e684b --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/EdgeGatewayTests.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Xunit; + +namespace Fabric.Tests { + public class EdgeGatewayTests : FabricTestBase { + + private void AssertSameEdgeGateway(EdgeGateway expected, EdgeGateway found) { + if (expected == null) { + Assert.Null(found); + } else { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + Assert.Equal(expected.AvailableCapacity, found.AvailableCapacity); + Assert.Equal(expected.NumberOfConnections, found.NumberOfConnections); + Assert.Equal(expected.State, found.State); + Assert.Equal(expected.TotalCapacity, found.TotalCapacity); + } + } + + private void ValidateEdgeGateway(EdgeGateway gateway) { + FabricCommon.ValidateResource(gateway); + Assert.NotNull(gateway.AvailableCapacity); + Assert.NotNull(gateway.NumberOfConnections); + Assert.NotNull(gateway.State); + Assert.NotNull(gateway.TotalCapacity); + } + + [Fact] + public void TestListEdgeGateways() { + RunTest((client) => { + var gateways = client.EdgeGateways.List(Location); + Common.MapOverIPage(gateways, client.EdgeGateways.ListNext, ValidateEdgeGateway); + Common.WriteIPagesToFile(gateways, client.EdgeGateways.ListNext, "ListEdgeGateways.txt", (gateway) => gateway.Name); + }); + } + + [Fact] + public void TestGetEdgeGateway() { + RunTest((client) => { + var gateway = client.EdgeGateways.List(Location).GetFirst(); + if (gateway != null) { + var retrieved = client.EdgeGateways.Get(Location, gateway.Name); + AssertSameEdgeGateway(gateway, retrieved); + } + }); + } + + [Fact] + public void TestGetAllEdgeGateways() { + RunTest((client) => { + var gateways = client.EdgeGateways.List(Location); + Common.MapOverIPage(gateways, client.EdgeGateways.ListNext, (EdgeGateway gateway) => { + var retrieved = client.EdgeGateways.Get(Location, gateway.Name); + AssertSameEdgeGateway(gateway, retrieved); + }); + }); + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/FabricLocationTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/FabricLocationTests.cs new file mode 100644 index 000000000000..0f1df1c21f82 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/FabricLocationTests.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Xunit; + +namespace Fabric.Tests { + + public class FabricLocationTests : FabricTestBase { + + private void AssertFabricLocationEqual(FabricLocation expected, FabricLocation found) { + if (expected == null) { + Assert.Null(found); + } else { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + Assert.Equal(expected.Id, found.Id); + Assert.Equal(expected.Location, found.Location); + Assert.Equal(expected.Name, found.Name); + Assert.Equal(expected.Type, found.Type); + } + } + + private void ValidateFabricLocation(FabricLocation location) { + FabricCommon.ValidateResource(location); + } + + [Fact] + public void TestListFabricLocations() { + RunTest((client) => { + var locations = client.FabricLocations.List(Location); + Common.MapOverIPage(locations, client.FabricLocations.ListNext, ValidateFabricLocation); + Common.WriteIPagesToFile(locations, client.FabricLocations.ListNext, "ListFabricLocations.txt", (location) => location.Name); + }); + } + + [Fact] + public void TestGetFabricLocation() { + RunTest((client) => { + var location = client.FabricLocations.List(Location).GetFirst(); + if (location != null) { + var retrieved = client.FabricLocations.Get(Location, location.Name); + AssertFabricLocationEqual(location, retrieved); + } + }); + } + + [Fact] + public void TestGetAllFabricLocations() { + RunTest((client) => { + var locations = client.FabricLocations.List(Location); + Common.MapOverIPage(locations, client.FabricLocations.ListNext, (location) => { + var retrieved = client.FabricLocations.Get(Location, location.Name); + AssertFabricLocationEqual(location, retrieved); + }); + }); + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/FileShareTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/FileShareTests.cs new file mode 100644 index 000000000000..0011251860ad --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/FileShareTests.cs @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using System; +using System.Linq; +using Xunit; + +namespace Fabric.Tests { + + public class FileShareTests : FabricTestBase { + private void AssertFileSharesEqual(FileShare expected, FileShare found) { + if (expected == null) { + Assert.Null(found); + } else { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + Assert.Equal(expected.AssociatedVolume, found.AssociatedVolume); + Assert.Equal(expected.UncPath, found.UncPath); + } + } + + private void ValidateFileShare(FileShare share) { + FabricCommon.ValidateResource(share); + Assert.NotNull(share.AssociatedVolume); + Assert.NotNull(share.UncPath); + } + [Fact] + public void TestListFileShares() { + RunTest((client) => { + var fileShares = client.FileShares.List(Location); + + Assert.NotNull(fileShares); + Assert.True(fileShares.Count() > 0); + fileShares.ForEach(ValidateFileShare); + Common.WriteIEnumerableToFile(fileShares, "ListFileShares.txt", (fileShare) => fileShare.Name); + }); + } + + [Fact] + public void TestGetFileShare() { + RunTest((client) => { + var share = client.FileShares.List(Location).First(); + if (share != null) { + var retrieved = client.FileShares.Get(Location, share.Name); + AssertFileSharesEqual(share, retrieved); + } + }); + } + + [Fact] + public void TestGetAllFileShares() { + RunTest((client) => { + var fileShares = client.FileShares.List(Location); + Assert.NotNull(fileShares); + fileShares.ForEach(((share) => { + var retrieved = client.FileShares.Get(Location, share.Name); + AssertFileSharesEqual(share, retrieved); + })); + }); + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/AzureStackTestBase.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/AzureStackTestBase.cs new file mode 100644 index 000000000000..881914074b66 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/AzureStackTestBase.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. + + +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Net; + +namespace Fabric.Tests +{ + /// + /// Base class for all AzureStack tests. This class should not be modified but extended through a child class. + /// + /// + public abstract class AzureStackTestBase where T : class + { + + /// + /// Reference to service client. + /// + protected T client; + + /// + /// Validate the client. + /// + /// The instantiated client we want to validate. + protected abstract void ValidateClient(T client); + + /// + /// The default location for all admin actions. Override in derived class as needed. + /// + protected string Location = "local"; + + /// + /// Run a test that accepts no arguments. An exception can be + /// + /// The test we wish to run. + /// Function to execute before your test has completed. + /// Function to execute after your test has completed. + /// Expected returned HttpStatusCode. + /// Thrown when an unexpected exception occurs. + /// + protected void RunTest(Action test, + Action before = null, + Action after = null, + HttpStatusCode status = HttpStatusCode.OK, + [System.Runtime.CompilerServices.CallerMemberName] + string methodName= "testframework_failed") { + + Exception caught = null; + + try + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = status }; + handler.IsPassThrough = true; + + using (MockContext context = MockContext.Start(typeof(T).Name, methodName)) + { + var client = context.GetServiceClient(handlers: handler); + ValidateClient(client); + + before?.Invoke(); + test(client); + after?.Invoke(); + } + } + catch (Exception ex) + { + caught = ex; + } + finally + { + if (caught != null) + { + throw new Exception("Test failed", caught); + } + } + } + + public void IgnoreExceptions(Action action) { + try { action(); } + catch (Exception) { } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/Common.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/Common.cs new file mode 100644 index 000000000000..bfdc45223bc6 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/Common.cs @@ -0,0 +1,276 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. + +using Microsoft.Rest; +using Microsoft.Rest.Azure; +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Net.Http; +using System.Text; + +namespace Fabric.Tests +{ + + /// + /// A collection of common values and functions + /// + public class Common + { + + public const string AcceptableCharactersForResourceName = "abcdefghijklmnopqrstuvwxyz0123456789"; + public const int MaxResourceNameLength = 24; + + // This is just for code readability + public const int Milliseconds = 1; + public const int Seconds = 1000 * Milliseconds; + public const int Minutes = 60 * Seconds; + public const int Hours = 60 * Minutes; + + /// + /// Allows tests to retrieve content from Azure Stack directly. + /// + /// The client used to connect. + /// Credentials used to connect. + /// The location of the object. + /// Body of the request. + /// + public static string RetrieveObject(HttpClient client, ServiceClientCredentials creds, string uri) { + return RetrieveObject(client, creds, new Uri(uri)); + } + + + /// + /// Allows tests to retrieve content from Azure Stack directly. + /// + /// The client used to connect. + /// Credentials used to connect. + /// The location of the object. + /// Body of the request. + public static string RetrieveObject(HttpClient client, ServiceClientCredentials creds, Uri uri) { + var message = new HttpRequestMessage(HttpMethod.Get, uri); + creds.ProcessHttpRequestAsync(message, System.Threading.CancellationToken.None); + var result = client.SendAsync(message).Result; + return result.Content.ToString(); + } + + /// + /// Generate a random name that can be ingested by Azure or AzureStack. + /// + /// The prefix added to the string. The default is okaytodelete. + /// The generated string. + public static string GenerateRandomName(string prefix = "okaytodelete", bool useGuid = true) { + StringBuilder sb = new StringBuilder(prefix); + if (useGuid) + { + sb.Append(Guid.NewGuid()); + } + else + { + Random rand = new Random(); + for (int i = 0; sb.Length < MaxResourceNameLength; ++i) + { + sb.Append(AcceptableCharactersForResourceName[rand.Next(AcceptableCharactersForResourceName.Length)]); + } + } + return sb.ToString(); + } + + /// + /// Given an operation retry it either some given number of times or until it succeeds + /// + /// Function which returns true if it succeeds, false otherwise + /// Maximum number of retries + /// Delay between retries + public static bool RetryOperation(Func func, uint retries = 10, int delay = 250 * Common.Milliseconds) { + while (retries > 0) + { + if (func()) + { + break; + } + --retries; + System.Threading.Thread.Sleep(delay); + } + return retries >= 0; + } + + /// + /// Given an operation retry it either some given number of times or until an exception is thrown. + /// + /// The action we want to perform. + /// Maximum number of retries + /// Delay between retries + /// True if an exception is thrown, false if we reach our retry limit. + public static bool RetryExceptionExpected(Action act, uint retries = 10, int delay = 250 * Common.Milliseconds) { + Func func = () => { try { act() ; return false; } catch {} return true;}; + return RetryOperation( func, retries, delay); + } + + /// + /// Go over each page and perform some action on it. + /// + /// Type of object held within the pages. + /// Page we start from. + /// Function will return the next page. + /// What action to perform on each object. + public static void MapOverIPage(IPage start, Func> getNext, Action action = default(Action)) { + var curr = start; + for (;;) + { + curr.ForEach(action); + + if (string.IsNullOrEmpty(curr.NextPageLink)) + { + break; + } + + curr = getNext(curr.NextPageLink); + } + } + + /// + /// Write IPages to a given file from a starting IPage. + /// + /// The type of object each IPage holds. + /// The starting IPage. + /// Given a valid URI returns the next IPage. + /// The name of the file. + /// Returns a string representation of object of type T. + /// + public static void WriteIPagesToFile(IPage start, Func> getNext, System.String filename, Func toString = null) { + using(System.IO.FileStream stream = System.IO.File.Create(filename)) { + WriteIPagesToStream( start, getNext, stream, toString); + } + } + + /// + /// Write all element in an enumerable to a file on their own line. + /// + /// Type held in Enumerable. + /// Input IEnumerable. + /// The name of the file. + /// Returns a string representation of object of type T. Default action is to call ToString. + public static void WriteIEnumerableToFile(IEnumerable iter, System.String filename, Func toString = null) { + using(System.IO.FileStream stream = System.IO.File.Create(filename)) { + WriteIEnumerableToStream( iter, stream, toString); + } + } + + /// + /// Write all IPage + /// + /// Type held in each page. + /// Starting page. + /// Given a valid URI returns the next IPage. + /// The stream written to. + /// Returns a string representation of object of type T. Default action is to call ToString. + public static void WriteIPagesToStream(IPage start, Func> getNext, System.IO.Stream stream, Func toString = null) { + toString = toString ?? delegate(T t) {return t.ToString();}; + StringBuilder sb = new StringBuilder(); + Action action = (obj) => { sb.Append(toString(obj)); sb.AppendLine(); }; + MapOverIPage(start, getNext, action); + var str = sb.ToString(); + var bytes = Encoding.ASCII.GetBytes(sb.ToString()); + stream.Write(bytes, 0, bytes.Length); + } + + /// + /// Iterate through each item in the pages and write its string representation to a file. + /// The default action to get a string representation is to call toString on each object. + /// + /// Type held in Enumerable. + /// Input IEnumerable. + /// The stream written to. + /// Returns a string representation of object of type T. Default action is to call ToString. + public static void WriteIEnumerableToStream(IEnumerable iter, System.IO.Stream stream, Func toString = null) { + toString = toString ?? delegate(T t) {return t.ToString();}; + StringBuilder sb = new StringBuilder(); + Action action = (obj) => { sb.Append(toString(obj)); sb.AppendLine(); }; + iter.ForEach(action); + var bytes = Encoding.ASCII.GetBytes(sb.ToString()); + stream.Write(bytes, 0, bytes.Length); + } + + } +} + +public static class Extensions +{ + + /// + /// Round down the dateTimeOffset to interval. + /// + /// The date time offset. + /// The interval. + public static DateTimeOffset Floor(this DateTimeOffset dateTimeOffset, TimeSpan interval) { + return new DateTimeOffset(dateTimeOffset.UtcTicks - (dateTimeOffset.UtcTicks % interval.Ticks), TimeSpan.Zero); + } + + /// + /// Round down to the day. + /// + /// The date time. + public static DateTime Floor(this DateTime dateTime) { + return dateTime.Floor(TimeSpan.FromDays(1)); + } + + /// + /// Round down the DateTime to interval. + /// + /// The date. + /// The interval. + public static DateTime Floor(this DateTime dateTime, TimeSpan interval) { + return new DateTimeOffset(dateTime).Floor(interval).DateTime; + } + + + /// + /// Apply an operation over an IList object + /// + /// Underlying type stored in IEnumerable. + /// IEnumerable to apply operation to. + /// The action performed. + public static void ForEach(this IEnumerable list, Action action = default(Action)) { + foreach (var item in list) + { + action(item); + } + } + + /// + /// Given a page we try to grab the first element we can find + /// + /// The value that is held within the page. + /// The page we wish to extract the object from + /// + public static T GetFirst(this IPage page) where T : class { + T result = null; + if (page != null) + { + foreach(var r in page) { + result = r; + break; + } + } + return result; + } + + /// + /// Convert pagination to a list + /// + /// Type contained in each Page + /// Starting page we want to covert from. + /// A function that returns the next page. + /// + public static IList PageToList(this IPage start, Func> getNext) { + List result = new List(); + Fabric.Tests.Common.MapOverIPage(start, getNext, (page) => { + result.Add(page); + }); + return result; + } + +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/FabricCommon.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/FabricCommon.cs new file mode 100644 index 000000000000..074dd521811b --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/FabricCommon.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +using Microsoft.AzureStack.Management.Fabric.Admin.Models; + +namespace Fabric.Tests { + + class FabricCommon { + + // TODO: Compare tags + public static bool ResourceAreSame(Resource expected, Resource found) { + if (expected == null) return found == null; + return expected.Id == found.Id && + expected.Location == found.Location && + expected.Name == found.Name && + expected.Type == found.Type; + } + + public static bool ValidateResource(Resource resource) { + return resource != null && + resource.Id != null && + resource.Location != null && + resource.Name != null && + resource.Type != null; + } + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/FabricTestBase.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/FabricTestBase.cs new file mode 100644 index 000000000000..c15fd8e9aeaa --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/FabricTestBase.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using System; +using Xunit; + +namespace Fabric.Tests { + + public class FabricTestBase : AzureStackTestBase { + + // Helpful funcs + protected static Func ResourceName = (resource) => resource.Name; + protected static Func ResourceId = (resource) => resource.Id; + protected static Func ResourceLocation = (resource) => resource.Location; + protected static Func ResourceType = (resource) => resource.Type; + + public FabricTestBase() { + } + + protected override void ValidateClient(FabricAdminClient client) { + // validate creation + Assert.NotNull(client); + + // validate objects + Assert.NotNull(client.ComputeFabricOperations); + Assert.NotNull(client.EdgeGateways); + Assert.NotNull(client.EdgeGatewayPools); + Assert.NotNull(client.FabricLocations); + Assert.NotNull(client.FileShares); + Assert.NotNull(client.InfraRoles); + Assert.NotNull(client.InfraRoleInstances); + Assert.NotNull(client.IpPools); + Assert.NotNull(client.LogicalNetworks); + Assert.NotNull(client.LogicalSubnets); + Assert.NotNull(client.MacAddressPools); + Assert.NotNull(client.NetworkFabricOperations); + Assert.NotNull(client.ScaleUnits); + Assert.NotNull(client.ScaleUnitNodes); + Assert.NotNull(client.SlbMuxInstances); + + Assert.NotNull(client.StoragePools); + Assert.NotNull(client.StorageSystems); + Assert.NotNull(client.Volumes); + + // validate properties + Assert.NotNull(client.SubscriptionId); + } + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/RecordedDelegatingHandler.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/RecordedDelegatingHandler.cs new file mode 100644 index 000000000000..6f17f730802e --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/Helpers/RecordedDelegatingHandler.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. + +using System; +using System.Net; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Threading.Tasks; + +namespace Fabric.Tests +{ + + /// + /// Generic delegation handler. + /// + public class RecordedDelegatingHandler : DelegatingHandler + { + // Default response. + private HttpResponseMessage _response; + + /// + /// Default RecordedDelegatingHandler. + /// + public RecordedDelegatingHandler() { + StatusCodeToReturn = HttpStatusCode.Created; + SubsequentStatusCodeToReturn = StatusCodeToReturn; + } + + /// + /// Default RecordedDelegatingHandler which defaults to returning created. + /// + /// Response returned in all cases. + public RecordedDelegatingHandler(HttpResponseMessage response) { + StatusCodeToReturn = HttpStatusCode.Created; + SubsequentStatusCodeToReturn = StatusCodeToReturn; + _response = response; + } + + public HttpStatusCode StatusCodeToReturn { get; set; } + + public HttpStatusCode SubsequentStatusCodeToReturn { get; set; } + + public string Request { get; private set; } + + public HttpRequestHeaders RequestHeaders { get; private set; } + + public HttpContentHeaders ContentHeaders { get; private set; } + + public HttpMethod Method { get; private set; } + + public Uri Uri { get; private set; } + + public bool IsPassThrough { get; set; } + + private int counter; + + protected override async Task SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) { + counter++; + // Save request + if (request.Content == null) + { + Request = string.Empty; + } + else + { + Request = await request.Content.ReadAsStringAsync(); + } + RequestHeaders = request.Headers; + if (request.Content != null) + { + ContentHeaders = request.Content.Headers; + } + Method = request.Method; + Uri = request.RequestUri; + + // Prepare response + if (IsPassThrough) + { + return await base.SendAsync(request, cancellationToken); + } + else + { + if (_response != null && counter == 1) + { + return _response; + } + else + { + var statusCode = StatusCodeToReturn; + if (counter > 1) + statusCode = SubsequentStatusCodeToReturn; + HttpResponseMessage response = new HttpResponseMessage(statusCode); + response.Content = new StringContent(""); + return response; + } + } + } + } +} \ No newline at end of file diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/InfraRoleInstanceTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/InfraRoleInstanceTests.cs new file mode 100644 index 000000000000..e89a0175ba6b --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/InfraRoleInstanceTests.cs @@ -0,0 +1,179 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Microsoft.Rest.Azure; +using Xunit; + +namespace Fabric.Tests +{ + + /// + /// Summary description for FabricTest + /// + public class InfraRoleInstanceTests : FabricTestBase + { + private string RoleInstance = "AzS-ACS01"; + + private void AssertInfraRoleInstancesEqual(InfraRoleInstance expected, InfraRoleInstance found) { + if (expected == null) + { + Assert.Null(found); + } + else + { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + Assert.Equal(expected.Name, found.Name); + Assert.Equal(expected.Id, found.Id); + Assert.Equal(expected.Location, found.Location); + + // Infra Role Instance + Assert.Equal(expected.ScaleUnit, found.ScaleUnit); + Assert.Equal(expected.ScaleUnitNode, found.ScaleUnitNode); + Assert.Equal(expected.Size.Cores, found.Size.Cores); + Assert.Equal(expected.Size.MemoryGb, found.Size.MemoryGb); + Assert.Equal(expected.State, found.State); + Assert.Equal(expected.Type, found.Type); + } + } + + private void ValiateInfraRoleInstance(InfraRoleInstance instance) { + FabricCommon.ValidateResource(instance); + Assert.NotNull(instance.ScaleUnit); + Assert.NotNull(instance.ScaleUnitNode); + Assert.NotNull(instance.Size); + Assert.NotNull(instance.State); + } + + [Fact] + public void TestListInfraRoleInstances() { + RunTest((client) => { + var instances = client.InfraRoleInstances.List(Location); + Common.MapOverIPage(instances, client.InfraRoleInstances.ListNext, ValiateInfraRoleInstance); + Common.WriteIPagesToFile(instances, client.InfraRoleInstances.ListNext, "ListInfraRoleInstances.txt", (instance) => instance.Name); + }); + } + + [Fact] + public void TestGetInfraRoleInstance() { + RunTest((client) => { + var instance = client.InfraRoleInstances.List(Location).GetFirst(); + var retrieved = client.InfraRoleInstances.Get(Location, instance.Name); + ValiateInfraRoleInstance(retrieved); + AssertInfraRoleInstancesEqual(instance, retrieved); + }); + } + + [Fact] + public void TestGetAllInfraRoleInstances() { + RunTest((client) => { + var instances = client.InfraRoleInstances.List(Location); + Common.MapOverIPage(instances, client.InfraRoleInstances.ListNext, (instance) => { + var retrieved = client.InfraRoleInstances.Get(Location, instance.Name); + ValiateInfraRoleInstance(retrieved); + AssertInfraRoleInstancesEqual(instance, retrieved); + }); + }); + } + + // This should do nothing + [Fact] + public void TestInfraRoleInstancePowerOn() { + RunTest((client) => { + var instance = client.InfraRoleInstances.List(Location).GetFirst(); + client.InfraRoleInstances.PowerOn(Location, instance.Name); + }); + } + + // This should do nothing + [Fact] + public void TestInfraRoleInstancePowerOnAll() { + RunTest((client) => { + var instances = client.InfraRoleInstances.List(Location); + Common.MapOverIPage(instances, client.InfraRoleInstances.ListNext, (instance) => { + client.InfraRoleInstances.PowerOn(Location, instance.Name); + }); + }); + } + + // This needs to be setup before the run. + private string TenantVMName = "502828aa-de3a-4ba9-a66c-5ae6d49589d7"; + + // Make sure we cannot touch tenant VMs + + [Fact] + public void TestGetInfraRoleInstanceOnTenantVM() { + RunTest((client) => { + Assert.Throws(() => client.InfraRoleInstances.Get(Location, TenantVMName)); + }); + } + + [Fact] + public void TestInfraRoleInstanceShutdownOnTenantVM() { + RunTest((client) => { + Assert.Throws(() => { + var provisioningState = client.InfraRoleInstances.Shutdown(Location, TenantVMName); + Assert.NotEqual(provisioningState.ProvisioningStateProperty, "Success"); + }); + }); + } + + [Fact] + public void TestInfraRoleInstancePowerOffOnTenantVM() { + RunTest((client) => { + Assert.Throws(() => { + var provisioningState = client.InfraRoleInstances.PowerOff(Location, TenantVMName); + Assert.NotEqual(provisioningState.ProvisioningStateProperty, "Success"); + }); + }); + } + + [Fact] + public void TestInfraRoleInstanceRebootOnTenantVM() { + RunTest((client) => { + Assert.Throws(() => { + var provisioningState = client.InfraRoleInstances.Reboot(Location, TenantVMName); + Assert.NotEqual(provisioningState.ProvisioningStateProperty, "Success"); + }); + }); + } + + + // Disabled Tests + + // TODO: Not sure how safe this is, also not sure of return type or value. + [Fact(Skip = "No hardware")] + public void TestInfraRoleInstanceShutdown() { + RunTest((client) => { + var provisioningState = client.InfraRoleInstances.Shutdown(Location, RoleInstance); + Assert.NotEqual(provisioningState.ProvisioningStateProperty, "Success"); + + var instance = client.InfraRoleInstances.Get(Location, RoleInstance); + ValiateInfraRoleInstance(instance); + }); + } + + // TODO: Not sure how safe this is, also not sure of return type or value. + [Fact(Skip = "No hardware")] + public void TestInfraRoleInstancePowerOff() { + RunTest((client) => { + var provisioningState = client.InfraRoleInstances.PowerOff(Location, "502828aa-de3a-4ba9-a66c-5ae6d49589d7"); + Assert.NotEqual(provisioningState.ProvisioningStateProperty, "Success"); + }); + } + + [Fact(Skip = "No hardware")] + public void TestInfraRoleInstanceReboot() { + RunTest((client) => { + client.InfraRoleInstances.Reboot(Location, RoleInstance); + var instance = client.InfraRoleInstances.Get(Location, RoleInstance); + ValiateInfraRoleInstance(instance); + // TODO: What are the assertions? + }); + } + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/InfraRoleTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/InfraRoleTests.cs new file mode 100644 index 000000000000..af80c698006a --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/InfraRoleTests.cs @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Xunit; + +namespace Fabric.Tests { + + /// + /// Summary description for FabricTest + /// + public class InfraRoleTests : FabricTestBase { + private string InfraRoleName = "Backup controller"; + + private void ValidateInfraRole(InfraRole role) { + Assert.True(FabricCommon.ValidateResource(role)); + Assert.NotNull(role.Instances); + } + + private void AssertInfraRolesAreSame(InfraRole expected, InfraRole found) { + if (expected == null) { + Assert.Null(found); + } else { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + Assert.Equal(expected.Name, found.Name); + Assert.Equal(expected.Id, found.Id); + Assert.Equal(expected.Location, found.Location); + Assert.Equal(expected.Type, found.Type); + Assert.Equal(expected.Instances.Count, found.Instances.Count); + } + } + + [Fact] + public void TestListInfraRoles() { + RunTest((client) => { + var roles = client.InfraRoles.List(Location); + Assert.NotNull(roles); + + Common.MapOverIPage(roles, client.InfraRoles.ListNext, (role) => { + ValidateInfraRole(role); + }); + + Common.WriteIPagesToFile(roles, client.InfraRoles.ListNext, "ListInfraRoles.txt", (role) => role.Name); + }); + } + + [Fact] + public void TestGetInfraRole() { + RunTest((client) => { + var role = client.InfraRoles.List(Location).GetFirst(); + var retrieved = client.InfraRoles.Get(Location, role.Name); + ValidateInfraRole(retrieved); + AssertInfraRolesAreSame(role, retrieved); + }); + } + + [Fact] + public void TestGetAllInfraRoles() { + RunTest((client) => { + var roles = client.InfraRoles.List(Location); + Assert.NotNull(roles); + Common.MapOverIPage(roles, client.InfraRoles.ListNext, (role) => { + var retrieved = client.InfraRoles.Get(Location, role.Name); + AssertInfraRolesAreSame(role, retrieved); + }); + }); + } + + // TODO: Figure out what this does before we call it and then break something + [Fact(Skip ="No hardware")] + public void TestScaleUpInfraRole() { + RunTest((client) => { + var role = client.InfraRoles.ScaleUp(Location, InfraRoleName); + Assert.Null(role); // ??? + }); + } + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/IpPoolTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/IpPoolTests.cs new file mode 100644 index 000000000000..8761aae7499f --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/IpPoolTests.cs @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Xunit; + +namespace Fabric.Tests +{ + + public class IpPoolTests : FabricTestBase + { + + private void AssertIpPoolsAreSame(IpPool expected, IpPool found) { + if (expected == null) + { + Assert.Null(found); + } + else + { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + Assert.Equal(expected.AddressPrefix, found.AddressPrefix); + Assert.Equal(expected.EndIpAddress, found.EndIpAddress); + Assert.Equal(expected.NumberOfAllocatedIpAddresses, found.NumberOfAllocatedIpAddresses); + Assert.Equal(expected.NumberOfIpAddresses, found.NumberOfIpAddresses); + Assert.Equal(expected.NumberOfIpAddressesInTransition, found.NumberOfIpAddressesInTransition); + Assert.Equal(expected.StartIpAddress, found.StartIpAddress); + } + } + + private void ValidateIpPool(IpPool pool) { + FabricCommon.ValidateResource(pool); + + // TODO: Can we test on when this is not supposed to be null? + // This is allowed to be null + //Assert.Null(pool.AddressPrefix, "AddressPrefix is null"); + + Assert.NotNull(pool.EndIpAddress); + Assert.NotNull(pool.NumberOfAllocatedIpAddresses); + Assert.NotNull(pool.NumberOfIpAddresses); + Assert.NotNull(pool.NumberOfIpAddressesInTransition); + Assert.NotNull(pool.StartIpAddress); + } + + [Fact] + public void TestListIpPools() { + RunTest((client) => { + var ipPools = client.IpPools.List(Location); + Common.MapOverIPage(ipPools, client.IpPools.ListNext, ValidateIpPool); + Common.WriteIPagesToFile(ipPools, client.IpPools.ListNext, "ListIpPools.txt", (pool) => pool.Name); + }); + } + + [Fact] + public void TestGetIpPool() { + RunTest((client) => { + var ipPool = client.IpPools.List(Location).GetFirst(); + if (ipPool != null) + { + var retrieved = client.IpPools.Get(Location, ipPool.Name); + AssertIpPoolsAreSame(ipPool, retrieved); + } + }); + } + [Fact] + public void TestGetAllIpPools() { + RunTest((client) => { + var ipPools = client.IpPools.List(Location); + Common.MapOverIPage(ipPools, client.IpPools.ListNext, (pool) => { + var retrieved = client.IpPools.Get(Location, pool.Name); + AssertIpPoolsAreSame(pool, retrieved); + }); + }); + } + + + private IpPool CreateNewIpPool(string ipPoolName) { + var ipPool = new IpPool() + { + StartIpAddress = "9.9.9.1", + EndIpAddress = "9.9.9.254", + AddressPrefix = "9.9.9.0/24" + }; + return ipPool; + } + + // [BUG:13271901] : [FRP] Attempting to create an IP Pool Results in Service Offline error + [Fact(Skip ="RP throws exception")] + public void TestCreateIpPool() { + RunTest((client) => { + + var ipPoolName = "myippoolwhichcanneverbedeleted"; + var ipPool = CreateNewIpPool(ipPoolName); + + var retrieved = client.IpPools.Create(Location, ipPoolName, ipPool); + var test = client.IpPools.Get(Location, ipPoolName); + + Assert.False(test != null && retrieved == null); + Assert.False(retrieved != null && test == null); + + Assert.Null(retrieved); + Assert.Equal(ipPool.NumberOfIpAddresses, retrieved.NumberOfIpAddresses); + Assert.Equal(ipPool.StartIpAddress, retrieved.StartIpAddress); + Assert.Equal(ipPool.EndIpAddress, retrieved.EndIpAddress); + + + }); + } + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/LogicalNetworkTest.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/LogicalNetworkTest.cs new file mode 100644 index 000000000000..108fb922b2e5 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/LogicalNetworkTest.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Xunit; + +namespace Fabric.Tests { + + public class LogicalNetworkTest : FabricTestBase { + + private void AssertLogicalNetworksAreSame(LogicalNetwork expected, LogicalNetwork found) { + if (expected == null) { + Assert.Null(found); + } else { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + Assert.Equal(expected.NetworkVirtualizationEnabled, found.NetworkVirtualizationEnabled); + if (expected.Subnets != null) { + Assert.Equal(expected.Subnets.Count, found.Subnets.Count); + } else { + Assert.Null(found.Subnets); + } + + if (expected.Metadata != null) { + Assert.Equal(expected.Metadata.Count, found.Metadata.Count); + } else { + Assert.Null(found.Metadata); + } + + } + } + + private void ValidateLogicalNetwork(LogicalNetwork logicalNetwork) { + FabricCommon.ValidateResource(logicalNetwork); + + Assert.NotNull(logicalNetwork.NetworkVirtualizationEnabled); + Assert.NotNull(logicalNetwork.Subnets); + } + + [Fact] + public void TestListLogicalNetworks() { + RunTest((client) => { + var logicalNetworks = client.LogicalNetworks.List(Location); + Common.MapOverIPage(logicalNetworks, client.LogicalNetworks.ListNext, ValidateLogicalNetwork); + Common.WriteIPagesToFile(logicalNetworks, client.LogicalNetworks.ListNext, "ListLogicalNetworks.txt", (logicalNetwork) => logicalNetwork.Name); + }); + } + + [Fact] + public void TestGetLogicalNetwork() { + RunTest((client) => { + foreach(var logicalNetwork in client.LogicalNetworks.List(Location) ) { + var retrieved = client.LogicalNetworks.Get(Location, logicalNetwork.Name); + AssertLogicalNetworksAreSame(logicalNetwork, retrieved); + break; + } + }); + } + + [Fact] + public void TestGetAllLogicalNetworks() { + RunTest((client) => { + var logicalNetworks = client.LogicalNetworks.List(Location); + Common.MapOverIPage(logicalNetworks, client.LogicalNetworks.ListNext, (logicalNetwork) => { + var retrieved = client.LogicalNetworks.Get(Location, logicalNetwork.Name); + AssertLogicalNetworksAreSame(logicalNetwork, retrieved); + }); + + }); + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/LogicalSubnetTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/LogicalSubnetTests.cs new file mode 100644 index 000000000000..1f9a55f3bb32 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/LogicalSubnetTests.cs @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Xunit; + +namespace Fabric.Tests { + + public class LogicalSubnetTests : FabricTestBase { + private void AssertLogicalSubnetsAreSame(LogicalSubnet expected, LogicalSubnet found) { + if (expected == null) { + Assert.Null(found); + } else { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + Assert.Equal(expected.IsPublic, found.IsPublic); + if (expected.IpPools != null) { + Assert.Equal(expected.IpPools.Count, found.IpPools.Count); + } else { + Assert.Null(found.IpPools); + } + + if (expected.Metadata != null) { + Assert.Equal(expected.Metadata.Count, found.Metadata.Count); + } else { + Assert.Null(found.Metadata); + } + + } + } + + private void ValidateLogicalSubnet(LogicalSubnet logicalSubnet) { + FabricCommon.ValidateResource(logicalSubnet); + + Assert.NotNull(logicalSubnet.IpPools); + Assert.NotNull(logicalSubnet.IsPublic); + } + + [Fact] + public void TestListLogicalSubnets() { + RunTest((client) => { + var logicalNetworks = client.LogicalNetworks.List(Location); + Common.MapOverIPage(logicalNetworks, client.LogicalNetworks.ListNext, (logicalNetwork) => { + var logicalSubnets = client.LogicalSubnets.List(Location, logicalNetwork.Name); + Common.MapOverIPage(logicalSubnets, client.LogicalSubnets.ListNext, ValidateLogicalSubnet); + Common.WriteIPagesToFile(logicalSubnets, client.LogicalSubnets.ListNext, "ListLogicalSubnets.txt", (logicalSubnet) => logicalSubnet.Name); + }); + }); + } + + [Fact] + public void TestGetLogicalSubnet() { + RunTest((client) => { + var logicalNetwork = client.LogicalNetworks.List(Location).GetFirst(); + var logicalSubnet = client.LogicalSubnets.List(Location, logicalNetwork.Name).GetFirst(); + if (logicalSubnet != null) { + var retrieved = client.LogicalSubnets.Get(Location, logicalNetwork.Name, logicalSubnet.Name); + AssertLogicalSubnetsAreSame(logicalSubnet, retrieved); + } + }); + } + + [Fact] + public void TestGetAllLogicalSubnets() { + RunTest((client) => { + var logicalNetworks = client.LogicalNetworks.List(Location); + Common.MapOverIPage(logicalNetworks, client.LogicalNetworks.ListNext, (logicalNetwork) => { + var logicalSubnets = client.LogicalSubnets.List(Location, logicalNetwork.Name); + Common.MapOverIPage(logicalSubnets, client.LogicalSubnets.ListNext, (logicalSubnet) => { + var retrieved = client.LogicalSubnets.Get(Location, logicalNetwork.Name, logicalSubnet.Name); + AssertLogicalSubnetsAreSame(logicalSubnet, retrieved); + }); + }); + + }); + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/MacAddressPoolTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/MacAddressPoolTests.cs new file mode 100644 index 000000000000..9d79d85ba2d2 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/MacAddressPoolTests.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Xunit; + +namespace Fabric.Tests +{ + public class MacAddressPoolTests : FabricTestBase + { + private void AssertMacAddressPoolsAreSame(MacAddressPool expected, MacAddressPool found) { + if (expected == null) + { + Assert.Null(found); + } + else + { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + Assert.Equal(expected.NumberOfAllocatedMacAddresses, found.NumberOfAllocatedMacAddresses); + Assert.Equal(expected.NumberOfAvailableMacAddresses, found.NumberOfAvailableMacAddresses); + Assert.Equal(expected.StartMacAddress, found.StartMacAddress); + Assert.Equal(expected.EndMacAddress, found.EndMacAddress); + + if (expected.Metadata != null) + { + Assert.Equal(expected.Metadata.Count, found.Metadata.Count); + } + else + { + Assert.Null(found.Metadata); + } + } + } + + private void ValidateMacAddressPool(MacAddressPool macAddressPool) { + FabricCommon.ValidateResource(macAddressPool); + + Assert.NotNull(macAddressPool.NumberOfAllocatedMacAddresses); + Assert.NotNull(macAddressPool.NumberOfAvailableMacAddresses); + Assert.NotNull(macAddressPool.StartMacAddress); + Assert.NotNull(macAddressPool.EndMacAddress); + } + + [Fact] + public void TestListMacAddressPools() { + RunTest((client) => { + var macAddressPools = client.MacAddressPools.List(Location); + Common.MapOverIPage(macAddressPools, client.MacAddressPools.ListNext, ValidateMacAddressPool); + Common.WriteIPagesToFile(macAddressPools, client.MacAddressPools.ListNext, "ListMacAddressPools.txt", (macAddressPool) => macAddressPool.Name); + }); + } + + [Fact] + public void TestGetMacAddressPool() { + RunTest((client) => { + var macAddressPool = client.MacAddressPools.List(Location).GetFirst(); + if (macAddressPool != null) + { + var retrieved = client.MacAddressPools.Get(Location, macAddressPool.Name); + AssertMacAddressPoolsAreSame(macAddressPool, retrieved); + } + }); + } + + [Fact] + public void TestGetAllMacAddressPools() { + RunTest((client) => { + var macAddressPools = client.MacAddressPools.List(Location); + Common.MapOverIPage(macAddressPools, client.MacAddressPools.ListNext, (macAddressPool) => { + var retrieved = client.MacAddressPools.Get(Location, macAddressPool.Name); + AssertMacAddressPoolsAreSame(macAddressPool, retrieved); + }); + }); + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/OperationTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/OperationTests.cs new file mode 100644 index 000000000000..5bfb254bbd23 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/OperationTests.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Xunit; + +namespace Fabric.Tests { + public class OperationTests : FabricTestBase { + + [Fact(Skip ="Need operation first, we run this in another test.")] + public void TestGetComputeFabricOperations() { + RunTest((client) => { + client.ComputeFabricOperations.Get("storageFabricOperation", "Microsoft.Storage", Location); + }); + } + + [Fact(Skip = "Need operation first, we run this in another test.")] + public void TestGetNetworkFabricOperations() { + RunTest((client) => { + client.NetworkFabricOperations.Get("storageFabricOperation", "Microsoft.Storage", Location); + }); + } + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/ScaleUnitNodeTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/ScaleUnitNodeTests.cs new file mode 100644 index 000000000000..f663c306f5f0 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/ScaleUnitNodeTests.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Microsoft.Rest.Azure; +using Xunit; + +namespace Fabric.Tests +{ + + public class ScaleUnitNodeTests : FabricTestBase + { + private void AssertScaleUnitNodesAreSame(ScaleUnitNode expected, ScaleUnitNode found) { + if (expected == null) + { + Assert.Null(found); + } + else + { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + Assert.Equal(expected.BiosVersion, found.BiosVersion); + Assert.Equal(expected.BmcAddress, found.BmcAddress); + Assert.Equal(expected.CanPowerOff, found.CanPowerOff); + if (expected.Capacity == null) + { + Assert.Null(found.Capacity); + } + else + { + Assert.Equal(expected.Capacity.Cores, found.Capacity.Cores); + Assert.Equal(expected.Capacity.MemoryGB, found.Capacity.MemoryGB); + } + Assert.Equal(expected.Model, found.Model); + Assert.Equal(expected.PowerState, found.PowerState); + Assert.Equal(expected.ScaleUnitName, found.ScaleUnitName); + Assert.Equal(expected.ScaleUnitNodeStatus, found.ScaleUnitNodeStatus); + Assert.Equal(expected.ScaleUnitUri, found.ScaleUnitUri); + Assert.Equal(expected.SerialNumber, found.SerialNumber); + Assert.Equal(expected.Vendor, found.Vendor); + + } + } + + private void ValidateScaleUnitNode(ScaleUnitNode scaleUnitNode) { + FabricCommon.ValidateResource(scaleUnitNode); + + Assert.NotNull(scaleUnitNode.CanPowerOff); + Assert.NotNull(scaleUnitNode.Capacity); + Assert.NotNull(scaleUnitNode.PowerState); + Assert.NotNull(scaleUnitNode.ScaleUnitName); + Assert.NotNull(scaleUnitNode.ScaleUnitNodeStatus); + Assert.NotNull(scaleUnitNode.ScaleUnitUri); + } + + + [Fact] + public void TestListScaleUnitNodes() { + RunTest((client) => { + var scaleUnitNodes = client.ScaleUnitNodes.List(Location); + Common.MapOverIPage(scaleUnitNodes, client.ScaleUnitNodes.ListNext, ValidateScaleUnitNode); + Common.WriteIPagesToFile(scaleUnitNodes, client.ScaleUnitNodes.ListNext, "ListScaleUnitNodes.txt", ResourceName); + }); + } + + [Fact] + public void TestGetScaleUnitNode() { + RunTest((client) => { + var scaleUnitNode = client.ScaleUnitNodes.List(Location).GetFirst(); + var retrieved = client.ScaleUnitNodes.Get(Location, scaleUnitNode.Name); + AssertScaleUnitNodesAreSame(scaleUnitNode, retrieved); + }); + } + + [Fact] + public void TestGetAllScaleUnitNodes() { + RunTest((client) => { + var scaleUnitNodes = client.ScaleUnitNodes.List(Location); + Common.MapOverIPage(scaleUnitNodes, client.ScaleUnitNodes.ListNext, (scaleUnitNode) => { + var retrieved = client.ScaleUnitNodes.Get(Location, scaleUnitNode.Name); + AssertScaleUnitNodesAreSame(scaleUnitNode, retrieved); + }); + }); + } + + [Fact] + public void TestPowerOnScaleUnitNode() { + RunTest((client) => { + var scaleUnitNode = client.ScaleUnitNodes.List(Location).GetFirst(); + + var provisioningState = client.ScaleUnitNodes.PowerOn(Location, scaleUnitNode.Name); + Assert.NotEqual(provisioningState.ProvisioningStateProperty, "Success"); + + var sun = client.ScaleUnitNodes.Get(Location, scaleUnitNode.Name); + Assert.Equal("Running", sun.PowerState); + }); + } + + [Fact] + public void TestStartStopMaintenanceModeUnitNode() { + RunTest((client) => { + var scaleUnitNode = client.ScaleUnitNodes.List(Location).GetFirst(); + Assert.Throws(() => { + client.ScaleUnitNodes.StartMaintenanceMode(Location, scaleUnitNode.Name); + client.ScaleUnitNodes.StopMaintenanceMode(Location, scaleUnitNode.Name); + }); + }); + } + + + // Try on Tenant VMs + + // This needs to be setup before the run. + private string TenantVMName = "502828aa-de3a-4ba9-a66c-5ae6d49589d7"; + + + [Fact] + public void TestGetScaleUnitNodeOnTenantVM() { + RunTest((client) => { + Assert.Throws(() => client.ScaleUnitNodes.Get(Location, TenantVMName)); + }); + } + + [Fact] + public void TestPowerOnOnTenantVM() { + RunTest((client) => { + Assert.Throws(() => { + var provisioningState = client.ScaleUnitNodes.PowerOn(Location, TenantVMName); + Assert.NotEqual(provisioningState.ProvisioningStateProperty, "Success"); + }); + }); + } + + + [Fact] + public void TestPowerOffOnTenantVM() { + RunTest((client) => { + Assert.Throws(() => { + var provisioningState = client.ScaleUnitNodes.PowerOff(Location, TenantVMName); + Assert.NotEqual(provisioningState.ProvisioningStateProperty, "Success"); + }); + }); + } + + [Fact] + public void TestStartMaintenanceModeOnTenantVM() { + RunTest((client) => { + Assert.Throws(() => { + var provisioningState = client.ScaleUnitNodes.StartMaintenanceMode(Location, TenantVMName); + Assert.NotEqual(provisioningState.ProvisioningStateProperty, "Success"); + }); + }); + } + + // Disabled + + [Fact(Skip = "No hardware")] + public void TestPowerOffScaleUnitNode() { + RunTest((client) => { + var scaleUnitNode = client.ScaleUnitNodes.List(Location).GetFirst(); + var obj1 = client.ScaleUnitNodes.PowerOff(Location, scaleUnitNode.Name); + var obj2 = client.ScaleUnitNodes.PowerOn(Location, scaleUnitNode.Name); + }); + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/ScaleUnitTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/ScaleUnitTests.cs new file mode 100644 index 000000000000..b4c1342cea69 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/ScaleUnitTests.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Xunit; + +namespace Fabric.Tests +{ + + public class ScaleUnitTests : FabricTestBase + { + private void AssertScaleUnitsAreSame(ScaleUnit expected, ScaleUnit found) { + if (expected == null) + { + Assert.Null(found); + } + else + { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + Assert.Equal(expected.LogicalFaultDomain, found.LogicalFaultDomain); + Assert.Equal(expected.Model, found.Model); + + if (expected.Nodes == null) + { + Assert.Null(found.Nodes); + } + else + { + Assert.Equal(expected.Nodes.Count, found.Nodes.Count); + } + + Assert.Equal(expected.ScaleUnitType, found.ScaleUnitType); + Assert.Equal(expected.State, found.State); + + if (expected.TotalCapacity == null) + { + Assert.Null(found.TotalCapacity); + } + else + { + Assert.Equal(expected.TotalCapacity.Cores, found.TotalCapacity.Cores); + Assert.Equal(expected.TotalCapacity.MemoryGB, found.TotalCapacity.MemoryGB); + } + + } + } + + private void ValidateScaleUnit(ScaleUnit scaleUnit) { + FabricCommon.ValidateResource(scaleUnit); + + Assert.NotNull(scaleUnit.LogicalFaultDomain); + Assert.NotNull(scaleUnit.ScaleUnitType); + Assert.NotNull(scaleUnit.State); + Assert.NotNull(scaleUnit.TotalCapacity); + } + + + [Fact] + public void TestListScaleUnits() { + RunTest((client) => { + var scaleUnits = client.ScaleUnits.List(Location); + Common.MapOverIPage(scaleUnits, client.ScaleUnits.ListNext, ValidateScaleUnit); + Common.WriteIPagesToFile(scaleUnits, client.ScaleUnits.ListNext, "ListScaleUnits.txt", ResourceName); + }); + } + + [Fact] + public void TestGetScaleUnit() { + RunTest((client) => { + var scaleUnit = client.ScaleUnits.List(Location).GetFirst(); + var retrieved = client.ScaleUnits.Get(Location, scaleUnit.Name); + AssertScaleUnitsAreSame(scaleUnit, retrieved); + }); + } + + [Fact] + public void TestGetAllScaleUnits() { + RunTest((client) => { + var scaleUnits = client.ScaleUnits.List(Location); + Common.MapOverIPage(scaleUnits, client.ScaleUnits.ListNext, (scaleUnit) => { + var retrieved = client.ScaleUnits.Get(Location, scaleUnit.Name); + AssertScaleUnitsAreSame(scaleUnit, retrieved); + }); + }); + } + + [Fact(Skip ="no hardware")] + public void TestScaleOutScaleUnit() { + RunTest((client) => { + var scaleUnit = client.ScaleUnits.List(Location).GetFirst(); + var desc = new BareMetalNodeDescription() + { + // TODO + }; + client.ScaleUnits.ScaleOut(Location, scaleUnit.Name, desc); + }); + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/SlbMuxInstanceTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/SlbMuxInstanceTests.cs new file mode 100644 index 000000000000..77df6ae23417 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/SlbMuxInstanceTests.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Xunit; + +namespace Fabric.Tests { + + public class SlbMuxInstanceTests : FabricTestBase { + + private void AssertSlbMuxInstancesAreSame(SlbMuxInstance expected, SlbMuxInstance found) { + if (expected == null) { + Assert.Null(found); + } else { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + if (expected.BgpPeers == null) { + Assert.Null(found.BgpPeers); + } else { + Assert.Equal(expected.BgpPeers.Count, found.BgpPeers.Count); + } + Assert.Equal(expected.ConfigurationState, found.ConfigurationState); + Assert.Equal(expected.VirtualServer, found.VirtualServer); + } + } + + private void ValidateSlbMuxInstance(SlbMuxInstance instance) { + FabricCommon.ValidateResource(instance); + + Assert.NotNull(instance.BgpPeers); + Assert.NotNull(instance.ConfigurationState); + Assert.NotNull(instance.VirtualServer); + } + + + [Fact] + public void TestListSlbMuxInstances() { + RunTest((client) => { + var slbMuxInstances = client.SlbMuxInstances.List(Location); + Common.MapOverIPage(slbMuxInstances, client.SlbMuxInstances.ListNext, ValidateSlbMuxInstance); + Common.WriteIPagesToFile(slbMuxInstances, client.SlbMuxInstances.ListNext, "ListSlbMuxInstances.txt", ResourceName); + }); + } + + [Fact] + public void TestGetSlbMuxInstance() { + RunTest((client) => { + var slbMuxInstance = client.SlbMuxInstances.List(Location).GetFirst(); + var retrieved = client.SlbMuxInstances.Get(Location, slbMuxInstance.Name); + AssertSlbMuxInstancesAreSame(slbMuxInstance, retrieved); + }); + } + + [Fact] + public void TestGetAllSlbMuxInstances() { + RunTest((client) => { + var slbMuxInstances = client.SlbMuxInstances.List(Location); + Common.MapOverIPage(slbMuxInstances, client.SlbMuxInstances.ListNext, (slbMuxInstance) => { + var retrieved = client.SlbMuxInstances.Get(Location, slbMuxInstance.Name); + AssertSlbMuxInstancesAreSame(slbMuxInstance, retrieved); + }); + }); + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/StoragePoolTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/StoragePoolTests.cs new file mode 100644 index 000000000000..79f17e026ed3 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/StoragePoolTests.cs @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Xunit; + +namespace Fabric.Tests { + + public class StoragePoolTests : FabricTestBase { + + private void AssertStoragePoolsAreSame(StoragePool expected, StoragePool found) { + if (expected == null) { + Assert.Null(found); + } else { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + Assert.Equal(expected.SizeGB, found.SizeGB); + } + } + + private void ValidateStoragePool(StoragePool instance) { + FabricCommon.ValidateResource(instance); + + Assert.NotNull(instance.SizeGB); + } + + + [Fact] + public void TestListStoragePools() { + RunTest((client) => { + var subSystems = client.StorageSystems.List(Location); + Common.MapOverIPage(subSystems, client.StorageSystems.ListNext, (subSystem) => { + var storagePools = client.StoragePools.List(Location, subSystem.Name); + Common.MapOverIPage(storagePools, client.StoragePools.ListNext, ValidateStoragePool); + Common.WriteIPagesToFile(storagePools, client.StoragePools.ListNext, "ListStoragePools.txt", ResourceName); + }); + }); + } + + [Fact] + public void TestGetStoragePool() { + RunTest((client) => { + var subSystem = client.StorageSystems.List(Location).GetFirst(); + var storagePool = client.StoragePools.List(Location, subSystem.Name).GetFirst(); + var retrieved = client.StoragePools.Get(Location, subSystem.Name, storagePool.Name); + AssertStoragePoolsAreSame(storagePool, retrieved); + }); + } + + [Fact] + public void TestGetAllStoragePools() { + RunTest((client) => { + var subSystems = client.StorageSystems.List(Location); + Common.MapOverIPage(subSystems, client.StorageSystems.ListNext, (subSystem) => { + var StoragePools = client.StoragePools.List(Location, subSystem.Name); + Common.MapOverIPage(StoragePools, client.StoragePools.ListNext, (StoragePool) => { + var retrieved = client.StoragePools.Get(Location, subSystem.Name, StoragePool.Name); + AssertStoragePoolsAreSame(StoragePool, retrieved); + }); + }); + }); + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/StorageSystemTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/StorageSystemTests.cs new file mode 100644 index 000000000000..05011a02c2fb --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/StorageSystemTests.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Xunit; + +namespace Fabric.Tests +{ + + public class StorageSystemTests : FabricTestBase + { + + private void AssertStorageSystemsAreSame(StorageSystem expected, StorageSystem found) { + if (expected == null) + { + Assert.Null(found); + } + else + { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + Assert.Equal(expected.TotalCapacityGB, found.TotalCapacityGB); + } + } + + private void ValidateStorageSystem(StorageSystem instance) { + FabricCommon.ValidateResource(instance); + + Assert.NotNull(instance.TotalCapacityGB); + } + + + [Fact] + public void TestListStorageSystems() { + RunTest((client) => { + var subSystems = client.StorageSystems.List(Location); + Common.MapOverIPage(subSystems, client.StorageSystems.ListNext, ValidateStorageSystem); + Common.WriteIPagesToFile(subSystems, client.StorageSystems.ListNext, "ListStorageSystems.txt", ResourceName); + }); + } + + [Fact] + public void TestGetStorageSystem() { + RunTest((client) => { + var subSystem = client.StorageSystems.List(Location).GetFirst(); + var retrieved = client.StorageSystems.Get(Location, subSystem.Name); + AssertStorageSystemsAreSame(subSystem, retrieved); + }); + } + + [Fact] + public void TestGetAllStorageSystems() { + RunTest((client) => { + var subSystems = client.StorageSystems.List(Location); + Common.MapOverIPage(subSystems, client.StorageSystems.ListNext, (subSystem) => { + var retrieved = client.StorageSystems.Get(Location, subSystem.Name); + AssertStorageSystemsAreSame(subSystem, retrieved); + }); + }); + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/VolumeTests.cs b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/VolumeTests.cs new file mode 100644 index 000000000000..66f4ccd4f0e2 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin.Tests/src/VolumeTests.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.Fabric.Admin; +using Microsoft.AzureStack.Management.Fabric.Admin.Models; +using Xunit; + +namespace Fabric.Tests { + + public class VolumeTests : FabricTestBase { + + private void AssertVolumesAreSame(Volume expected, Volume found) { + if (expected == null) { + Assert.Null(found); + } else { + Assert.True(FabricCommon.ResourceAreSame(expected, found)); + + Assert.Equal(expected.FileSystem, found.FileSystem); + Assert.Equal(expected.RemainingSizeGB, found.RemainingSizeGB); + Assert.Equal(expected.SizeGB, found.SizeGB); + Assert.Equal(expected.VolumeLabel, found.VolumeLabel); + } + } + + private void ValidateVolume(Volume instance) { + FabricCommon.ValidateResource(instance); + + + Assert.NotNull(instance.FileSystem); + Assert.NotNull(instance.RemainingSizeGB); + Assert.NotNull(instance.SizeGB); + Assert.NotNull(instance.VolumeLabel); + } + + + [Fact] + public void TestListVolumes() { + RunTest((client) => { + var subSystems = client.StorageSystems.List(Location); + Common.MapOverIPage(subSystems, client.StorageSystems.ListNext, (subSystem) => { + var storagePools = client.StoragePools.List(Location, subSystem.Name); + Common.MapOverIPage(storagePools, client.StoragePools.ListNext, (storagePool) => { + var volumes = client.Volumes.List(Location, subSystem.Name, storagePool.Name); + Common.MapOverIPage(volumes, client.Volumes.ListNext, ValidateVolume); + Common.WriteIPagesToFile(volumes, client.Volumes.ListNext, "ListVolumes.txt", ResourceName); + }); + }); + }); + } + + [Fact] + public void TestGetVolume() { + RunTest((client) => { + var subSystem = client.StorageSystems.List(Location).GetFirst(); + var storagePool = client.StoragePools.List(Location, subSystem.Name).GetFirst(); + var volume = client.Volumes.List(Location, subSystem.Name, storagePool.Name).GetFirst(); + var retrieved = client.Volumes.Get(Location, subSystem.Name, storagePool.Name, volume.Name); + AssertVolumesAreSame(volume, retrieved); + }); + } + + [Fact] + public void TestGetAllVolumes() { + RunTest((client) => { + var subSystems = client.StorageSystems.List(Location); + Common.MapOverIPage(subSystems, client.StorageSystems.ListNext, (subSystem) => { + var storagePools = client.StoragePools.List(Location, subSystem.Name); + Common.MapOverIPage(storagePools, client.StoragePools.ListNext, (storagePool) => { + var volumes = client.Volumes.List(Location, subSystem.Name, storagePool.Name); + Common.MapOverIPage(volumes, client.Volumes.ListNext, (volume) => { + var retrieved = client.Volumes.Get(Location, subSystem.Name, storagePool.Name, volume.Name); + AssertVolumesAreSame(volume, retrieved); + }); + }); + }); + }); + } + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ComputeFabricOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ComputeFabricOperations.cs new file mode 100644 index 000000000000..3184ea695e77 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ComputeFabricOperations.cs @@ -0,0 +1,260 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ComputeFabricOperations operations. + /// + internal partial class ComputeFabricOperations : IServiceOperations, IComputeFabricOperations + { + /// + /// Initializes a new instance of the ComputeFabricOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ComputeFabricOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get the status of a compute fabric operation. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the provider. + /// + /// + /// Id of a compute fabric operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string provider, string computeOperationResult, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (provider == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provider"); + } + if (computeOperationResult == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "computeOperationResult"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("provider", provider); + tracingParameters.Add("computeOperationResult", computeOperationResult); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/{provider}/fabricLocations/{location}/computeOperationResults/{computeOperationResult}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{provider}", System.Uri.EscapeDataString(provider)); + _url = _url.Replace("{computeOperationResult}", System.Uri.EscapeDataString(computeOperationResult)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ComputeFabricOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ComputeFabricOperationsExtensions.cs new file mode 100644 index 000000000000..3ddc2de88923 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ComputeFabricOperationsExtensions.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ComputeFabricOperations. + /// + public static partial class ComputeFabricOperationsExtensions + { + /// + /// Get the status of a compute fabric operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the provider. + /// + /// + /// Id of a compute fabric operation. + /// + public static OperationStatus Get(this IComputeFabricOperations operations, string location, string provider, string computeOperationResult) + { + return operations.GetAsync(location, provider, computeOperationResult).GetAwaiter().GetResult(); + } + + /// + /// Get the status of a compute fabric operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the provider. + /// + /// + /// Id of a compute fabric operation. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IComputeFabricOperations operations, string location, string provider, string computeOperationResult, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, provider, computeOperationResult, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/EdgeGatewayPoolsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/EdgeGatewayPoolsOperations.cs new file mode 100644 index 000000000000..d2ac99631824 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/EdgeGatewayPoolsOperations.cs @@ -0,0 +1,624 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// EdgeGatewayPoolsOperations operations. + /// + internal partial class EdgeGatewayPoolsOperations : IServiceOperations, IEdgeGatewayPoolsOperations + { + /// + /// Initializes a new instance of the EdgeGatewayPoolsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal EdgeGatewayPoolsOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get an EdgeGatewayPool. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the edge gateway pool. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string edgeGatewayPool, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (edgeGatewayPool == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "edgeGatewayPool"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("edgeGatewayPool", edgeGatewayPool); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/edgeGatewayPools/{edgeGatewayPool}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{edgeGatewayPool}", System.Uri.EscapeDataString(edgeGatewayPool)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all edge gateway pools at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/edgeGatewayPools").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all edge gateway pools at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/EdgeGatewayPoolsOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/EdgeGatewayPoolsOperationsExtensions.cs new file mode 100644 index 000000000000..840d8a8845bd --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/EdgeGatewayPoolsOperationsExtensions.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for EdgeGatewayPoolsOperations. + /// + public static partial class EdgeGatewayPoolsOperationsExtensions + { + /// + /// Get an EdgeGatewayPool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the edge gateway pool. + /// + public static EdgeGatewayPool Get(this IEdgeGatewayPoolsOperations operations, string location, string edgeGatewayPool) + { + return operations.GetAsync(location, edgeGatewayPool).GetAwaiter().GetResult(); + } + + /// + /// Get an EdgeGatewayPool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the edge gateway pool. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IEdgeGatewayPoolsOperations operations, string location, string edgeGatewayPool, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, edgeGatewayPool, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all edge gateway pools at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IEdgeGatewayPoolsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IEdgeGatewayPoolsOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all edge gateway pools at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IEdgeGatewayPoolsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all edge gateway pools at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IEdgeGatewayPoolsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all edge gateway pools at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IEdgeGatewayPoolsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/EdgeGatewaysOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/EdgeGatewaysOperations.cs new file mode 100644 index 000000000000..dea82210a3b2 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/EdgeGatewaysOperations.cs @@ -0,0 +1,624 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// EdgeGatewaysOperations operations. + /// + internal partial class EdgeGatewaysOperations : IServiceOperations, IEdgeGatewaysOperations + { + /// + /// Initializes a new instance of the EdgeGatewaysOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal EdgeGatewaysOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get an edge gateway by name. + /// + /// + /// Location of the resource. + /// + /// + /// name of the edge gateway. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string edgeGateway, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (edgeGateway == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "edgeGateway"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("edgeGateway", edgeGateway); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/edgeGateways/{edgeGateway}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{edgeGateway}", System.Uri.EscapeDataString(edgeGateway)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all edge gateways at a certain location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/edgeGateways").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all edge gateways at a certain location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/EdgeGatewaysOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/EdgeGatewaysOperationsExtensions.cs new file mode 100644 index 000000000000..a7c9ffa0c75a --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/EdgeGatewaysOperationsExtensions.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for EdgeGatewaysOperations. + /// + public static partial class EdgeGatewaysOperationsExtensions + { + /// + /// Get an edge gateway by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// name of the edge gateway. + /// + public static EdgeGateway Get(this IEdgeGatewaysOperations operations, string location, string edgeGateway) + { + return operations.GetAsync(location, edgeGateway).GetAwaiter().GetResult(); + } + + /// + /// Get an edge gateway by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// name of the edge gateway. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IEdgeGatewaysOperations operations, string location, string edgeGateway, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, edgeGateway, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all edge gateways at a certain location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IEdgeGatewaysOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IEdgeGatewaysOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all edge gateways at a certain location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IEdgeGatewaysOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all edge gateways at a certain location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IEdgeGatewaysOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all edge gateways at a certain location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IEdgeGatewaysOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FabricAdminClient.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FabricAdminClient.cs new file mode 100644 index 000000000000..6de9bb04c4e5 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FabricAdminClient.cs @@ -0,0 +1,424 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + /// + /// Fabric Admin Client + /// + public partial class FabricAdminClient : ServiceClient, IFabricAdminClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// Subscription credentials which uniquely identify Microsoft Azure + /// subscription.The subscription ID forms part of the URI for every service + /// call. + /// + public string SubscriptionId { get; set; } + + /// + /// Client Api Version. + /// + public string ApiVersion { get; private set; } + + /// + /// Gets or sets the preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// Gets or sets the retry timeout in seconds for Long Running Operations. + /// Default value is 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// When set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IEdgeGatewaysOperations. + /// + public virtual IEdgeGatewaysOperations EdgeGateways { get; private set; } + + /// + /// Gets the IEdgeGatewayPoolsOperations. + /// + public virtual IEdgeGatewayPoolsOperations EdgeGatewayPools { get; private set; } + + /// + /// Gets the IFabricLocationsOperations. + /// + public virtual IFabricLocationsOperations FabricLocations { get; private set; } + + /// + /// Gets the IFileSharesOperations. + /// + public virtual IFileSharesOperations FileShares { get; private set; } + + /// + /// Gets the IInfraRolesOperations. + /// + public virtual IInfraRolesOperations InfraRoles { get; private set; } + + /// + /// Gets the IInfraRoleInstancesOperations. + /// + public virtual IInfraRoleInstancesOperations InfraRoleInstances { get; private set; } + + /// + /// Gets the IIpPoolsOperations. + /// + public virtual IIpPoolsOperations IpPools { get; private set; } + + /// + /// Gets the ILogicalNetworksOperations. + /// + public virtual ILogicalNetworksOperations LogicalNetworks { get; private set; } + + /// + /// Gets the IStoragePoolsOperations. + /// + public virtual IStoragePoolsOperations StoragePools { get; private set; } + + /// + /// Gets the IStorageSystemsOperations. + /// + public virtual IStorageSystemsOperations StorageSystems { get; private set; } + + /// + /// Gets the IVolumesOperations. + /// + public virtual IVolumesOperations Volumes { get; private set; } + + /// + /// Gets the ILogicalSubnetsOperations. + /// + public virtual ILogicalSubnetsOperations LogicalSubnets { get; private set; } + + /// + /// Gets the IMacAddressPoolsOperations. + /// + public virtual IMacAddressPoolsOperations MacAddressPools { get; private set; } + + /// + /// Gets the IComputeFabricOperations. + /// + public virtual IComputeFabricOperations ComputeFabricOperations { get; private set; } + + /// + /// Gets the INetworkFabricOperations. + /// + public virtual INetworkFabricOperations NetworkFabricOperations { get; private set; } + + /// + /// Gets the IScaleUnitsOperations. + /// + public virtual IScaleUnitsOperations ScaleUnits { get; private set; } + + /// + /// Gets the IScaleUnitNodesOperations. + /// + public virtual IScaleUnitNodesOperations ScaleUnitNodes { get; private set; } + + /// + /// Gets the ISlbMuxInstancesOperations. + /// + public virtual ISlbMuxInstancesOperations SlbMuxInstances { get; private set; } + + /// + /// Initializes a new instance of the FabricAdminClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected FabricAdminClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the FabricAdminClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected FabricAdminClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the FabricAdminClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected FabricAdminClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the FabricAdminClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected FabricAdminClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the FabricAdminClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public FabricAdminClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the FabricAdminClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public FabricAdminClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the FabricAdminClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public FabricAdminClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the FabricAdminClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public FabricAdminClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + EdgeGateways = new EdgeGatewaysOperations(this); + EdgeGatewayPools = new EdgeGatewayPoolsOperations(this); + FabricLocations = new FabricLocationsOperations(this); + FileShares = new FileSharesOperations(this); + InfraRoles = new InfraRolesOperations(this); + InfraRoleInstances = new InfraRoleInstancesOperations(this); + IpPools = new IpPoolsOperations(this); + LogicalNetworks = new LogicalNetworksOperations(this); + StoragePools = new StoragePoolsOperations(this); + StorageSystems = new StorageSystemsOperations(this); + Volumes = new VolumesOperations(this); + LogicalSubnets = new LogicalSubnetsOperations(this); + MacAddressPools = new MacAddressPoolsOperations(this); + ComputeFabricOperations = new ComputeFabricOperations(this); + NetworkFabricOperations = new NetworkFabricOperations(this); + ScaleUnits = new ScaleUnitsOperations(this); + ScaleUnitNodes = new ScaleUnitNodesOperations(this); + SlbMuxInstances = new SlbMuxInstancesOperations(this); + BaseUri = new System.Uri("https://adminmanagement.local.azurestack.external"); + ApiVersion = "2016-05-01"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FabricLocationsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FabricLocationsOperations.cs new file mode 100644 index 000000000000..f7f16535f82d --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FabricLocationsOperations.cs @@ -0,0 +1,624 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FabricLocationsOperations operations. + /// + internal partial class FabricLocationsOperations : IServiceOperations, IFabricLocationsOperations + { + /// + /// Initializes a new instance of the FabricLocationsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal FabricLocationsOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get a fabric location. + /// + /// + /// Location of the resource. + /// + /// + /// Fabric Location. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string fabricLocation, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (fabricLocation == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "fabricLocation"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("fabricLocation", fabricLocation); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{fabricLocation}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{fabricLocation}", System.Uri.EscapeDataString(fabricLocation)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all fabric locations. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all fabric locations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FabricLocationsOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FabricLocationsOperationsExtensions.cs new file mode 100644 index 000000000000..463630c0f401 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FabricLocationsOperationsExtensions.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for FabricLocationsOperations. + /// + public static partial class FabricLocationsOperationsExtensions + { + /// + /// Get a fabric location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Fabric Location. + /// + public static FabricLocation Get(this IFabricLocationsOperations operations, string location, string fabricLocation) + { + return operations.GetAsync(location, fabricLocation).GetAwaiter().GetResult(); + } + + /// + /// Get a fabric location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Fabric Location. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IFabricLocationsOperations operations, string location, string fabricLocation, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, fabricLocation, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all fabric locations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IFabricLocationsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IFabricLocationsOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all fabric locations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IFabricLocationsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all fabric locations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IFabricLocationsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all fabric locations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IFabricLocationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FileSharesOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FileSharesOperations.cs new file mode 100644 index 000000000000..bd969ac32dd6 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FileSharesOperations.cs @@ -0,0 +1,451 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FileSharesOperations operations. + /// + internal partial class FileSharesOperations : IServiceOperations, IFileSharesOperations + { + /// + /// Initializes a new instance of the FileSharesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal FileSharesOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get a fabric file share. + /// + /// + /// Location of the resource. + /// + /// + /// Fabric file share name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string fileShare, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (fileShare == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "fileShare"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("fileShare", fileShare); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/fileShares/{fileShare}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{fileShare}", System.Uri.EscapeDataString(fileShare)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all fabric file shares at a certain location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/fileShares").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FileSharesOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FileSharesOperationsExtensions.cs new file mode 100644 index 000000000000..8c2aff3a561f --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/FileSharesOperationsExtensions.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for FileSharesOperations. + /// + public static partial class FileSharesOperationsExtensions + { + /// + /// Get a fabric file share. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Fabric file share name. + /// + public static FileShare Get(this IFileSharesOperations operations, string location, string fileShare) + { + return operations.GetAsync(location, fileShare).GetAwaiter().GetResult(); + } + + /// + /// Get a fabric file share. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Fabric file share name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IFileSharesOperations operations, string location, string fileShare, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, fileShare, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all fabric file shares at a certain location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IEnumerable List(this IFileSharesOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IFileSharesOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all fabric file shares at a certain location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IFileSharesOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IComputeFabricOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IComputeFabricOperations.cs new file mode 100644 index 000000000000..3d1b6766f849 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IComputeFabricOperations.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ComputeFabricOperations operations. + /// + public partial interface IComputeFabricOperations + { + /// + /// Get the status of a compute fabric operation. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the provider. + /// + /// + /// Id of a compute fabric operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string provider, string computeOperationResult, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IEdgeGatewayPoolsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IEdgeGatewayPoolsOperations.cs new file mode 100644 index 000000000000..7f8060ec5355 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IEdgeGatewayPoolsOperations.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// EdgeGatewayPoolsOperations operations. + /// + public partial interface IEdgeGatewayPoolsOperations + { + /// + /// Get an EdgeGatewayPool. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the edge gateway pool. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string edgeGatewayPool, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all edge gateway pools at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all edge gateway pools at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IEdgeGatewaysOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IEdgeGatewaysOperations.cs new file mode 100644 index 000000000000..c0592a380cd0 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IEdgeGatewaysOperations.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// EdgeGatewaysOperations operations. + /// + public partial interface IEdgeGatewaysOperations + { + /// + /// Get an edge gateway by name. + /// + /// + /// Location of the resource. + /// + /// + /// name of the edge gateway. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string edgeGateway, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all edge gateways at a certain location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all edge gateways at a certain location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IFabricAdminClient.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IFabricAdminClient.cs new file mode 100644 index 000000000000..68db519bfd48 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IFabricAdminClient.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// Fabric Admin Client + /// + public partial interface IFabricAdminClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// Subscription credentials which uniquely identify Microsoft Azure + /// subscription.The subscription ID forms part of the URI for every + /// service call. + /// + string SubscriptionId { get; set; } + + /// + /// Client Api Version. + /// + string ApiVersion { get; } + + /// + /// Gets or sets the preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// Gets or sets the retry timeout in seconds for Long Running + /// Operations. Default value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// When set to true a unique x-ms-client-request-id value is generated + /// and included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IEdgeGatewaysOperations. + /// + IEdgeGatewaysOperations EdgeGateways { get; } + + /// + /// Gets the IEdgeGatewayPoolsOperations. + /// + IEdgeGatewayPoolsOperations EdgeGatewayPools { get; } + + /// + /// Gets the IFabricLocationsOperations. + /// + IFabricLocationsOperations FabricLocations { get; } + + /// + /// Gets the IFileSharesOperations. + /// + IFileSharesOperations FileShares { get; } + + /// + /// Gets the IInfraRolesOperations. + /// + IInfraRolesOperations InfraRoles { get; } + + /// + /// Gets the IInfraRoleInstancesOperations. + /// + IInfraRoleInstancesOperations InfraRoleInstances { get; } + + /// + /// Gets the IIpPoolsOperations. + /// + IIpPoolsOperations IpPools { get; } + + /// + /// Gets the ILogicalNetworksOperations. + /// + ILogicalNetworksOperations LogicalNetworks { get; } + + /// + /// Gets the IStoragePoolsOperations. + /// + IStoragePoolsOperations StoragePools { get; } + + /// + /// Gets the IStorageSystemsOperations. + /// + IStorageSystemsOperations StorageSystems { get; } + + /// + /// Gets the IVolumesOperations. + /// + IVolumesOperations Volumes { get; } + + /// + /// Gets the ILogicalSubnetsOperations. + /// + ILogicalSubnetsOperations LogicalSubnets { get; } + + /// + /// Gets the IMacAddressPoolsOperations. + /// + IMacAddressPoolsOperations MacAddressPools { get; } + + /// + /// Gets the IComputeFabricOperations. + /// + IComputeFabricOperations ComputeFabricOperations { get; } + + /// + /// Gets the INetworkFabricOperations. + /// + INetworkFabricOperations NetworkFabricOperations { get; } + + /// + /// Gets the IScaleUnitsOperations. + /// + IScaleUnitsOperations ScaleUnits { get; } + + /// + /// Gets the IScaleUnitNodesOperations. + /// + IScaleUnitNodesOperations ScaleUnitNodes { get; } + + /// + /// Gets the ISlbMuxInstancesOperations. + /// + ISlbMuxInstancesOperations SlbMuxInstances { get; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IFabricLocationsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IFabricLocationsOperations.cs new file mode 100644 index 000000000000..06c9b37efbc8 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IFabricLocationsOperations.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FabricLocationsOperations operations. + /// + public partial interface IFabricLocationsOperations + { + /// + /// Get a fabric location. + /// + /// + /// Location of the resource. + /// + /// + /// Fabric Location. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string fabricLocation, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all fabric locations. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all fabric locations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IFileSharesOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IFileSharesOperations.cs new file mode 100644 index 000000000000..43fc6a2fbff5 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IFileSharesOperations.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FileSharesOperations operations. + /// + public partial interface IFileSharesOperations + { + /// + /// Get a fabric file share. + /// + /// + /// Location of the resource. + /// + /// + /// Fabric file share name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string fileShare, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all fabric file shares at a certain location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IInfraRoleInstancesOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IInfraRoleInstancesOperations.cs new file mode 100644 index 000000000000..5b16ecf7785b --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IInfraRoleInstancesOperations.cs @@ -0,0 +1,301 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// InfraRoleInstancesOperations operations. + /// + public partial interface IInfraRoleInstancesOperations + { + /// + /// Power off an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> PowerOffWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Power on an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> PowerOnWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Shut down an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ShutdownWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Reboot an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> RebootWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all infra role instances at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Power off an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginPowerOffWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Power on an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginPowerOnWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Shut down an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginShutdownWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Reboot an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginRebootWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all infra role instances at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IInfraRolesOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IInfraRolesOperations.cs new file mode 100644 index 000000000000..2e73556cf74d --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IInfraRolesOperations.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// InfraRolesOperations operations. + /// + public partial interface IInfraRolesOperations + { + /// + /// Create new infra role instances. + /// + /// + /// Location of the resource. + /// + /// + /// Infra role name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ScaleUpWithHttpMessagesAsync(string location, string infraRole, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get an infra role description. + /// + /// + /// Location of the resource. + /// + /// + /// Infra role name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string infraRole, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all infra roles at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create new infra role instances. + /// + /// + /// Location of the resource. + /// + /// + /// Infra role name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginScaleUpWithHttpMessagesAsync(string location, string infraRole, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all infra roles at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IIpPoolsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IIpPoolsOperations.cs new file mode 100644 index 000000000000..103beec99364 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IIpPoolsOperations.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IpPoolsOperations operations. + /// + public partial interface IIpPoolsOperations + { + /// + /// Get an ip pool. + /// + /// + /// Location of the resource. + /// + /// + /// Ip pool name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string ipPool, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create an ip pool. + /// + /// + /// Location of the resource. + /// + /// + /// Ip pool name. + /// + /// + /// Ip pool object to send. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateWithHttpMessagesAsync(string location, string ipPool, IpPool pool, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all ip pools at a certain location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all ip pools at a certain location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ILogicalNetworksOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ILogicalNetworksOperations.cs new file mode 100644 index 000000000000..a8c6ec90d779 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ILogicalNetworksOperations.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// LogicalNetworksOperations operations. + /// + public partial interface ILogicalNetworksOperations + { + /// + /// Get a logical network. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the logical network. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string logicalNetwork, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all logical networks at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all logical networks at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ILogicalSubnetsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ILogicalSubnetsOperations.cs new file mode 100644 index 000000000000..c363c1d508bb --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ILogicalSubnetsOperations.cs @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// LogicalSubnetsOperations operations. + /// + public partial interface ILogicalSubnetsOperations + { + /// + /// Get a list of all volumes at a location. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the logical network. + /// + /// + /// Name of the logical subnet. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string logicalNetwork, string logicalSubnet, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all logical subnets. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the logical network. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, string logicalNetwork, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all logical subnets. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IMacAddressPoolsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IMacAddressPoolsOperations.cs new file mode 100644 index 000000000000..cc69fe703bb7 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IMacAddressPoolsOperations.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// MacAddressPoolsOperations operations. + /// + public partial interface IMacAddressPoolsOperations + { + /// + /// Get a MAC address pool. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the MAC address pool. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string macAddressPool, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all MAC address pools at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all MAC address pools at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/INetworkFabricOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/INetworkFabricOperations.cs new file mode 100644 index 000000000000..b324dd6e5a9d --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/INetworkFabricOperations.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// NetworkFabricOperations operations. + /// + public partial interface INetworkFabricOperations + { + /// + /// Get the status of a network fabric operation. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the provider. + /// + /// + /// Id of a network fabric operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string provider, string networkOperationResult, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IScaleUnitNodesOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IScaleUnitNodesOperations.cs new file mode 100644 index 000000000000..4b5bd5dd08a4 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IScaleUnitNodesOperations.cs @@ -0,0 +1,301 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ScaleUnitNodesOperations operations. + /// + public partial interface IScaleUnitNodesOperations + { + /// + /// Power off a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> PowerOffWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Power on a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> PowerOnWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Start maintenance mode for a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> StartMaintenanceModeWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Stop maintenance mode for a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> StopMaintenanceModeWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a specific scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all scale unit nodes in a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Power off a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginPowerOffWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Power on a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginPowerOnWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Start maintenance mode for a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginStartMaintenanceModeWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Stop maintenance mode for a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginStopMaintenanceModeWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all scale unit nodes in a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IScaleUnitsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IScaleUnitsOperations.cs new file mode 100644 index 000000000000..133a48cdace2 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IScaleUnitsOperations.cs @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ScaleUnitsOperations operations. + /// + public partial interface IScaleUnitsOperations + { + /// + /// Scales out the cluster. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale units. + /// + /// + /// Descripion of the server to be added. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ScaleOutWithHttpMessagesAsync(string location, string scaleUnit, BareMetalNodeDescription serversToBeAdded, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a scale unit. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale units. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string scaleUnit, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all scale units at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Scales out the cluster. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale units. + /// + /// + /// Descripion of the server to be added. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginScaleOutWithHttpMessagesAsync(string location, string scaleUnit, BareMetalNodeDescription serversToBeAdded, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all scale units at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ISlbMuxInstancesOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ISlbMuxInstancesOperations.cs new file mode 100644 index 000000000000..7a8f6c5dba71 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ISlbMuxInstancesOperations.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SlbMuxInstancesOperations operations. + /// + public partial interface ISlbMuxInstancesOperations + { + /// + /// Get a software load balancer multiplexer instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of a SLB Mux instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string slbMuxInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all software load balancer instances at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all software load balancer instances at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IStoragePoolsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IStoragePoolsOperations.cs new file mode 100644 index 000000000000..1d266328f810 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IStoragePoolsOperations.cs @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// StoragePoolsOperations operations. + /// + public partial interface IStoragePoolsOperations + { + /// + /// Get a storage pool. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// Storage pool name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string storageSubSystem, string storagePool, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all storage pools for a location. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, string storageSubSystem, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all storage pools for a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IStorageSystemsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IStorageSystemsOperations.cs new file mode 100644 index 000000000000..b8cdb469ae1c --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IStorageSystemsOperations.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// StorageSystemsOperations operations. + /// + public partial interface IStorageSystemsOperations + { + /// + /// Get a storage subsystem. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string storageSubSystem, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all storage subsystems for a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all storage subsystems for a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IVolumesOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IVolumesOperations.cs new file mode 100644 index 000000000000..abe86d77e011 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IVolumesOperations.cs @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// VolumesOperations operations. + /// + public partial interface IVolumesOperations + { + /// + /// Get a volume. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// Storage pool name. + /// + /// + /// Name of the volume. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string storageSubSystem, string storagePool, string volume, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all volumes at a location. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// Storage pool name. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, string storageSubSystem, string storagePool, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all volumes at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/InfraRoleInstancesOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/InfraRoleInstancesOperations.cs new file mode 100644 index 000000000000..b095ec70eab7 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/InfraRoleInstancesOperations.cs @@ -0,0 +1,1640 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// InfraRoleInstancesOperations operations. + /// + internal partial class InfraRoleInstancesOperations : IServiceOperations, IInfraRoleInstancesOperations + { + /// + /// Initializes a new instance of the InfraRoleInstancesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal InfraRoleInstancesOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Power off an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> PowerOffWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginPowerOffWithHttpMessagesAsync(location, infraRoleInstance, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Power on an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> PowerOnWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginPowerOnWithHttpMessagesAsync(location, infraRoleInstance, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Shut down an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ShutdownWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginShutdownWithHttpMessagesAsync(location, infraRoleInstance, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Reboot an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> RebootWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRebootWithHttpMessagesAsync(location, infraRoleInstance, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (infraRoleInstance == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "infraRoleInstance"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("infraRoleInstance", infraRoleInstance); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/infraRoleInstances/{infraRoleInstance}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{infraRoleInstance}", System.Uri.EscapeDataString(infraRoleInstance)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all infra role instances at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/infraRoleInstances").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Power off an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginPowerOffWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (infraRoleInstance == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "infraRoleInstance"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("infraRoleInstance", infraRoleInstance); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginPowerOff", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/infraRoleInstances/{infraRoleInstance}/PowerOff").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{infraRoleInstance}", System.Uri.EscapeDataString(infraRoleInstance)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 500) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 500) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Power on an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginPowerOnWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (infraRoleInstance == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "infraRoleInstance"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("infraRoleInstance", infraRoleInstance); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginPowerOn", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/infraRoleInstances/{infraRoleInstance}/PowerOn").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{infraRoleInstance}", System.Uri.EscapeDataString(infraRoleInstance)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 500) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 500) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Shut down an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginShutdownWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (infraRoleInstance == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "infraRoleInstance"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("infraRoleInstance", infraRoleInstance); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginShutdown", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/infraRoleInstances/{infraRoleInstance}/Shutdown").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{infraRoleInstance}", System.Uri.EscapeDataString(infraRoleInstance)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 500) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 500) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Reboot an infra role instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginRebootWithHttpMessagesAsync(string location, string infraRoleInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (infraRoleInstance == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "infraRoleInstance"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("infraRoleInstance", infraRoleInstance); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginReboot", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/infraRoleInstances/{infraRoleInstance}/Reboot").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{infraRoleInstance}", System.Uri.EscapeDataString(infraRoleInstance)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 500) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 500) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all infra role instances at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/InfraRoleInstancesOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/InfraRoleInstancesOperationsExtensions.cs new file mode 100644 index 000000000000..6dabb0abf85c --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/InfraRoleInstancesOperationsExtensions.cs @@ -0,0 +1,461 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for InfraRoleInstancesOperations. + /// + public static partial class InfraRoleInstancesOperationsExtensions + { + /// + /// Power off an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + public static ProvisioningState PowerOff(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance) + { + return operations.PowerOffAsync(location, infraRoleInstance).GetAwaiter().GetResult(); + } + + /// + /// Power off an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The cancellation token. + /// + public static async Task PowerOffAsync(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PowerOffWithHttpMessagesAsync(location, infraRoleInstance, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Power on an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + public static ProvisioningState PowerOn(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance) + { + return operations.PowerOnAsync(location, infraRoleInstance).GetAwaiter().GetResult(); + } + + /// + /// Power on an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The cancellation token. + /// + public static async Task PowerOnAsync(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PowerOnWithHttpMessagesAsync(location, infraRoleInstance, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Shut down an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + public static ProvisioningState Shutdown(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance) + { + return operations.ShutdownAsync(location, infraRoleInstance).GetAwaiter().GetResult(); + } + + /// + /// Shut down an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The cancellation token. + /// + public static async Task ShutdownAsync(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ShutdownWithHttpMessagesAsync(location, infraRoleInstance, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Reboot an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + public static ProvisioningState Reboot(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance) + { + return operations.RebootAsync(location, infraRoleInstance).GetAwaiter().GetResult(); + } + + /// + /// Reboot an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The cancellation token. + /// + public static async Task RebootAsync(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.RebootWithHttpMessagesAsync(location, infraRoleInstance, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + public static InfraRoleInstance Get(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance) + { + return operations.GetAsync(location, infraRoleInstance).GetAwaiter().GetResult(); + } + + /// + /// Get an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, infraRoleInstance, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all infra role instances at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IInfraRoleInstancesOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IInfraRoleInstancesOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all infra role instances at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IInfraRoleInstancesOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Power off an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + public static ProvisioningState BeginPowerOff(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance) + { + return operations.BeginPowerOffAsync(location, infraRoleInstance).GetAwaiter().GetResult(); + } + + /// + /// Power off an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The cancellation token. + /// + public static async Task BeginPowerOffAsync(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginPowerOffWithHttpMessagesAsync(location, infraRoleInstance, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Power on an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + public static ProvisioningState BeginPowerOn(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance) + { + return operations.BeginPowerOnAsync(location, infraRoleInstance).GetAwaiter().GetResult(); + } + + /// + /// Power on an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The cancellation token. + /// + public static async Task BeginPowerOnAsync(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginPowerOnWithHttpMessagesAsync(location, infraRoleInstance, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Shut down an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + public static ProvisioningState BeginShutdown(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance) + { + return operations.BeginShutdownAsync(location, infraRoleInstance).GetAwaiter().GetResult(); + } + + /// + /// Shut down an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The cancellation token. + /// + public static async Task BeginShutdownAsync(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginShutdownWithHttpMessagesAsync(location, infraRoleInstance, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Reboot an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + public static ProvisioningState BeginReboot(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance) + { + return operations.BeginRebootAsync(location, infraRoleInstance).GetAwaiter().GetResult(); + } + + /// + /// Reboot an infra role instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of an infra role instance. + /// + /// + /// The cancellation token. + /// + public static async Task BeginRebootAsync(this IInfraRoleInstancesOperations operations, string location, string infraRoleInstance, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginRebootWithHttpMessagesAsync(location, infraRoleInstance, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all infra role instances at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IInfraRoleInstancesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all infra role instances at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IInfraRoleInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/InfraRolesOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/InfraRolesOperations.cs new file mode 100644 index 000000000000..71e59a6fff7c --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/InfraRolesOperations.cs @@ -0,0 +1,878 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// InfraRolesOperations operations. + /// + internal partial class InfraRolesOperations : IServiceOperations, IInfraRolesOperations + { + /// + /// Initializes a new instance of the InfraRolesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal InfraRolesOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Create new infra role instances. + /// + /// + /// Location of the resource. + /// + /// + /// Infra role name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ScaleUpWithHttpMessagesAsync(string location, string infraRole, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginScaleUpWithHttpMessagesAsync(location, infraRole, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get an infra role description. + /// + /// + /// Location of the resource. + /// + /// + /// Infra role name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string infraRole, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (infraRole == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "infraRole"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("infraRole", infraRole); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/infraRoles/{infraRole}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{infraRole}", System.Uri.EscapeDataString(infraRole)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all infra roles at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/infraRoles").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create new infra role instances. + /// + /// + /// Location of the resource. + /// + /// + /// Infra role name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginScaleUpWithHttpMessagesAsync(string location, string infraRole, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (infraRole == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "infraRole"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("infraRole", infraRole); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginScaleUp", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/infraRoles/{infraRole}/ScaleUp").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{infraRole}", System.Uri.EscapeDataString(infraRole)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 500) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 500) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all infra roles at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/InfraRolesOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/InfraRolesOperationsExtensions.cs new file mode 100644 index 000000000000..038ced10aef2 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/InfraRolesOperationsExtensions.cs @@ -0,0 +1,221 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for InfraRolesOperations. + /// + public static partial class InfraRolesOperationsExtensions + { + /// + /// Create new infra role instances. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Infra role name. + /// + public static ProvisioningState ScaleUp(this IInfraRolesOperations operations, string location, string infraRole) + { + return operations.ScaleUpAsync(location, infraRole).GetAwaiter().GetResult(); + } + + /// + /// Create new infra role instances. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Infra role name. + /// + /// + /// The cancellation token. + /// + public static async Task ScaleUpAsync(this IInfraRolesOperations operations, string location, string infraRole, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ScaleUpWithHttpMessagesAsync(location, infraRole, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get an infra role description. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Infra role name. + /// + public static InfraRole Get(this IInfraRolesOperations operations, string location, string infraRole) + { + return operations.GetAsync(location, infraRole).GetAwaiter().GetResult(); + } + + /// + /// Get an infra role description. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Infra role name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IInfraRolesOperations operations, string location, string infraRole, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, infraRole, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all infra roles at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IInfraRolesOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IInfraRolesOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all infra roles at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IInfraRolesOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create new infra role instances. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Infra role name. + /// + public static ProvisioningState BeginScaleUp(this IInfraRolesOperations operations, string location, string infraRole) + { + return operations.BeginScaleUpAsync(location, infraRole).GetAwaiter().GetResult(); + } + + /// + /// Create new infra role instances. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Infra role name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginScaleUpAsync(this IInfraRolesOperations operations, string location, string infraRole, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginScaleUpWithHttpMessagesAsync(location, infraRole, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all infra roles at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IInfraRolesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all infra roles at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IInfraRolesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IpPoolsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IpPoolsOperations.cs new file mode 100644 index 000000000000..9910d076c328 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IpPoolsOperations.cs @@ -0,0 +1,834 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IpPoolsOperations operations. + /// + internal partial class IpPoolsOperations : IServiceOperations, IIpPoolsOperations + { + /// + /// Initializes a new instance of the IpPoolsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal IpPoolsOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get an ip pool. + /// + /// + /// Location of the resource. + /// + /// + /// Ip pool name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string ipPool, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (ipPool == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ipPool"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("ipPool", ipPool); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/ipPools/{ipPool}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{ipPool}", System.Uri.EscapeDataString(ipPool)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create an ip pool. + /// + /// + /// Location of the resource. + /// + /// + /// Ip pool name. + /// + /// + /// Ip pool object to send. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateWithHttpMessagesAsync(string location, string ipPool, IpPool pool, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (ipPool == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ipPool"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (pool == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "pool"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("ipPool", ipPool); + tracingParameters.Add("pool", pool); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/ipPools/{ipPool}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{ipPool}", System.Uri.EscapeDataString(ipPool)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(pool != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(pool, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all ip pools at a certain location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/ipPools").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all ip pools at a certain location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IpPoolsOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IpPoolsOperationsExtensions.cs new file mode 100644 index 000000000000..419bb5c2e4ff --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/IpPoolsOperationsExtensions.cs @@ -0,0 +1,187 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for IpPoolsOperations. + /// + public static partial class IpPoolsOperationsExtensions + { + /// + /// Get an ip pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Ip pool name. + /// + public static IpPool Get(this IIpPoolsOperations operations, string location, string ipPool) + { + return operations.GetAsync(location, ipPool).GetAwaiter().GetResult(); + } + + /// + /// Get an ip pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Ip pool name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IIpPoolsOperations operations, string location, string ipPool, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, ipPool, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create an ip pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Ip pool name. + /// + /// + /// Ip pool object to send. + /// + public static IpPool Create(this IIpPoolsOperations operations, string location, string ipPool, IpPool pool) + { + return operations.CreateAsync(location, ipPool, pool).GetAwaiter().GetResult(); + } + + /// + /// Create an ip pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Ip pool name. + /// + /// + /// Ip pool object to send. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IIpPoolsOperations operations, string location, string ipPool, IpPool pool, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(location, ipPool, pool, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all ip pools at a certain location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IIpPoolsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IIpPoolsOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all ip pools at a certain location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IIpPoolsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all ip pools at a certain location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IIpPoolsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all ip pools at a certain location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IIpPoolsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/LogicalNetworksOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/LogicalNetworksOperations.cs new file mode 100644 index 000000000000..46f4dc2cb67d --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/LogicalNetworksOperations.cs @@ -0,0 +1,624 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// LogicalNetworksOperations operations. + /// + internal partial class LogicalNetworksOperations : IServiceOperations, ILogicalNetworksOperations + { + /// + /// Initializes a new instance of the LogicalNetworksOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal LogicalNetworksOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get a logical network. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the logical network. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string logicalNetwork, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (logicalNetwork == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "logicalNetwork"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("logicalNetwork", logicalNetwork); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/logicalNetworks/{logicalNetwork}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{logicalNetwork}", System.Uri.EscapeDataString(logicalNetwork)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all logical networks at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/logicalNetworks").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all logical networks at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/LogicalNetworksOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/LogicalNetworksOperationsExtensions.cs new file mode 100644 index 000000000000..7038533e984a --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/LogicalNetworksOperationsExtensions.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for LogicalNetworksOperations. + /// + public static partial class LogicalNetworksOperationsExtensions + { + /// + /// Get a logical network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the logical network. + /// + public static LogicalNetwork Get(this ILogicalNetworksOperations operations, string location, string logicalNetwork) + { + return operations.GetAsync(location, logicalNetwork).GetAwaiter().GetResult(); + } + + /// + /// Get a logical network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the logical network. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ILogicalNetworksOperations operations, string location, string logicalNetwork, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, logicalNetwork, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all logical networks at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this ILogicalNetworksOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((ILogicalNetworksOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all logical networks at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this ILogicalNetworksOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all logical networks at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this ILogicalNetworksOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all logical networks at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this ILogicalNetworksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/LogicalSubnetsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/LogicalSubnetsOperations.cs new file mode 100644 index 000000000000..8a5a3a10a3a6 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/LogicalSubnetsOperations.cs @@ -0,0 +1,642 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// LogicalSubnetsOperations operations. + /// + internal partial class LogicalSubnetsOperations : IServiceOperations, ILogicalSubnetsOperations + { + /// + /// Initializes a new instance of the LogicalSubnetsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal LogicalSubnetsOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get a list of all volumes at a location. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the logical network. + /// + /// + /// Name of the logical subnet. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string logicalNetwork, string logicalSubnet, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (logicalNetwork == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "logicalNetwork"); + } + if (logicalSubnet == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "logicalSubnet"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("logicalNetwork", logicalNetwork); + tracingParameters.Add("logicalSubnet", logicalSubnet); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/logicalNetworks/{logicalNetwork}/logicalSubnets/{logicalSubnet}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{logicalNetwork}", System.Uri.EscapeDataString(logicalNetwork)); + _url = _url.Replace("{logicalSubnet}", System.Uri.EscapeDataString(logicalSubnet)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all logical subnets. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the logical network. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, string logicalNetwork, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (logicalNetwork == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "logicalNetwork"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("logicalNetwork", logicalNetwork); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/logicalNetworks/{logicalNetwork}/logicalSubnets").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{logicalNetwork}", System.Uri.EscapeDataString(logicalNetwork)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all logical subnets. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/LogicalSubnetsOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/LogicalSubnetsOperationsExtensions.cs new file mode 100644 index 000000000000..e3430110a226 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/LogicalSubnetsOperationsExtensions.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for LogicalSubnetsOperations. + /// + public static partial class LogicalSubnetsOperationsExtensions + { + /// + /// Get a list of all volumes at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the logical network. + /// + /// + /// Name of the logical subnet. + /// + public static LogicalSubnet Get(this ILogicalSubnetsOperations operations, string location, string logicalNetwork, string logicalSubnet) + { + return operations.GetAsync(location, logicalNetwork, logicalSubnet).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all volumes at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the logical network. + /// + /// + /// Name of the logical subnet. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ILogicalSubnetsOperations operations, string location, string logicalNetwork, string logicalSubnet, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, logicalNetwork, logicalSubnet, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all logical subnets. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the logical network. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this ILogicalSubnetsOperations operations, string location, string logicalNetwork, ODataQuery odataQuery = default(ODataQuery)) + { + return ((ILogicalSubnetsOperations)operations).ListAsync(location, logicalNetwork, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all logical subnets. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the logical network. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this ILogicalSubnetsOperations operations, string location, string logicalNetwork, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, logicalNetwork, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all logical subnets. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this ILogicalSubnetsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all logical subnets. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this ILogicalSubnetsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/MacAddressPoolsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/MacAddressPoolsOperations.cs new file mode 100644 index 000000000000..e61240efd2de --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/MacAddressPoolsOperations.cs @@ -0,0 +1,624 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// MacAddressPoolsOperations operations. + /// + internal partial class MacAddressPoolsOperations : IServiceOperations, IMacAddressPoolsOperations + { + /// + /// Initializes a new instance of the MacAddressPoolsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal MacAddressPoolsOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get a MAC address pool. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the MAC address pool. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string macAddressPool, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (macAddressPool == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "macAddressPool"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("macAddressPool", macAddressPool); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/macAddressPools/{macAddressPool}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{macAddressPool}", System.Uri.EscapeDataString(macAddressPool)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all MAC address pools at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/macAddressPools").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all MAC address pools at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/MacAddressPoolsOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/MacAddressPoolsOperationsExtensions.cs new file mode 100644 index 000000000000..dae98be58d4b --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/MacAddressPoolsOperationsExtensions.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for MacAddressPoolsOperations. + /// + public static partial class MacAddressPoolsOperationsExtensions + { + /// + /// Get a MAC address pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the MAC address pool. + /// + public static MacAddressPool Get(this IMacAddressPoolsOperations operations, string location, string macAddressPool) + { + return operations.GetAsync(location, macAddressPool).GetAwaiter().GetResult(); + } + + /// + /// Get a MAC address pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the MAC address pool. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IMacAddressPoolsOperations operations, string location, string macAddressPool, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, macAddressPool, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all MAC address pools at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IMacAddressPoolsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IMacAddressPoolsOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all MAC address pools at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IMacAddressPoolsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all MAC address pools at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IMacAddressPoolsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all MAC address pools at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IMacAddressPoolsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/BareMetalNodeDescription.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/BareMetalNodeDescription.cs new file mode 100644 index 000000000000..7cedd7e56212 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/BareMetalNodeDescription.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The description of a bare metal node used for ScaleOut operation on a + /// cluster. + /// + public partial class BareMetalNodeDescription + { + /// + /// Initializes a new instance of the BareMetalNodeDescription class. + /// + public BareMetalNodeDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BareMetalNodeDescription class. + /// + /// Bmc address of the physical + /// machine. + /// Vendor of the physical machine. + /// Model of the physical machine. + /// Serial number of the physical + /// machine. + /// Bios version of the physical + /// machine. + /// Name of the computer. + /// Name of the cluster. + /// Mac address of the bare metal + /// node. + public BareMetalNodeDescription(string bmcAddress = default(string), string vendor = default(string), string model = default(string), string serialNumber = default(string), string biosVersion = default(string), string computerName = default(string), string id = default(string), string macAddress = default(string)) + { + BmcAddress = bmcAddress; + Vendor = vendor; + Model = model; + SerialNumber = serialNumber; + BiosVersion = biosVersion; + ComputerName = computerName; + Id = id; + MacAddress = macAddress; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets bmc address of the physical machine. + /// + [JsonProperty(PropertyName = "bmcAddress")] + public string BmcAddress { get; set; } + + /// + /// Gets or sets vendor of the physical machine. + /// + [JsonProperty(PropertyName = "vendor")] + public string Vendor { get; set; } + + /// + /// Gets or sets model of the physical machine. + /// + [JsonProperty(PropertyName = "model")] + public string Model { get; set; } + + /// + /// Gets or sets serial number of the physical machine. + /// + [JsonProperty(PropertyName = "serialNumber")] + public string SerialNumber { get; set; } + + /// + /// Gets or sets bios version of the physical machine. + /// + [JsonProperty(PropertyName = "biosVersion")] + public string BiosVersion { get; set; } + + /// + /// Gets or sets name of the computer. + /// + [JsonProperty(PropertyName = "computerName")] + public string ComputerName { get; set; } + + /// + /// Gets or sets name of the cluster. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets mac address of the bare metal node. + /// + [JsonProperty(PropertyName = "macAddress")] + public string MacAddress { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/EdgeGateway.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/EdgeGateway.cs new file mode 100644 index 000000000000..e5c00f62dfc9 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/EdgeGateway.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// This resource represents a gateway, which provides the configuration + /// needed to provide gateway services to virtual networks. + /// + [Rest.Serialization.JsonTransformation] + public partial class EdgeGateway : Resource + { + /// + /// Initializes a new instance of the EdgeGateway class. + /// + public EdgeGateway() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EdgeGateway class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// The current state of the edge gateway. + /// The total network capacity. + /// The available network + /// capacity. + /// The current number of + /// connections. + public EdgeGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string state = default(string), long? totalCapacity = default(long?), long? availableCapacity = default(long?), int? numberOfConnections = default(int?)) + : base(id, name, type, location, tags) + { + State = state; + TotalCapacity = totalCapacity; + AvailableCapacity = availableCapacity; + NumberOfConnections = numberOfConnections; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the current state of the edge gateway. + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; set; } + + /// + /// Gets or sets the total network capacity. + /// + [JsonProperty(PropertyName = "properties.totalCapacity")] + public long? TotalCapacity { get; set; } + + /// + /// Gets or sets the available network capacity. + /// + [JsonProperty(PropertyName = "properties.availableCapacity")] + public long? AvailableCapacity { get; set; } + + /// + /// Gets or sets the current number of connections. + /// + [JsonProperty(PropertyName = "properties.numberOfConnections")] + public int? NumberOfConnections { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/EdgeGatewayPool.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/EdgeGatewayPool.cs new file mode 100644 index 000000000000..91d0a085a573 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/EdgeGatewayPool.cs @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// This resource represents an edge gateway pool, which contains an array + /// of gateways. + /// + [Rest.Serialization.JsonTransformation] + public partial class EdgeGatewayPool : Resource + { + /// + /// Initializes a new instance of the EdgeGatewayPool class. + /// + public EdgeGatewayPool() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EdgeGatewayPool class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// The gateway type (S2sIPsec, S2sGre, + /// etc). + /// The number of gateways in the + /// pool. + /// The number of redundant + /// gateways. + /// Gateway capacity in + /// kilobits per second. + /// The public IP address. + /// The GRE VIP subnet. + /// List of the edge gateways in this + /// pool. + public EdgeGatewayPool(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string gatewayType = default(string), int? numberOfGateways = default(int?), long? redundantGatewayCount = default(long?), int? gatewayCapacityKiloBitsPerSecond = default(int?), string publicIpAddress = default(string), string greVipSubnet = default(string), IList edgeGateways = default(IList)) + : base(id, name, type, location, tags) + { + GatewayType = gatewayType; + NumberOfGateways = numberOfGateways; + RedundantGatewayCount = redundantGatewayCount; + GatewayCapacityKiloBitsPerSecond = gatewayCapacityKiloBitsPerSecond; + PublicIpAddress = publicIpAddress; + GreVipSubnet = greVipSubnet; + EdgeGateways = edgeGateways; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the gateway type (S2sIPsec, S2sGre, etc). + /// + [JsonProperty(PropertyName = "properties.gatewayType")] + public string GatewayType { get; set; } + + /// + /// Gets or sets the number of gateways in the pool. + /// + [JsonProperty(PropertyName = "properties.numberOfGateways")] + public int? NumberOfGateways { get; set; } + + /// + /// Gets or sets the number of redundant gateways. + /// + [JsonProperty(PropertyName = "properties.redundantGatewayCount")] + public long? RedundantGatewayCount { get; set; } + + /// + /// Gets or sets gateway capacity in kilobits per second. + /// + [JsonProperty(PropertyName = "properties.gatewayCapacityKiloBitsPerSecond")] + public int? GatewayCapacityKiloBitsPerSecond { get; set; } + + /// + /// Gets or sets the public IP address. + /// + [JsonProperty(PropertyName = "properties.publicIpAddress")] + public string PublicIpAddress { get; set; } + + /// + /// Gets or sets the GRE VIP subnet. + /// + [JsonProperty(PropertyName = "properties.greVipSubnet")] + public string GreVipSubnet { get; set; } + + /// + /// Gets or sets list of the edge gateways in this pool. + /// + [JsonProperty(PropertyName = "properties.edgeGateways")] + public IList EdgeGateways { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/FabricLocation.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/FabricLocation.cs new file mode 100644 index 000000000000..871b8fbdd2dd --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/FabricLocation.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Place holder for fabric location. + /// + public partial class FabricLocation : Resource + { + /// + /// Initializes a new instance of the FabricLocation class. + /// + public FabricLocation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FabricLocation class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + public FabricLocation(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary)) + : base(id, name, type, location, tags) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/FileShare.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/FileShare.cs new file mode 100644 index 000000000000..5b7fed3b1871 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/FileShare.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Representation of a file share resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class FileShare : Resource + { + /// + /// Initializes a new instance of the FileShare class. + /// + public FileShare() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FileShare class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// Associated volume Id. + /// The UNCPath for the fileshare. + public FileShare(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string associatedVolume = default(string), string uncPath = default(string)) + : base(id, name, type, location, tags) + { + AssociatedVolume = associatedVolume; + UncPath = uncPath; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets associated volume Id. + /// + [JsonProperty(PropertyName = "properties.associatedVolume")] + public string AssociatedVolume { get; set; } + + /// + /// Gets or sets the UNCPath for the fileshare. + /// + [JsonProperty(PropertyName = "properties.uncPath")] + public string UncPath { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/InfraRole.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/InfraRole.cs new file mode 100644 index 000000000000..a2fac6508522 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/InfraRole.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Get an infra role description. + /// + [Rest.Serialization.JsonTransformation] + public partial class InfraRole : Resource + { + /// + /// Initializes a new instance of the InfraRole class. + /// + public InfraRole() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InfraRole class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// List of infra role instances. + public InfraRole(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList instances = default(IList)) + : base(id, name, type, location, tags) + { + Instances = instances; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of infra role instances. + /// + [JsonProperty(PropertyName = "properties.instances")] + public IList Instances { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/InfraRoleInstance.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/InfraRoleInstance.cs new file mode 100644 index 000000000000..560b9df12056 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/InfraRoleInstance.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The virtual machine resource is used to represent an infrastructure + /// virtual machine in the Azure Stack environment. The fabric resource + /// provider only surfaces infrastructure virtual machines. These machines + /// are never created directly by the admin, but rather as a side effect of + /// expanding admin services. + /// + [Rest.Serialization.JsonTransformation] + public partial class InfraRoleInstance : Resource + { + /// + /// Initializes a new instance of the InfraRoleInstance class. + /// + public InfraRoleInstance() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InfraRoleInstance class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// The cluster that the virtual machine's host + /// is part of. + /// URI to the scale unit node. + /// Size of the virtual machine. + /// The current state of the virtual machine. + /// Possible values include: 'Stopped', 'Starting', 'Running', + /// 'Stopping' + public InfraRoleInstance(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string scaleUnit = default(string), string scaleUnitNode = default(string), InfraRoleInstanceSize size = default(InfraRoleInstanceSize), string state = default(string)) + : base(id, name, type, location, tags) + { + ScaleUnit = scaleUnit; + ScaleUnitNode = scaleUnitNode; + Size = size; + State = state; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the cluster that the virtual machine's host is part + /// of. + /// + [JsonProperty(PropertyName = "properties.scaleUnit")] + public string ScaleUnit { get; set; } + + /// + /// Gets or sets URI to the scale unit node. + /// + [JsonProperty(PropertyName = "properties.scaleUnitNode")] + public string ScaleUnitNode { get; set; } + + /// + /// Gets or sets size of the virtual machine. + /// + [JsonProperty(PropertyName = "properties.size")] + public InfraRoleInstanceSize Size { get; set; } + + /// + /// Gets or sets the current state of the virtual machine. Possible + /// values include: 'Stopped', 'Starting', 'Running', 'Stopping' + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/InfraRoleInstanceSize.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/InfraRoleInstanceSize.cs new file mode 100644 index 000000000000..dba1b07525b8 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/InfraRoleInstanceSize.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The capacity information for a virtual machine. + /// + public partial class InfraRoleInstanceSize + { + /// + /// Initializes a new instance of the InfraRoleInstanceSize class. + /// + public InfraRoleInstanceSize() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InfraRoleInstanceSize class. + /// + /// The amount of memory, in GB, currently + /// assigned to the virtual machine. In Azure Stack V1, only static + /// memory is used for infrastructure VMs. + /// The number of cores assigned to the virtual + /// machine. + public InfraRoleInstanceSize(double? memoryGb = default(double?), int? cores = default(int?)) + { + MemoryGb = memoryGb; + Cores = cores; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the amount of memory, in GB, currently assigned to the + /// virtual machine. In Azure Stack V1, only static memory is used for + /// infrastructure VMs. + /// + [JsonProperty(PropertyName = "memoryGb")] + public double? MemoryGb { get; set; } + + /// + /// Gets or sets the number of cores assigned to the virtual machine. + /// + [JsonProperty(PropertyName = "cores")] + public int? Cores { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/InfraRoleInstanceState.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/InfraRoleInstanceState.cs new file mode 100644 index 000000000000..7c8df022fded --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/InfraRoleInstanceState.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + + /// + /// Defines values for InfraRoleInstanceState. + /// + public static class InfraRoleInstanceState + { + public const string Stopped = "Stopped"; + public const string Starting = "Starting"; + public const string Running = "Running"; + public const string Stopping = "Stopping"; + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/IpPool.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/IpPool.cs new file mode 100644 index 000000000000..84d2256aeb4b --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/IpPool.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// This resource defines the range of IP addresses from which addresses + /// are allocated for nodes within a subnet. + /// + [Rest.Serialization.JsonTransformation] + public partial class IpPool : Resource + { + /// + /// Initializes a new instance of the IpPool class. + /// + public IpPool() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IpPool class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// The starting Ip address. + /// The ending Ip address. + /// The address prefix. + /// The total number of ip + /// addresses. + /// The number of currently + /// allocated ip addresses. + /// The current number of + /// ip addresses in transition. + public IpPool(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string startIpAddress = default(string), string endIpAddress = default(string), string addressPrefix = default(string), long? numberOfIpAddresses = default(long?), long? numberOfAllocatedIpAddresses = default(long?), long? numberOfIpAddressesInTransition = default(long?)) + : base(id, name, type, location, tags) + { + StartIpAddress = startIpAddress; + EndIpAddress = endIpAddress; + AddressPrefix = addressPrefix; + NumberOfIpAddresses = numberOfIpAddresses; + NumberOfAllocatedIpAddresses = numberOfAllocatedIpAddresses; + NumberOfIpAddressesInTransition = numberOfIpAddressesInTransition; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the starting Ip address. + /// + [JsonProperty(PropertyName = "properties.startIpAddress")] + public string StartIpAddress { get; set; } + + /// + /// Gets or sets the ending Ip address. + /// + [JsonProperty(PropertyName = "properties.endIpAddress")] + public string EndIpAddress { get; set; } + + /// + /// Gets or sets the address prefix. + /// + [JsonProperty(PropertyName = "properties.addressPrefix")] + public string AddressPrefix { get; set; } + + /// + /// Gets or sets the total number of ip addresses. + /// + [JsonProperty(PropertyName = "properties.numberOfIpAddresses")] + public long? NumberOfIpAddresses { get; set; } + + /// + /// Gets or sets the number of currently allocated ip addresses. + /// + [JsonProperty(PropertyName = "properties.numberOfAllocatedIpAddresses")] + public long? NumberOfAllocatedIpAddresses { get; set; } + + /// + /// Gets or sets the current number of ip addresses in transition. + /// + [JsonProperty(PropertyName = "properties.numberOfIpAddressesInTransition")] + public long? NumberOfIpAddressesInTransition { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/LogicalNetwork.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/LogicalNetwork.cs new file mode 100644 index 000000000000..80f1ee8d294c --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/LogicalNetwork.cs @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// This resource represents a logical partition of physical network that + /// is dedicated for a particular purpose. A logical network comprises of + /// a collection of logical subnets. + /// + [Rest.Serialization.JsonTransformation] + public partial class LogicalNetwork : Resource + { + /// + /// Initializes a new instance of the LogicalNetwork class. + /// + public LogicalNetwork() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LogicalNetwork class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// Metadata related to this Logical + /// Network. + /// Is Network + /// Virtualization is enabled on this Logical Network. + /// List of subnets belonging to this Logical + /// Network. + public LogicalNetwork(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IDictionary metadata = default(IDictionary), bool? networkVirtualizationEnabled = default(bool?), IList subnets = default(IList)) + : base(id, name, type, location, tags) + { + Metadata = metadata; + NetworkVirtualizationEnabled = networkVirtualizationEnabled; + Subnets = subnets; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets metadata related to this Logical Network. + /// + [JsonProperty(PropertyName = "properties.metadata")] + public IDictionary Metadata { get; set; } + + /// + /// Gets or sets is Network Virtualization is enabled on this Logical + /// Network. + /// + [JsonProperty(PropertyName = "properties.networkVirtualizationEnabled")] + public bool? NetworkVirtualizationEnabled { get; set; } + + /// + /// Gets or sets list of subnets belonging to this Logical Network. + /// + [JsonProperty(PropertyName = "properties.subnets")] + public IList Subnets { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/LogicalSubnet.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/LogicalSubnet.cs new file mode 100644 index 000000000000..0674831448cd --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/LogicalSubnet.cs @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// This resource represents a Logical Subnet. A Logical Subnet comprises + /// of subnet/vlan pair. + /// + [Rest.Serialization.JsonTransformation] + public partial class LogicalSubnet : Resource + { + /// + /// Initializes a new instance of the LogicalSubnet class. + /// + public LogicalSubnet() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LogicalSubnet class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// All ip pools which belong to this + /// subnet. + /// The visiblity status of the ip pool. If is + /// true the associated pools are public ip address pools. + /// Metadata related to this Logical + /// Network. + public LogicalSubnet(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList ipPools = default(IList), bool? isPublic = default(bool?), IDictionary metadata = default(IDictionary)) + : base(id, name, type, location, tags) + { + IpPools = ipPools; + IsPublic = isPublic; + Metadata = metadata; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets all ip pools which belong to this subnet. + /// + [JsonProperty(PropertyName = "properties.ipPools")] + public IList IpPools { get; set; } + + /// + /// Gets or sets the visiblity status of the ip pool. If is true the + /// associated pools are public ip address pools. + /// + [JsonProperty(PropertyName = "properties.isPublic")] + public bool? IsPublic { get; set; } + + /// + /// Gets or sets metadata related to this Logical Network. + /// + [JsonProperty(PropertyName = "properties.metadata")] + public IDictionary Metadata { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/MacAddressPool.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/MacAddressPool.cs new file mode 100644 index 000000000000..e49da2fc2d02 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/MacAddressPool.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// This resource represents a MAC address pool. The default MAC address + /// pools are used if you set the MAC address type for a virtual machine to + /// 'Static'. If the virtual machine setting is “Dynamic”, the hypervisor + /// assigns the MAC address. + /// + [Rest.Serialization.JsonTransformation] + public partial class MacAddressPool : Resource + { + /// + /// Initializes a new instance of the MacAddressPool class. + /// + public MacAddressPool() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MacAddressPool class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// Metadata related to this MAC pool. + /// Starting MAC address. + /// Ending MAC address. + /// Number of MAC addresses + /// allocated. + /// Number of MAC addresses + /// available. + public MacAddressPool(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IDictionary metadata = default(IDictionary), string startMacAddress = default(string), string endMacAddress = default(string), long? numberOfAllocatedMacAddresses = default(long?), long? numberOfAvailableMacAddresses = default(long?)) + : base(id, name, type, location, tags) + { + Metadata = metadata; + StartMacAddress = startMacAddress; + EndMacAddress = endMacAddress; + NumberOfAllocatedMacAddresses = numberOfAllocatedMacAddresses; + NumberOfAvailableMacAddresses = numberOfAvailableMacAddresses; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets metadata related to this MAC pool. + /// + [JsonProperty(PropertyName = "properties.metadata")] + public IDictionary Metadata { get; set; } + + /// + /// Gets or sets starting MAC address. + /// + [JsonProperty(PropertyName = "properties.startMacAddress")] + public string StartMacAddress { get; set; } + + /// + /// Gets or sets ending MAC address. + /// + [JsonProperty(PropertyName = "properties.endMacAddress")] + public string EndMacAddress { get; set; } + + /// + /// Gets or sets number of MAC addresses allocated. + /// + [JsonProperty(PropertyName = "properties.numberOfAllocatedMacAddresses")] + public long? NumberOfAllocatedMacAddresses { get; set; } + + /// + /// Gets or sets number of MAC addresses available. + /// + [JsonProperty(PropertyName = "properties.numberOfAvailableMacAddresses")] + public long? NumberOfAvailableMacAddresses { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/OperationStatus.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/OperationStatus.cs new file mode 100644 index 000000000000..7c99a30e6940 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/OperationStatus.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Status of the compute operation. + /// + [Rest.Serialization.JsonTransformation] + public partial class OperationStatus + { + /// + /// Initializes a new instance of the OperationStatus class. + /// + public OperationStatus() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationStatus class. + /// + /// The state of the + /// operation. + public OperationStatus(string provisioningStateProperty = default(string)) + { + ProvisioningStateProperty = provisioningStateProperty; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the state of the operation. + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningStateProperty { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/OperationStatusLocation.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/OperationStatusLocation.cs new file mode 100644 index 000000000000..603c67e5f5ae --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/OperationStatusLocation.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Newtonsoft.Json; + using System.Linq; + + /// + /// URI where you can poll for status of operation. + /// + public partial class OperationStatusLocation + { + /// + /// Initializes a new instance of the OperationStatusLocation class. + /// + public OperationStatusLocation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationStatusLocation class. + /// + /// URI where you can poll for status of + /// operation. + public OperationStatusLocation(string location = default(string)) + { + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets URI where you can poll for status of operation. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/Page.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/Page.cs new file mode 100644 index 000000000000..045761b10aa9 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/Page.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("nextLink")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/Page1.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/Page1.cs new file mode 100644 index 000000000000..7638257ce6bb --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/Page1.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page1 : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/PowerState.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/PowerState.cs new file mode 100644 index 000000000000..f62d6cdfb803 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/PowerState.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + + /// + /// Defines values for PowerState. + /// + public static class PowerState + { + public const string Stopped = "Stopped"; + public const string Starting = "Starting"; + public const string Running = "Running"; + public const string Stopping = "Stopping"; + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ProvisioningState.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ProvisioningState.cs new file mode 100644 index 000000000000..65d89d190b15 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ProvisioningState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The state of the operation. + /// + public partial class ProvisioningState + { + /// + /// Initializes a new instance of the ProvisioningState class. + /// + public ProvisioningState() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProvisioningState class. + /// + /// The state of the + /// operation. + public ProvisioningState(string provisioningStateProperty = default(string)) + { + ProvisioningStateProperty = provisioningStateProperty; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the state of the operation. + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningStateProperty { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/Resource.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/Resource.cs new file mode 100644 index 000000000000..4e9d959d5317 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/Resource.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Base Resource Object + /// + public partial class Resource : IResource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Resource class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + public Resource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary)) + { + Id = id; + Name = name; + Type = type; + Location = location; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets URI of the resource. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets name of the resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets type of resource. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets region Location of resource. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets list of key value pairs. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnit.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnit.cs new file mode 100644 index 000000000000..b93e51418356 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnit.cs @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Represents a cluster - generally this will be a collection of Hosts + /// backed by Failover Cluster Manager. + /// + [Rest.Serialization.JsonTransformation] + public partial class ScaleUnit : Resource + { + /// + /// Initializes a new instance of the ScaleUnit class. + /// + public ScaleUnit() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScaleUnit class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// Type of the cluster. Possible values + /// include: 'Unknown', 'ComputeOnly', 'StorageOnly', + /// 'HyperConverged' + /// Fault domain name of the + /// cluster. + /// List of nodes in the server. + /// Current state of the cluster. Possible values + /// include: 'Unknown', 'Creating', 'Running', 'Upgrading', + /// 'Deleting' + /// Model of the servers in the cluster. + /// Capacity information for the + /// cluster. + public ScaleUnit(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string scaleUnitType = default(string), int? logicalFaultDomain = default(int?), IList nodes = default(IList), string state = default(string), string model = default(string), ScaleUnitCapacity totalCapacity = default(ScaleUnitCapacity)) + : base(id, name, type, location, tags) + { + ScaleUnitType = scaleUnitType; + LogicalFaultDomain = logicalFaultDomain; + Nodes = nodes; + State = state; + Model = model; + TotalCapacity = totalCapacity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets type of the cluster. Possible values include: + /// 'Unknown', 'ComputeOnly', 'StorageOnly', 'HyperConverged' + /// + [JsonProperty(PropertyName = "properties.scaleUnitType")] + public string ScaleUnitType { get; set; } + + /// + /// Gets or sets fault domain name of the cluster. + /// + [JsonProperty(PropertyName = "properties.logicalFaultDomain")] + public int? LogicalFaultDomain { get; set; } + + /// + /// Gets or sets list of nodes in the server. + /// + [JsonProperty(PropertyName = "properties.nodes")] + public IList Nodes { get; set; } + + /// + /// Gets or sets current state of the cluster. Possible values include: + /// 'Unknown', 'Creating', 'Running', 'Upgrading', 'Deleting' + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; set; } + + /// + /// Gets or sets model of the servers in the cluster. + /// + [JsonProperty(PropertyName = "properties.model")] + public string Model { get; set; } + + /// + /// Gets or sets capacity information for the cluster. + /// + [JsonProperty(PropertyName = "properties.totalCapacity")] + public ScaleUnitCapacity TotalCapacity { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitCapacity.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitCapacity.cs new file mode 100644 index 000000000000..cba065de6e83 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitCapacity.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The capacity information for a physical machine. + /// + public partial class ScaleUnitCapacity + { + /// + /// Initializes a new instance of the ScaleUnitCapacity class. + /// + public ScaleUnitCapacity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScaleUnitCapacity class. + /// + /// The memory for the physical machine. + /// The number of CPU cores for the physical + /// machine. + public ScaleUnitCapacity(double? memoryGB = default(double?), long? cores = default(long?)) + { + MemoryGB = memoryGB; + Cores = cores; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the memory for the physical machine. + /// + [JsonProperty(PropertyName = "memoryGB")] + public double? MemoryGB { get; set; } + + /// + /// Gets or sets the number of CPU cores for the physical machine. + /// + [JsonProperty(PropertyName = "cores")] + public long? Cores { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitNode.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitNode.cs new file mode 100644 index 000000000000..acb809a9e1a9 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitNode.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The physical server in a cluster. + /// + [Rest.Serialization.JsonTransformation] + public partial class ScaleUnitNode : Resource + { + /// + /// Initializes a new instance of the ScaleUnitNode class. + /// + public ScaleUnitNode() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScaleUnitNode class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// Status of the physical machine. + /// Possible values include: 'Running', 'Maintenance', + /// 'Stopped' + /// PowerState of the physical machine. + /// Possible values include: 'Stopped', 'Starting', 'Running', + /// 'Stopping' + /// Bmc address of the physical + /// machine. + /// Cluster name of the physical + /// machine. + /// URI of the corresponding + /// cluster. + /// Value indicating whether the node can be + /// powered off. + /// Vendor of the physical machine. + /// Model of the physical machine. + /// Serial number of the physical + /// machine. + /// Bios version of the physical + /// machine. + /// MacAddress of the physical + /// machine. + /// Capacity of the physical machine. + public ScaleUnitNode(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string scaleUnitNodeStatus = default(string), string powerState = default(string), string bmcAddress = default(string), string scaleUnitName = default(string), string scaleUnitUri = default(string), bool? canPowerOff = default(bool?), string vendor = default(string), string model = default(string), string serialNumber = default(string), string biosVersion = default(string), string macAddress = default(string), ScaleUnitCapacity capacity = default(ScaleUnitCapacity)) + : base(id, name, type, location, tags) + { + ScaleUnitNodeStatus = scaleUnitNodeStatus; + PowerState = powerState; + BmcAddress = bmcAddress; + ScaleUnitName = scaleUnitName; + ScaleUnitUri = scaleUnitUri; + CanPowerOff = canPowerOff; + Vendor = vendor; + Model = model; + SerialNumber = serialNumber; + BiosVersion = biosVersion; + MacAddress = macAddress; + Capacity = capacity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets status of the physical machine. Possible values + /// include: 'Running', 'Maintenance', 'Stopped' + /// + [JsonProperty(PropertyName = "properties.scaleUnitNodeStatus")] + public string ScaleUnitNodeStatus { get; set; } + + /// + /// Gets or sets powerState of the physical machine. Possible values + /// include: 'Stopped', 'Starting', 'Running', 'Stopping' + /// + [JsonProperty(PropertyName = "properties.powerState")] + public string PowerState { get; set; } + + /// + /// Gets or sets bmc address of the physical machine. + /// + [JsonProperty(PropertyName = "properties.bmcAddress")] + public string BmcAddress { get; set; } + + /// + /// Gets or sets cluster name of the physical machine. + /// + [JsonProperty(PropertyName = "properties.scaleUnitName")] + public string ScaleUnitName { get; set; } + + /// + /// Gets or sets URI of the corresponding cluster. + /// + [JsonProperty(PropertyName = "properties.scaleUnitUri")] + public string ScaleUnitUri { get; set; } + + /// + /// Gets or sets value indicating whether the node can be powered off. + /// + [JsonProperty(PropertyName = "properties.canPowerOff")] + public bool? CanPowerOff { get; set; } + + /// + /// Gets or sets vendor of the physical machine. + /// + [JsonProperty(PropertyName = "properties.vendor")] + public string Vendor { get; set; } + + /// + /// Gets or sets model of the physical machine. + /// + [JsonProperty(PropertyName = "properties.model")] + public string Model { get; set; } + + /// + /// Gets or sets serial number of the physical machine. + /// + [JsonProperty(PropertyName = "properties.serialNumber")] + public string SerialNumber { get; set; } + + /// + /// Gets or sets bios version of the physical machine. + /// + [JsonProperty(PropertyName = "properties.biosVersion")] + public string BiosVersion { get; set; } + + /// + /// Gets or sets macAddress of the physical machine. + /// + [JsonProperty(PropertyName = "properties.macAddress")] + public string MacAddress { get; set; } + + /// + /// Gets or sets capacity of the physical machine. + /// + [JsonProperty(PropertyName = "properties.capacity")] + public ScaleUnitCapacity Capacity { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitNodeStatus.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitNodeStatus.cs new file mode 100644 index 000000000000..ad50864ef500 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitNodeStatus.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + + /// + /// Defines values for ScaleUnitNodeStatus. + /// + public static class ScaleUnitNodeStatus + { + public const string Running = "Running"; + public const string Maintenance = "Maintenance"; + public const string Stopped = "Stopped"; + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitState.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitState.cs new file mode 100644 index 000000000000..72bee646997e --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitState.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + + /// + /// Defines values for ScaleUnitState. + /// + public static class ScaleUnitState + { + public const string Unknown = "Unknown"; + public const string Creating = "Creating"; + public const string Running = "Running"; + public const string Upgrading = "Upgrading"; + public const string Deleting = "Deleting"; + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitType.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitType.cs new file mode 100644 index 000000000000..382f1f567b27 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/ScaleUnitType.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + + /// + /// Defines values for ScaleUnitType. + /// + public static class ScaleUnitType + { + public const string Unknown = "Unknown"; + public const string ComputeOnly = "ComputeOnly"; + public const string StorageOnly = "StorageOnly"; + public const string HyperConverged = "HyperConverged"; + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/SlbMuxInstance.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/SlbMuxInstance.cs new file mode 100644 index 000000000000..a5c96d0892e8 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/SlbMuxInstance.cs @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// This resource represents an SLB MUX (software load balancing + /// multiplexer, which distributes the tenant and tenant customer network + /// traffic). + /// + [Rest.Serialization.JsonTransformation] + public partial class SlbMuxInstance : Resource + { + /// + /// Initializes a new instance of the SlbMuxInstance class. + /// + public SlbMuxInstance() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SlbMuxInstance class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// Configuration state. + /// Virtual server. + /// List of BGP peers. + public SlbMuxInstance(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string configurationState = default(string), string virtualServer = default(string), IList bgpPeers = default(IList)) + : base(id, name, type, location, tags) + { + ConfigurationState = configurationState; + VirtualServer = virtualServer; + BgpPeers = bgpPeers; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets configuration state. + /// + [JsonProperty(PropertyName = "properties.configurationState")] + public string ConfigurationState { get; set; } + + /// + /// Gets or sets virtual server. + /// + [JsonProperty(PropertyName = "properties.virtualServer")] + public string VirtualServer { get; set; } + + /// + /// Gets or sets list of BGP peers. + /// + [JsonProperty(PropertyName = "properties.bgpPeers")] + public IList BgpPeers { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/StoragePool.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/StoragePool.cs new file mode 100644 index 000000000000..0e11b2e72ed2 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/StoragePool.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Representation of a storage pool resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class StoragePool : Resource + { + /// + /// Initializes a new instance of the StoragePool class. + /// + public StoragePool() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StoragePool class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// Amount of space in the storage pool in + /// GB. + public StoragePool(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), int? sizeGB = default(int?)) + : base(id, name, type, location, tags) + { + SizeGB = sizeGB; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets amount of space in the storage pool in GB. + /// + [JsonProperty(PropertyName = "properties.sizeGB")] + public int? SizeGB { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/StorageSystem.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/StorageSystem.cs new file mode 100644 index 000000000000..7a14f2496e49 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/StorageSystem.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Representation of a storage system resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class StorageSystem : Resource + { + /// + /// Initializes a new instance of the StorageSystem class. + /// + public StorageSystem() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StorageSystem class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// Total capacity of the system. + public StorageSystem(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), int? totalCapacityGB = default(int?)) + : base(id, name, type, location, tags) + { + TotalCapacityGB = totalCapacityGB; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets total capacity of the system. + /// + [JsonProperty(PropertyName = "properties.totalCapacityGB")] + public int? TotalCapacityGB { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/Volume.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/Volume.cs new file mode 100644 index 000000000000..3dcb1935ccf3 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/Models/Volume.cs @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.AzureStack.Management.Fabric.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Representation of a volume resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class Volume : Resource + { + /// + /// Initializes a new instance of the Volume class. + /// + public Volume() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Volume class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Region Location of resource. + /// List of key value pairs. + /// Filesystem type. + /// Amount of free space in GB. + /// Total amount of space in GB. + /// Volume label. + public Volume(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string fileSystem = default(string), int? remainingSizeGB = default(int?), int? sizeGB = default(int?), string volumeLabel = default(string)) + : base(id, name, type, location, tags) + { + FileSystem = fileSystem; + RemainingSizeGB = remainingSizeGB; + SizeGB = sizeGB; + VolumeLabel = volumeLabel; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets filesystem type. + /// + [JsonProperty(PropertyName = "properties.fileSystem")] + public string FileSystem { get; set; } + + /// + /// Gets or sets amount of free space in GB. + /// + [JsonProperty(PropertyName = "properties.remainingSizeGB")] + public int? RemainingSizeGB { get; set; } + + /// + /// Gets or sets total amount of space in GB. + /// + [JsonProperty(PropertyName = "properties.sizeGB")] + public int? SizeGB { get; set; } + + /// + /// Gets or sets volume label. + /// + [JsonProperty(PropertyName = "properties.volumeLabel")] + public string VolumeLabel { get; set; } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/NetworkFabricOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/NetworkFabricOperations.cs new file mode 100644 index 000000000000..300cdcfda279 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/NetworkFabricOperations.cs @@ -0,0 +1,260 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// NetworkFabricOperations operations. + /// + internal partial class NetworkFabricOperations : IServiceOperations, INetworkFabricOperations + { + /// + /// Initializes a new instance of the NetworkFabricOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal NetworkFabricOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get the status of a network fabric operation. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the provider. + /// + /// + /// Id of a network fabric operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string provider, string networkOperationResult, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (provider == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provider"); + } + if (networkOperationResult == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkOperationResult"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("provider", provider); + tracingParameters.Add("networkOperationResult", networkOperationResult); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/{provider}/fabricLocations/{location}/networkOperationResults/{networkOperationResult}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{provider}", System.Uri.EscapeDataString(provider)); + _url = _url.Replace("{networkOperationResult}", System.Uri.EscapeDataString(networkOperationResult)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/NetworkFabricOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/NetworkFabricOperationsExtensions.cs new file mode 100644 index 000000000000..eb789631b776 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/NetworkFabricOperationsExtensions.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for NetworkFabricOperations. + /// + public static partial class NetworkFabricOperationsExtensions + { + /// + /// Get the status of a network fabric operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the provider. + /// + /// + /// Id of a network fabric operation. + /// + public static OperationStatus Get(this INetworkFabricOperations operations, string location, string provider, string networkOperationResult) + { + return operations.GetAsync(location, provider, networkOperationResult).GetAwaiter().GetResult(); + } + + /// + /// Get the status of a network fabric operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the provider. + /// + /// + /// Id of a network fabric operation. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this INetworkFabricOperations operations, string location, string provider, string networkOperationResult, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, provider, networkOperationResult, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ScaleUnitNodesOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ScaleUnitNodesOperations.cs new file mode 100644 index 000000000000..9cfbf1d2a2ac --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ScaleUnitNodesOperations.cs @@ -0,0 +1,1640 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ScaleUnitNodesOperations operations. + /// + internal partial class ScaleUnitNodesOperations : IServiceOperations, IScaleUnitNodesOperations + { + /// + /// Initializes a new instance of the ScaleUnitNodesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ScaleUnitNodesOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Power off a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> PowerOffWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginPowerOffWithHttpMessagesAsync(location, scaleUnitNode, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Power on a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> PowerOnWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginPowerOnWithHttpMessagesAsync(location, scaleUnitNode, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Start maintenance mode for a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> StartMaintenanceModeWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginStartMaintenanceModeWithHttpMessagesAsync(location, scaleUnitNode, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Stop maintenance mode for a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> StopMaintenanceModeWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginStopMaintenanceModeWithHttpMessagesAsync(location, scaleUnitNode, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a specific scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (scaleUnitNode == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scaleUnitNode"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("scaleUnitNode", scaleUnitNode); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnitNodes/{scaleUnitNode}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{scaleUnitNode}", System.Uri.EscapeDataString(scaleUnitNode)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all scale unit nodes in a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnitNodes").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Power off a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginPowerOffWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (scaleUnitNode == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scaleUnitNode"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("scaleUnitNode", scaleUnitNode); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginPowerOff", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnitNodes/{scaleUnitNode}/PowerOff").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{scaleUnitNode}", System.Uri.EscapeDataString(scaleUnitNode)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 500) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 500) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Power on a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginPowerOnWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (scaleUnitNode == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scaleUnitNode"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("scaleUnitNode", scaleUnitNode); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginPowerOn", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnitNodes/{scaleUnitNode}/PowerOn").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{scaleUnitNode}", System.Uri.EscapeDataString(scaleUnitNode)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 500) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 500) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Start maintenance mode for a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginStartMaintenanceModeWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (scaleUnitNode == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scaleUnitNode"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("scaleUnitNode", scaleUnitNode); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginStartMaintenanceMode", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnitNodes/{scaleUnitNode}/StartMaintenanceMode").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{scaleUnitNode}", System.Uri.EscapeDataString(scaleUnitNode)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 500) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 500) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Stop maintenance mode for a scale unit node. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginStopMaintenanceModeWithHttpMessagesAsync(string location, string scaleUnitNode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (scaleUnitNode == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scaleUnitNode"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("scaleUnitNode", scaleUnitNode); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginStopMaintenanceMode", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnitNodes/{scaleUnitNode}/StopMaintenanceMode").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{scaleUnitNode}", System.Uri.EscapeDataString(scaleUnitNode)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 500) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 500) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all scale unit nodes in a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ScaleUnitNodesOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ScaleUnitNodesOperationsExtensions.cs new file mode 100644 index 000000000000..19bfb4c19339 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ScaleUnitNodesOperationsExtensions.cs @@ -0,0 +1,461 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ScaleUnitNodesOperations. + /// + public static partial class ScaleUnitNodesOperationsExtensions + { + /// + /// Power off a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + public static ProvisioningState PowerOff(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode) + { + return operations.PowerOffAsync(location, scaleUnitNode).GetAwaiter().GetResult(); + } + + /// + /// Power off a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The cancellation token. + /// + public static async Task PowerOffAsync(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PowerOffWithHttpMessagesAsync(location, scaleUnitNode, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Power on a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + public static ProvisioningState PowerOn(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode) + { + return operations.PowerOnAsync(location, scaleUnitNode).GetAwaiter().GetResult(); + } + + /// + /// Power on a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The cancellation token. + /// + public static async Task PowerOnAsync(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PowerOnWithHttpMessagesAsync(location, scaleUnitNode, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Start maintenance mode for a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + public static ProvisioningState StartMaintenanceMode(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode) + { + return operations.StartMaintenanceModeAsync(location, scaleUnitNode).GetAwaiter().GetResult(); + } + + /// + /// Start maintenance mode for a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The cancellation token. + /// + public static async Task StartMaintenanceModeAsync(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.StartMaintenanceModeWithHttpMessagesAsync(location, scaleUnitNode, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Stop maintenance mode for a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + public static ProvisioningState StopMaintenanceMode(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode) + { + return operations.StopMaintenanceModeAsync(location, scaleUnitNode).GetAwaiter().GetResult(); + } + + /// + /// Stop maintenance mode for a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The cancellation token. + /// + public static async Task StopMaintenanceModeAsync(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.StopMaintenanceModeWithHttpMessagesAsync(location, scaleUnitNode, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a specific scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + public static ScaleUnitNode Get(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode) + { + return operations.GetAsync(location, scaleUnitNode).GetAwaiter().GetResult(); + } + + /// + /// Get a specific scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, scaleUnitNode, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all scale unit nodes in a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IScaleUnitNodesOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IScaleUnitNodesOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all scale unit nodes in a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IScaleUnitNodesOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Power off a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + public static ProvisioningState BeginPowerOff(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode) + { + return operations.BeginPowerOffAsync(location, scaleUnitNode).GetAwaiter().GetResult(); + } + + /// + /// Power off a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The cancellation token. + /// + public static async Task BeginPowerOffAsync(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginPowerOffWithHttpMessagesAsync(location, scaleUnitNode, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Power on a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + public static ProvisioningState BeginPowerOn(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode) + { + return operations.BeginPowerOnAsync(location, scaleUnitNode).GetAwaiter().GetResult(); + } + + /// + /// Power on a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The cancellation token. + /// + public static async Task BeginPowerOnAsync(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginPowerOnWithHttpMessagesAsync(location, scaleUnitNode, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Start maintenance mode for a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + public static ProvisioningState BeginStartMaintenanceMode(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode) + { + return operations.BeginStartMaintenanceModeAsync(location, scaleUnitNode).GetAwaiter().GetResult(); + } + + /// + /// Start maintenance mode for a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The cancellation token. + /// + public static async Task BeginStartMaintenanceModeAsync(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginStartMaintenanceModeWithHttpMessagesAsync(location, scaleUnitNode, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Stop maintenance mode for a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + public static ProvisioningState BeginStopMaintenanceMode(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode) + { + return operations.BeginStopMaintenanceModeAsync(location, scaleUnitNode).GetAwaiter().GetResult(); + } + + /// + /// Stop maintenance mode for a scale unit node. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale unit node. + /// + /// + /// The cancellation token. + /// + public static async Task BeginStopMaintenanceModeAsync(this IScaleUnitNodesOperations operations, string location, string scaleUnitNode, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginStopMaintenanceModeWithHttpMessagesAsync(location, scaleUnitNode, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all scale unit nodes in a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IScaleUnitNodesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all scale unit nodes in a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IScaleUnitNodesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ScaleUnitsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ScaleUnitsOperations.cs new file mode 100644 index 000000000000..df3760cd072f --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ScaleUnitsOperations.cs @@ -0,0 +1,895 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ScaleUnitsOperations operations. + /// + internal partial class ScaleUnitsOperations : IServiceOperations, IScaleUnitsOperations + { + /// + /// Initializes a new instance of the ScaleUnitsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ScaleUnitsOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Scales out the cluster. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale units. + /// + /// + /// Descripion of the server to be added. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ScaleOutWithHttpMessagesAsync(string location, string scaleUnit, BareMetalNodeDescription serversToBeAdded, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginScaleOutWithHttpMessagesAsync(location, scaleUnit, serversToBeAdded, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a scale unit. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale units. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string scaleUnit, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (scaleUnit == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scaleUnit"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("scaleUnit", scaleUnit); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnits/{scaleUnit}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{scaleUnit}", System.Uri.EscapeDataString(scaleUnit)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all scale units at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnits").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Scales out the cluster. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale units. + /// + /// + /// Descripion of the server to be added. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginScaleOutWithHttpMessagesAsync(string location, string scaleUnit, BareMetalNodeDescription serversToBeAdded, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (scaleUnit == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scaleUnit"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (serversToBeAdded == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serversToBeAdded"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("scaleUnit", scaleUnit); + tracingParameters.Add("serversToBeAdded", serversToBeAdded); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginScaleOut", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnits/{scaleUnit}/ScaleOut").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{scaleUnit}", System.Uri.EscapeDataString(scaleUnit)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(serversToBeAdded != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(serversToBeAdded, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 500) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 500) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all scale units at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ScaleUnitsOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ScaleUnitsOperationsExtensions.cs new file mode 100644 index 000000000000..1ff9c5fa7b3b --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/ScaleUnitsOperationsExtensions.cs @@ -0,0 +1,233 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ScaleUnitsOperations. + /// + public static partial class ScaleUnitsOperationsExtensions + { + /// + /// Scales out the cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale units. + /// + /// + /// Descripion of the server to be added. + /// + public static ProvisioningState ScaleOut(this IScaleUnitsOperations operations, string location, string scaleUnit, BareMetalNodeDescription serversToBeAdded) + { + return operations.ScaleOutAsync(location, scaleUnit, serversToBeAdded).GetAwaiter().GetResult(); + } + + /// + /// Scales out the cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale units. + /// + /// + /// Descripion of the server to be added. + /// + /// + /// The cancellation token. + /// + public static async Task ScaleOutAsync(this IScaleUnitsOperations operations, string location, string scaleUnit, BareMetalNodeDescription serversToBeAdded, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ScaleOutWithHttpMessagesAsync(location, scaleUnit, serversToBeAdded, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a scale unit. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale units. + /// + public static ScaleUnit Get(this IScaleUnitsOperations operations, string location, string scaleUnit) + { + return operations.GetAsync(location, scaleUnit).GetAwaiter().GetResult(); + } + + /// + /// Get a scale unit. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale units. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IScaleUnitsOperations operations, string location, string scaleUnit, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, scaleUnit, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all scale units at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IScaleUnitsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IScaleUnitsOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all scale units at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IScaleUnitsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Scales out the cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale units. + /// + /// + /// Descripion of the server to be added. + /// + public static ProvisioningState BeginScaleOut(this IScaleUnitsOperations operations, string location, string scaleUnit, BareMetalNodeDescription serversToBeAdded) + { + return operations.BeginScaleOutAsync(location, scaleUnit, serversToBeAdded).GetAwaiter().GetResult(); + } + + /// + /// Scales out the cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the scale units. + /// + /// + /// Descripion of the server to be added. + /// + /// + /// The cancellation token. + /// + public static async Task BeginScaleOutAsync(this IScaleUnitsOperations operations, string location, string scaleUnit, BareMetalNodeDescription serversToBeAdded, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginScaleOutWithHttpMessagesAsync(location, scaleUnit, serversToBeAdded, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all scale units at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IScaleUnitsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all scale units at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IScaleUnitsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/SlbMuxInstancesOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/SlbMuxInstancesOperations.cs new file mode 100644 index 000000000000..ecbe2413135c --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/SlbMuxInstancesOperations.cs @@ -0,0 +1,624 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SlbMuxInstancesOperations operations. + /// + internal partial class SlbMuxInstancesOperations : IServiceOperations, ISlbMuxInstancesOperations + { + /// + /// Initializes a new instance of the SlbMuxInstancesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal SlbMuxInstancesOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get a software load balancer multiplexer instance. + /// + /// + /// Location of the resource. + /// + /// + /// Name of a SLB Mux instance. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string slbMuxInstance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (slbMuxInstance == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "slbMuxInstance"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("slbMuxInstance", slbMuxInstance); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/slbMuxInstances/{slbMuxInstance}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{slbMuxInstance}", System.Uri.EscapeDataString(slbMuxInstance)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all software load balancer instances at a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/slbMuxInstances").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all software load balancer instances at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/SlbMuxInstancesOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/SlbMuxInstancesOperationsExtensions.cs new file mode 100644 index 000000000000..6163239a83b3 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/SlbMuxInstancesOperationsExtensions.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for SlbMuxInstancesOperations. + /// + public static partial class SlbMuxInstancesOperationsExtensions + { + /// + /// Get a software load balancer multiplexer instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of a SLB Mux instance. + /// + public static SlbMuxInstance Get(this ISlbMuxInstancesOperations operations, string location, string slbMuxInstance) + { + return operations.GetAsync(location, slbMuxInstance).GetAwaiter().GetResult(); + } + + /// + /// Get a software load balancer multiplexer instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of a SLB Mux instance. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ISlbMuxInstancesOperations operations, string location, string slbMuxInstance, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, slbMuxInstance, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all software load balancer instances at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this ISlbMuxInstancesOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((ISlbMuxInstancesOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all software load balancer instances at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this ISlbMuxInstancesOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all software load balancer instances at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this ISlbMuxInstancesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all software load balancer instances at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this ISlbMuxInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/StoragePoolsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/StoragePoolsOperations.cs new file mode 100644 index 000000000000..ac271eb853c4 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/StoragePoolsOperations.cs @@ -0,0 +1,642 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// StoragePoolsOperations operations. + /// + internal partial class StoragePoolsOperations : IServiceOperations, IStoragePoolsOperations + { + /// + /// Initializes a new instance of the StoragePoolsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal StoragePoolsOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get a storage pool. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// Storage pool name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string storageSubSystem, string storagePool, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (storageSubSystem == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSubSystem"); + } + if (storagePool == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storagePool"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("storageSubSystem", storageSubSystem); + tracingParameters.Add("storagePool", storagePool); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/storageSubSystems/{storageSubSystem}/storagePools/{storagePool}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{storageSubSystem}", System.Uri.EscapeDataString(storageSubSystem)); + _url = _url.Replace("{storagePool}", System.Uri.EscapeDataString(storagePool)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all storage pools for a location. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, string storageSubSystem, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (storageSubSystem == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSubSystem"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("storageSubSystem", storageSubSystem); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/storageSubSystems/{storageSubSystem}/storagePools").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{storageSubSystem}", System.Uri.EscapeDataString(storageSubSystem)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all storage pools for a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/StoragePoolsOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/StoragePoolsOperationsExtensions.cs new file mode 100644 index 000000000000..e4af3ef4c0ca --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/StoragePoolsOperationsExtensions.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for StoragePoolsOperations. + /// + public static partial class StoragePoolsOperationsExtensions + { + /// + /// Get a storage pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// Storage pool name. + /// + public static StoragePool Get(this IStoragePoolsOperations operations, string location, string storageSubSystem, string storagePool) + { + return operations.GetAsync(location, storageSubSystem, storagePool).GetAwaiter().GetResult(); + } + + /// + /// Get a storage pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// Storage pool name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IStoragePoolsOperations operations, string location, string storageSubSystem, string storagePool, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, storageSubSystem, storagePool, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all storage pools for a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IStoragePoolsOperations operations, string location, string storageSubSystem, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IStoragePoolsOperations)operations).ListAsync(location, storageSubSystem, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all storage pools for a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IStoragePoolsOperations operations, string location, string storageSubSystem, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, storageSubSystem, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all storage pools for a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IStoragePoolsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all storage pools for a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IStoragePoolsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/StorageSystemsOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/StorageSystemsOperations.cs new file mode 100644 index 000000000000..afaba51fc7fe --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/StorageSystemsOperations.cs @@ -0,0 +1,624 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// StorageSystemsOperations operations. + /// + internal partial class StorageSystemsOperations : IServiceOperations, IStorageSystemsOperations + { + /// + /// Initializes a new instance of the StorageSystemsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal StorageSystemsOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get a storage subsystem. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string storageSubSystem, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (storageSubSystem == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSubSystem"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("storageSubSystem", storageSubSystem); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/storageSubSystems/{storageSubSystem}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{storageSubSystem}", System.Uri.EscapeDataString(storageSubSystem)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all storage subsystems for a location. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/storageSubSystems").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all storage subsystems for a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/StorageSystemsOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/StorageSystemsOperationsExtensions.cs new file mode 100644 index 000000000000..941795b31220 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/StorageSystemsOperationsExtensions.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for StorageSystemsOperations. + /// + public static partial class StorageSystemsOperationsExtensions + { + /// + /// Get a storage subsystem. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + public static StorageSystem Get(this IStorageSystemsOperations operations, string location, string storageSubSystem) + { + return operations.GetAsync(location, storageSubSystem).GetAwaiter().GetResult(); + } + + /// + /// Get a storage subsystem. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IStorageSystemsOperations operations, string location, string storageSubSystem, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, storageSubSystem, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all storage subsystems for a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IStorageSystemsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IStorageSystemsOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all storage subsystems for a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IStorageSystemsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all storage subsystems for a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IStorageSystemsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all storage subsystems for a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IStorageSystemsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/VolumesOperations.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/VolumesOperations.cs new file mode 100644 index 000000000000..194052f49589 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/VolumesOperations.cs @@ -0,0 +1,660 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// VolumesOperations operations. + /// + internal partial class VolumesOperations : IServiceOperations, IVolumesOperations + { + /// + /// Initializes a new instance of the VolumesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal VolumesOperations(FabricAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FabricAdminClient + /// + public FabricAdminClient Client { get; private set; } + + /// + /// Get a volume. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// Storage pool name. + /// + /// + /// Name of the volume. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string storageSubSystem, string storagePool, string volume, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (storageSubSystem == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSubSystem"); + } + if (storagePool == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storagePool"); + } + if (volume == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "volume"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("storageSubSystem", storageSubSystem); + tracingParameters.Add("storagePool", storagePool); + tracingParameters.Add("volume", volume); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/storageSubSystems/{storageSubSystem}/storagePools/{storagePool}/volumes/{volume}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{storageSubSystem}", System.Uri.EscapeDataString(storageSubSystem)); + _url = _url.Replace("{storagePool}", System.Uri.EscapeDataString(storagePool)); + _url = _url.Replace("{volume}", System.Uri.EscapeDataString(volume)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all volumes at a location. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// Storage pool name. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, string storageSubSystem, string storagePool, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (storageSubSystem == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSubSystem"); + } + if (storagePool == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storagePool"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("storageSubSystem", storageSubSystem); + tracingParameters.Add("storagePool", storagePool); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/storageSubSystems/{storageSubSystem}/storagePools/{storagePool}/volumes").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{storageSubSystem}", System.Uri.EscapeDataString(storageSubSystem)); + _url = _url.Replace("{storagePool}", System.Uri.EscapeDataString(storagePool)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all volumes at a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/VolumesOperationsExtensions.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/VolumesOperationsExtensions.cs new file mode 100644 index 000000000000..eacae0c8a771 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Fabric/Fabric.Admin/Generated/VolumesOperationsExtensions.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.Fabric.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Fabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for VolumesOperations. + /// + public static partial class VolumesOperationsExtensions + { + /// + /// Get a volume. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// Storage pool name. + /// + /// + /// Name of the volume. + /// + public static Volume Get(this IVolumesOperations operations, string location, string storageSubSystem, string storagePool, string volume) + { + return operations.GetAsync(location, storageSubSystem, storagePool, volume).GetAwaiter().GetResult(); + } + + /// + /// Get a volume. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// Storage pool name. + /// + /// + /// Name of the volume. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IVolumesOperations operations, string location, string storageSubSystem, string storagePool, string volume, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, storageSubSystem, storagePool, volume, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all volumes at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// Storage pool name. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IVolumesOperations operations, string location, string storageSubSystem, string storagePool, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IVolumesOperations)operations).ListAsync(location, storageSubSystem, storagePool, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all volumes at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location of the resource. + /// + /// + /// Name of the storage system. + /// + /// + /// Storage pool name. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IVolumesOperations operations, string location, string storageSubSystem, string storagePool, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, storageSubSystem, storagePool, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all volumes at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IVolumesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all volumes at a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IVolumesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Microsoft.AzureStack.Management.Fabric.Admin.csproj b/src/AzureStack/FabricAdmin/Fabric.Admin/Microsoft.AzureStack.Management.Fabric.Admin.csproj new file mode 100644 index 000000000000..034fcefea5aa --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Microsoft.AzureStack.Management.Fabric.Admin.csproj @@ -0,0 +1,14 @@ + + + + + Microsoft.AzureStack.Management.Fabric.Admin + Provides developers with libraries for the fabric admin under AzureStack to manage fabric infrastructure. + 0.1.0-preview + Microsoft.AzureStack.Management.Fabric.Admin + Microsoft Azure Stack;Fabric;REST HTTP client;azureostackfficial;netcore451511 + + + net452;netstandard1.4 + + diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/Properties/AssemblyInfo.cs b/src/AzureStack/FabricAdmin/Fabric.Admin/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..2db435654d62 --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/Properties/AssemblyInfo.cs @@ -0,0 +1,29 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Resources; + + +[assembly: AssemblyTitle("Microsoft Azure Stack Fabric Admin Management Library")] +[assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Stack Fabric Admin Resources.")] + +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Microsoft Azure .NET SDK")] +[assembly: AssemblyCopyright("Copyright © Microsoft")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: NeutralResourcesLanguage("en")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("0.1.0.0")] +[assembly: AssemblyFileVersion("0.1.0.0")] diff --git a/src/AzureStack/FabricAdmin/Fabric.Admin/generate.cmd b/src/AzureStack/FabricAdmin/Fabric.Admin/generate.cmd new file mode 100644 index 000000000000..3d5038c4cedb --- /dev/null +++ b/src/AzureStack/FabricAdmin/Fabric.Admin/generate.cmd @@ -0,0 +1,7 @@ +:: +:: Microsoft Azure SDK for Net - Generate library code +:: Copyright (C) Microsoft Corporation. All Rights Reserved. +:: + +@echo off +call %~dp0..\..\..\..\tools\generate.cmd azsadmin/resource-manager/fabric latest Azure current azure-rest-api-specs %CD% diff --git a/src/AzureStack/FabricAdmin/FabricAdmin.sln b/src/AzureStack/FabricAdmin/FabricAdmin.sln new file mode 100644 index 000000000000..f6a52f24dda5 --- /dev/null +++ b/src/AzureStack/FabricAdmin/FabricAdmin.sln @@ -0,0 +1,32 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26430.13 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Fabric.Admin", "Fabric.Admin\Microsoft.AzureStack.Management.Fabric.Admin.csproj", "{4960ACDE-30D6-4476-8B8D-40E51ABEE505}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Fabric.Tests", "Fabric.Admin.Tests\Fabric.Tests.csproj", "{1B24BC4A-6E4D-4FFB-B5D5-C9684C60A308}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4960ACDE-30D6-4476-8B8D-40E51ABEE505}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4960ACDE-30D6-4476-8B8D-40E51ABEE505}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4960ACDE-30D6-4476-8B8D-40E51ABEE505}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4960ACDE-30D6-4476-8B8D-40E51ABEE505}.Release|Any CPU.Build.0 = Release|Any CPU + {1B24BC4A-6E4D-4FFB-B5D5-C9684C60A308}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1B24BC4A-6E4D-4FFB-B5D5-C9684C60A308}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1B24BC4A-6E4D-4FFB-B5D5-C9684C60A308}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1B24BC4A-6E4D-4FFB-B5D5-C9684C60A308}.Release|Any CPU.Build.0 = Release|Any CPU + {EAE2AE14-948D-4613-A4E8-14C50D8D0472}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EAE2AE14-948D-4613-A4E8-14C50D8D0472}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EAE2AE14-948D-4613-A4E8-14C50D8D0472}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EAE2AE14-948D-4613-A4E8-14C50D8D0472}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/InfrastructureInsights.Tests.csproj b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/InfrastructureInsights.Tests.csproj new file mode 100644 index 000000000000..08110bd4eb88 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/InfrastructureInsights.Tests.csproj @@ -0,0 +1,27 @@ + + + + InfrastructureInsights.Tests + InfrastructureInsights.Tests Class Library + InfrastructureInsights.Tests + 1.0.0-preview + + + netcoreapp1.1 + + + + + + + + + PreserveNewest + + + + + + + + \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/InfrastructureInsightsCommon.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/InfrastructureInsightsCommon.cs new file mode 100644 index 000000000000..b961bc1772d5 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/InfrastructureInsightsCommon.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +using Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models; + +namespace InfrastructureInsights.Tests { + class InfrastructureInsightsCommon { + + // TODO: Compare tags + public static bool ResourceAreSame(Resource expected, Resource found) { + if (expected == null) return found == null; + return expected.Id == found.Id && + expected.Location == found.Location && + expected.Name == found.Name && + expected.Type == found.Type; + } + + public static bool ValidateResource(Resource resource) { + return resource != null && + resource.Id != null && + resource.Location != null && + resource.Name != null && + resource.Type != null; + } + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/InfrastructureInsightsTestBase.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/InfrastructureInsightsTestBase.cs new file mode 100644 index 000000000000..30301ce8348b --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/InfrastructureInsightsTestBase.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; +using Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models; +using Microsoft.Rest.Azure; +using System; +using System.Text; +using System.Collections.Generic; +using Xunit; + + +namespace InfrastructureInsights.Tests +{ + + public class InfrastructureInsightsTestBase : AzureStackTestBase + { + + // Helpful funcs + protected static Func ResourceName = (resource) => resource.Name; + protected static Func ResourceId = (resource) => resource.Id; + protected static Func ResourceLocation = (resource) => resource.Location; + protected static Func ResourceType = (resource) => resource.Type; + + protected override void ValidateClient(InfrastructureInsightsAdminClient client) { + Assert.NotNull(client); + + Assert.NotNull(client.Alerts); + Assert.NotNull(client.RegionHealths); + // Assert.NotNull(client.ResourceHealthRegistrations); + Assert.NotNull(client.ResourceHealths); + // Assert.NotNull(client.ServiceHealthRegistrations); + Assert.NotNull(client.ServiceHealths); + + Assert.False(String.IsNullOrEmpty(client.SubscriptionId)); + } + + public InfrastructureInsightsTestBase() { + } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/Properties/AssemblyInfo.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..d0225d176e20 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1,20 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Infra.Tests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Azure Stack Infra Admin Tests")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +[assembly: ComVisible(false)] + +[assembly: Guid("1b24bc4a-6e4d-4feb-b5d5-c9684c60a308")] + +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestCloseAlert.json b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestCloseAlert.json new file mode 100644 index 000000000000..3c1902419af1 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestCloseAlert.json @@ -0,0 +1,206 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1f60be3c-0123-4cac-83dd-95b0f68dae30" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"name\": \"148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:52:27.9460892Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:44:12.8595509Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Infrastructure management controller is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/FabricControllerRing/FabricControllerRing\",\r\n \"alertId\": \"148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"faultTypeId\": \"ServiceFabricClusterUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:52:27.9460892Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"fabricName\": \"FabricControllerRing\",\r\n \"description\": null,\r\n \"serviceType\": \"FabricControllerRing\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceRegistrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"impactedResourceDisplayName\": \"Infrastructure management controller\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"name\": \"17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:48:31.0247234Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:40:15.9830227Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:48:31.0247234Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Warning\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"name\": \"3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T20:24:27.4305971Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:49:19.6390621Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T20:24:27.4305971Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"name\": \"356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:21:34.6732222Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:19:19.5859341Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:21:34.6732222Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"name\": \"37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:33:12.719326Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:24:57.7138362Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:33:12.719326Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"name\": \"7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:52:27.9304636Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:44:12.8595509Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:52:27.9304636Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"name\": \"886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-30T19:49:07.0029782Z\",\r\n \"createdTimestamp\": \"2017-08-25T20:24:19.8253844Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-30T19:49:07.0029782Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"name\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"createdTimestamp\": \"2017-08-30T19:49:33.9350554Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-09-01T21:39:40.1913723Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Active\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"name\": \"b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:33:12.7349528Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:24:57.7450873Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Infrastructure management controller is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/FabricControllerRing/FabricControllerRing\",\r\n \"alertId\": \"b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"faultTypeId\": \"ServiceFabricClusterUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:33:12.7349528Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"fabricName\": \"FabricControllerRing\",\r\n \"description\": null,\r\n \"serviceType\": \"FabricControllerRing\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceRegistrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"impactedResourceDisplayName\": \"Infrastructure management controller\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"name\": \"c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:16:49.2779296Z\",\r\n \"createdTimestamp\": \"2017-08-22T05:29:09.4699501Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:16:49.2779296Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"name\": \"cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:29:55.676245Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:24:19.5943758Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:29:55.676245Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"name\": \"db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:50:18.7385957Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:29:19.6067697Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:50:18.7385957Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "17008" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvKII1i7Iuun4W2d1CHA4dBeiZ6xCKhDHNUTkXtbDVPQnpAy9Xt1u7xTY3gMC2dwbgOjOSYEM4JxdpaOAymX1aH6OtrKwzc467zp0jOTCXH+9xz+mQhwAkRYUWpHW8i0Z7xDsnxajoTlLL11cW2jIj" + ], + "x-ms-correlation-request-id": [ + "7a9fca4c-ad07-4124-b4a0-91a790c56c8f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14699" + ], + "x-ms-request-id": [ + "7a9fca4c-ad07-4124-b4a0-91a790c56c8f" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214400Z:7a9fca4c-ad07-4124-b4a0-91a790c56c8f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1?api-version=2016-05-01&user=AlertCloseTests", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvYWFmMDlkOTUtMWZkMy00MGI3LWE1YjktZDNhOGM4MmFmZmQxP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDEmdXNlcj1BbGVydENsb3NlVGVzdHM=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"createdTimestamp\": \"08/30/2017 19:49:33\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"09/01/2017 21:39:40\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\"\r\n },\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1131" + ], + "x-ms-client-request-id": [ + "d87f5387-0db7-4380-92a5-ba9fe87be4b5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"name\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-09-01T21:44:00.3675223Z\",\r\n \"createdTimestamp\": \"2017-08-30T19:49:33.9350554Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-09-01T21:44:00.3675223Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1147" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvFQ97CTBeDn+ewMm/dQ1a96MRyWLlj80WVDmV52rfe5VzauS7pewXd43hXssbkQTu2ZNDWw4/kXz3/DcNl5BgI33CisZCb+n0wQNZoClBjjLPAuS4LnaCxpP78JvpPrSyAT7ez9wFa7GPCyfCksru" + ], + "x-ms-correlation-request-id": [ + "4fb3aa29-1e1a-4f07-90b5-0dd7eb855e4d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "4fb3aa29-1e1a-4f07-90b5-0dd7eb855e4d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214400Z:4fb3aa29-1e1a-4f07-90b5-0dd7eb855e4d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvYWFmMDlkOTUtMWZkMy00MGI3LWE1YjktZDNhOGM4MmFmZmQxP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4cdbb4cd-4aac-477a-ad25-4c4932e5b4b8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"name\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-09-01T21:44:00.3675223Z\",\r\n \"createdTimestamp\": \"2017-08-30T19:49:33.9350554Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-09-01T21:44:00.3675223Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1147" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvn2/5qKJni8V2D+wepAMLLjCGMqoiffiotxAjClXHS1YGtGV6orZ8vw6XoRRRppiKiPN8CXfqUtD40s22Rkey+gUurj6jBmoveRmBYCmqs/ppXaCzqk8skKKa4JJ2jDdqAdTqgal8ytmA2af4aYGZ" + ], + "x-ms-correlation-request-id": [ + "b5b64974-a7ef-46ab-ba4f-ba7eeea98c35" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14698" + ], + "x-ms-request-id": [ + "b5b64974-a7ef-46ab-ba4f-ba7eeea98c35" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214400Z:b5b64974-a7ef-46ab-ba4f-ba7eeea98c35" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAlert.json b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAlert.json new file mode 100644 index 000000000000..74f6b1cd8e90 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAlert.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c9a5ceb1-cd27-4c78-bb21-7b6a3f484484" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"name\": \"148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:52:27.9460892Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:44:12.8595509Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Infrastructure management controller is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/FabricControllerRing/FabricControllerRing\",\r\n \"alertId\": \"148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"faultTypeId\": \"ServiceFabricClusterUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:52:27.9460892Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"fabricName\": \"FabricControllerRing\",\r\n \"description\": null,\r\n \"serviceType\": \"FabricControllerRing\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceRegistrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"impactedResourceDisplayName\": \"Infrastructure management controller\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"name\": \"17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:48:31.0247234Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:40:15.9830227Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:48:31.0247234Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Warning\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"name\": \"3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T20:24:27.4305971Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:49:19.6390621Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T20:24:27.4305971Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"name\": \"356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:21:34.6732222Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:19:19.5859341Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:21:34.6732222Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"name\": \"37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:33:12.719326Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:24:57.7138362Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:33:12.719326Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"name\": \"7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:52:27.9304636Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:44:12.8595509Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:52:27.9304636Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"name\": \"886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-30T19:49:07.0029782Z\",\r\n \"createdTimestamp\": \"2017-08-25T20:24:19.8253844Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-30T19:49:07.0029782Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"name\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"createdTimestamp\": \"2017-08-30T19:49:33.9350554Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-09-01T21:39:40.1913723Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Active\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"name\": \"b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:33:12.7349528Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:24:57.7450873Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Infrastructure management controller is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/FabricControllerRing/FabricControllerRing\",\r\n \"alertId\": \"b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"faultTypeId\": \"ServiceFabricClusterUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:33:12.7349528Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"fabricName\": \"FabricControllerRing\",\r\n \"description\": null,\r\n \"serviceType\": \"FabricControllerRing\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceRegistrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"impactedResourceDisplayName\": \"Infrastructure management controller\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"name\": \"c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:16:49.2779296Z\",\r\n \"createdTimestamp\": \"2017-08-22T05:29:09.4699501Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:16:49.2779296Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"name\": \"cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:29:55.676245Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:24:19.5943758Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:29:55.676245Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"name\": \"db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:50:18.7385957Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:29:19.6067697Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:50:18.7385957Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "17008" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvVFazO7eCUcbXHfx1Tqz6rjld+gJHD7pdesyiHY2v90hLn7ZalaKPb9BOrQWwJLG53Ww5iILPjOn60HRNuM+BFlWWM7xuR8DJU4RJ6kSXudcAwdeVdaDQeI+G5/mgg58ojMMGLp/tFUM/VgGW5Zmr" + ], + "x-ms-correlation-request-id": [ + "a8c20aab-8c40-4339-bec8-f73668e35c00" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14701" + ], + "x-ms-request-id": [ + "a8c20aab-8c40-4339-bec8-f73668e35c00" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214400Z:a8c20aab-8c40-4339-bec8-f73668e35c00" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/148820f7-807a-4edd-857b-a23c3dcb6acf?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvMTQ4ODIwZjctODA3YS00ZWRkLTg1N2ItYTIzYzNkY2I2YWNmP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "61e997fa-6bd0-4259-a55a-e0945129aa47" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"name\": \"148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:52:27.9460892Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:44:12.8595509Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Infrastructure management controller is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/FabricControllerRing/FabricControllerRing\",\r\n \"alertId\": \"148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"faultTypeId\": \"ServiceFabricClusterUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:52:27.9460892Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"fabricName\": \"FabricControllerRing\",\r\n \"description\": null,\r\n \"serviceType\": \"FabricControllerRing\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceRegistrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"impactedResourceDisplayName\": \"Infrastructure management controller\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1787" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvXba7MInpcvVBXEX5OHxbyMBMnyZicpkuvj1SR8eVKh51iMJoX3u+HfVLc3Q9ZI6e21huK6f7AwQVlt0GCJ1Q7lyxBkyozDwVw3yFiGm1+J1/QB5sTY9QTAzIhfU38BbzcdEbahffrYXrnn+Ib0pH" + ], + "x-ms-correlation-request-id": [ + "8b313941-7e35-423f-8245-4b898e915023" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14700" + ], + "x-ms-request-id": [ + "8b313941-7e35-423f-8245-4b898e915023" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214400Z:8b313941-7e35-423f-8245-4b898e915023" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAllAlerts.json b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAllAlerts.json new file mode 100644 index 000000000000..c93c4d7fe0bd --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAllAlerts.json @@ -0,0 +1,840 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "41954a0a-131a-4706-96a0-cc807508b7fa" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"name\": \"148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:52:27.9460892Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:44:12.8595509Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Infrastructure management controller is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/FabricControllerRing/FabricControllerRing\",\r\n \"alertId\": \"148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"faultTypeId\": \"ServiceFabricClusterUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:52:27.9460892Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"fabricName\": \"FabricControllerRing\",\r\n \"description\": null,\r\n \"serviceType\": \"FabricControllerRing\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceRegistrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"impactedResourceDisplayName\": \"Infrastructure management controller\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"name\": \"17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:48:31.0247234Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:40:15.9830227Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:48:31.0247234Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Warning\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"name\": \"3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T20:24:27.4305971Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:49:19.6390621Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T20:24:27.4305971Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"name\": \"356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:21:34.6732222Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:19:19.5859341Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:21:34.6732222Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"name\": \"37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:33:12.719326Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:24:57.7138362Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:33:12.719326Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"name\": \"7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:52:27.9304636Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:44:12.8595509Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:52:27.9304636Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"name\": \"886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-30T19:49:07.0029782Z\",\r\n \"createdTimestamp\": \"2017-08-25T20:24:19.8253844Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-30T19:49:07.0029782Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"name\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-09-01T21:44:00.3675223Z\",\r\n \"createdTimestamp\": \"2017-08-30T19:49:33.9350554Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-09-01T21:44:00.3675223Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"name\": \"b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:33:12.7349528Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:24:57.7450873Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Infrastructure management controller is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/FabricControllerRing/FabricControllerRing\",\r\n \"alertId\": \"b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"faultTypeId\": \"ServiceFabricClusterUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:33:12.7349528Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"fabricName\": \"FabricControllerRing\",\r\n \"description\": null,\r\n \"serviceType\": \"FabricControllerRing\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceRegistrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"impactedResourceDisplayName\": \"Infrastructure management controller\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"name\": \"c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:16:49.2779296Z\",\r\n \"createdTimestamp\": \"2017-08-22T05:29:09.4699501Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:16:49.2779296Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"name\": \"cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:29:55.676245Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:24:19.5943758Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:29:55.676245Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"name\": \"db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:50:18.7385957Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:29:19.6067697Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:50:18.7385957Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "17057" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRviK34CrlbGtgcOsePA+/dM/o5qK+XBooMBBm+cOX/p3tfIksbuC9uDw/2f2CWLk0CF83tEkSB6xnvxsO8a5axHexdVZREkPfa9Fps//G0dKVWCoVJchdTJncWBIaKPTmDMP1C1OFm9ejy/x22IpFV" + ], + "x-ms-correlation-request-id": [ + "309b6244-ac10-40ca-99cc-9a6165808ceb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14697" + ], + "x-ms-request-id": [ + "309b6244-ac10-40ca-99cc-9a6165808ceb" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214400Z:309b6244-ac10-40ca-99cc-9a6165808ceb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/148820f7-807a-4edd-857b-a23c3dcb6acf?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvMTQ4ODIwZjctODA3YS00ZWRkLTg1N2ItYTIzYzNkY2I2YWNmP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8ea2518e-58b5-4fa1-bf30-ad4ac0615a73" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"name\": \"148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:52:27.9460892Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:44:12.8595509Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Infrastructure management controller is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/FabricControllerRing/FabricControllerRing\",\r\n \"alertId\": \"148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"faultTypeId\": \"ServiceFabricClusterUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:52:27.9460892Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"fabricName\": \"FabricControllerRing\",\r\n \"description\": null,\r\n \"serviceType\": \"FabricControllerRing\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceRegistrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"impactedResourceDisplayName\": \"Infrastructure management controller\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1787" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvwoUY7TaiBu2QAQTcbIcmyBx9f8GMv4RjKQz9e+IWalcimSDyONDq5KYvoL8noU5FGVrqwXqeF+6lBBa/BtWAKDVZRw9eLUzYjqTNoIuHjI37JcIbmvZjnVPhjj6/gv1FylHkvmfBW5xJN8e5Psu7" + ], + "x-ms-correlation-request-id": [ + "36da9767-635b-4aac-8163-65ff0ca7667d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14696" + ], + "x-ms-request-id": [ + "36da9767-635b-4aac-8163-65ff0ca7667d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214400Z:36da9767-635b-4aac-8163-65ff0ca7667d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/17d030ef-7be7-4e12-a653-6158a3bc7643?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvMTdkMDMwZWYtN2JlNy00ZTEyLWE2NTMtNjE1OGEzYmM3NjQzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7c2707a6-e086-4eaa-849f-70a26226822f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"name\": \"17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:48:31.0247234Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:40:15.9830227Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:48:31.0247234Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Warning\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1703" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvFe2RHjt8wJVb/mrkDE3FtW31fWxX+BRxzf33uWpvWSHGKWay6WMaQnu2yvKfhYyToif01J66JjwFztw28lLsxmOzIu2nfvxyKdhSegbmy2a4DiGvfZH3ZG1Z1JptERdoC7yvZV5HYWysxCmYYPw0" + ], + "x-ms-correlation-request-id": [ + "f773a27c-24fc-4c40-8290-84338ebefefd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14695" + ], + "x-ms-request-id": [ + "f773a27c-24fc-4c40-8290-84338ebefefd" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214400Z:f773a27c-24fc-4c40-8290-84338ebefefd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/3489976e-f3a2-434f-8c17-c4b41dde22ff?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvMzQ4OTk3NmUtZjNhMi00MzRmLThjMTctYzRiNDFkZGUyMmZmP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8fde02d1-ae19-4a55-a378-195dfe329094" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"name\": \"3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T20:24:27.4305971Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:49:19.6390621Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T20:24:27.4305971Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1213" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvjPutFVK8PeNkdC9k7995EW9nDO+TgAEtZVsxw08KGetMQQDbEDprbADM0l4fpgYVChO7CRrwW8inNbL2t7IR5PD2l+wlEyfb+/1IY4PmONfk/LU4Z/1+XcNhsTGHVVy9K9d8+I1IrPqY4N6pn547" + ], + "x-ms-correlation-request-id": [ + "c76428dc-55ae-46fa-b75f-61eb74766fba" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14693" + ], + "x-ms-request-id": [ + "c76428dc-55ae-46fa-b75f-61eb74766fba" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214400Z:c76428dc-55ae-46fa-b75f-61eb74766fba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/356fd53c-b355-4522-ab5b-1a0f385381fa?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvMzU2ZmQ1M2MtYjM1NS00NTIyLWFiNWItMWEwZjM4NTM4MWZhP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b1263199-c91f-4a6a-a3cc-dc41bf2e5b8e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"name\": \"356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:21:34.6732222Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:19:19.5859341Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:21:34.6732222Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1213" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvUeY/FvNBULWkESKpADfRF21tamn2rDLeBGsaFFdkHce944YXKBQzmO+YPIkP9mT06Pq5Vc/8WNwEbZy0Fq/Qzk9n76lWBwlIBlyhX6/utinMTzzi8hh3hZoMIbuNTW5qZYWlNm8SOfjReArC2iG1" + ], + "x-ms-correlation-request-id": [ + "ace4394a-2b13-48f8-9f7b-1052ef808983" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14692" + ], + "x-ms-request-id": [ + "ace4394a-2b13-48f8-9f7b-1052ef808983" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214400Z:ace4394a-2b13-48f8-9f7b-1052ef808983" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/37fab95e-8981-4657-872a-d0a904308d26?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvMzdmYWI5NWUtODk4MS00NjU3LTg3MmEtZDBhOTA0MzA4ZDI2P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "92f6bffb-2c1b-4288-8b43-a9bb486cddd9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"name\": \"37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:33:12.719326Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:24:57.7138362Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:33:12.719326Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1699" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv2hNTmrRvQh/A6O9z0COvFPAufTq346d+U6abTqYATtxU59lF4OhNVCatke6UviNVUMxHvJ8MLEF7UWhZRVw5unjSeeCPvJ3aoLA2swlu2WgfLEJ6TmrY1z7Cf+5s8eaMb9VU+pIwBkTwvXVATi4+" + ], + "x-ms-correlation-request-id": [ + "68ae4812-1301-493a-b373-114eb82c1b69" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14691" + ], + "x-ms-request-id": [ + "68ae4812-1301-493a-b373-114eb82c1b69" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214400Z:68ae4812-1301-493a-b373-114eb82c1b69" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/7ff5f418-75e1-41e3-85c3-229e369313a3?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvN2ZmNWY0MTgtNzVlMS00MWUzLTg1YzMtMjI5ZTM2OTMxM2EzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f7848d60-29e7-48ae-bc54-f16e8561b7d9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"name\": \"7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:52:27.9304636Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:44:12.8595509Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:52:27.9304636Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1701" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvSEZhB9U0JMf1Mjff9mNAx/RNl1F/l4jZ7rbfj4+q6hINUQXZ23f4x8BjOBr9poj99noSRuiZMa6456lfaW8rAURFtrOAnE0EG+/+Xbp8+hHJNR63Q9Ko9h5t+OyD4V78OCm++i7yl1D2TkE8hHLb" + ], + "x-ms-correlation-request-id": [ + "5e34f4d0-1843-4717-9d77-c33db2475831" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14690" + ], + "x-ms-request-id": [ + "5e34f4d0-1843-4717-9d77-c33db2475831" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214400Z:5e34f4d0-1843-4717-9d77-c33db2475831" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/886b39e2-d10a-4acc-9b23-0dade1efc70c?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvODg2YjM5ZTItZDEwYS00YWNjLTliMjMtMGRhZGUxZWZjNzBjP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8534ff8c-71b6-468a-b9f3-ddf50370804d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"name\": \"886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-30T19:49:07.0029782Z\",\r\n \"createdTimestamp\": \"2017-08-25T20:24:19.8253844Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-30T19:49:07.0029782Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1147" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvWDSuZJw898zgDPbMkWHLOYadrB4bpT97uUAw+JCH020eguixFfhLcRoDi8Hf96oYV0od77fV6CeOLScfwT1z8ItOXjZy4KPONyA/hR6TBnVg+HFAfkOhwcaDOpI+ExD/w3QqQkhejmU18Uc2StMq" + ], + "x-ms-correlation-request-id": [ + "a11ef331-a944-4146-ac46-1c5b88d1d672" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14689" + ], + "x-ms-request-id": [ + "a11ef331-a944-4146-ac46-1c5b88d1d672" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214401Z:a11ef331-a944-4146-ac46-1c5b88d1d672" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvYWFmMDlkOTUtMWZkMy00MGI3LWE1YjktZDNhOGM4MmFmZmQxP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0be64633-bdfb-40be-a5fe-502a55fd2a93" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"name\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-09-01T21:44:00.3675223Z\",\r\n \"createdTimestamp\": \"2017-08-30T19:49:33.9350554Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-09-01T21:44:00.3675223Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1147" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvirNTClIFVnju/ZVasIH/6X4BGQyxZXBJ75zPKW/St1plAbqM3VmQwPwje3Nku8ONc229o2EAgJAfzXlqc/dy8OgdQelgrLPlgl/DqboQ51EmWkJ/u+nv+SykhU8MxnDpMsAURfRjYwMKGM/Bc4o6" + ], + "x-ms-correlation-request-id": [ + "f55edccc-0ec8-4c37-8945-75e329aac6af" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14688" + ], + "x-ms-request-id": [ + "f55edccc-0ec8-4c37-8945-75e329aac6af" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214401Z:f55edccc-0ec8-4c37-8945-75e329aac6af" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/b8f81ea8-cf7d-4909-a9f4-0779909e15eb?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvYjhmODFlYTgtY2Y3ZC00OTA5LWE5ZjQtMDc3OTkwOWUxNWViP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "004982a5-9739-4de7-8182-d2399c7ecb10" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"name\": \"b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:33:12.7349528Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:24:57.7450873Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Infrastructure management controller is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/FabricControllerRing/FabricControllerRing\",\r\n \"alertId\": \"b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"faultTypeId\": \"ServiceFabricClusterUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:33:12.7349528Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"fabricName\": \"FabricControllerRing\",\r\n \"description\": null,\r\n \"serviceType\": \"FabricControllerRing\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceRegistrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"impactedResourceDisplayName\": \"Infrastructure management controller\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1787" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv1VetiIcr/pUbrhZVSEb7ApKWfXfa7IsiNPtvygHq9v3rrnzjyO0joytem+/6r/toXFa7gg2ZWP0eEp4FibN//inNr6gfR2ZJ4w1M46kxnRIwgE+3OPnhb8FR6w5iUWBvMLh8GHbE7me9qmabssN6" + ], + "x-ms-correlation-request-id": [ + "d2a58f87-2972-45bb-943b-eae6731b4e3c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14687" + ], + "x-ms-request-id": [ + "d2a58f87-2972-45bb-943b-eae6731b4e3c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214401Z:d2a58f87-2972-45bb-943b-eae6731b4e3c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/c0328148-006b-482b-9c75-ad58c454225b?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvYzAzMjgxNDgtMDA2Yi00ODJiLTljNzUtYWQ1OGM0NTQyMjViP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e40a393f-39f7-40fc-8794-1b9835937bd9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"name\": \"c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:16:49.2779296Z\",\r\n \"createdTimestamp\": \"2017-08-22T05:29:09.4699501Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:16:49.2779296Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1213" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvWRD0JpHXGeTEWUxm3OZD7vHSzq4lnqja/1MHx1dL9quy5Tl111rfGwFZjME/5KuVwCW2h9pJ/ChsLukmS/J2WzY9JYV8KZiv2ESqWvJEiuQrVuPxyP2hyzVFUJstth/DNeOT6HzDLu4bogj9ZmmR" + ], + "x-ms-correlation-request-id": [ + "dce22232-84c1-4738-b2bb-78217c75a0c7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14686" + ], + "x-ms-request-id": [ + "dce22232-84c1-4738-b2bb-78217c75a0c7" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214401Z:dce22232-84c1-4738-b2bb-78217c75a0c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/cf278262-78cd-43eb-8cd8-9c4cac5e75f7?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvY2YyNzgyNjItNzhjZC00M2ViLThjZDgtOWM0Y2FjNWU3NWY3P2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "afb2ab51-7765-4f7e-9bdb-ed1ebb878507" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"name\": \"cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:29:55.676245Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:24:19.5943758Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:29:55.676245Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1211" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv/aUWGmjstpuJu3Dpbu92NGrH84spT4GiuUeEJqIh1UPPW2oPFp8Ti60njjkhmbTReIipN4kn/8y4MT2SfPXWaiq5Mr3GcfuDf6A7kGt03Nf3tuDcCtGeQ4ScdsPpJ+RazWhi0MN+fTK4gOz4JhJQ" + ], + "x-ms-correlation-request-id": [ + "3052bd0c-20f0-4560-b3f5-954d5cb0b982" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14685" + ], + "x-ms-request-id": [ + "3052bd0c-20f0-4560-b3f5-954d5cb0b982" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214401Z:3052bd0c-20f0-4560-b3f5-954d5cb0b982" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/db1a20c7-08f4-4453-96b5-0d73461a8cac?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvZGIxYTIwYzctMDhmNC00NDUzLTk2YjUtMGQ3MzQ2MWE4Y2FjP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "678949aa-5d3f-497b-b3eb-936dc279997f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"name\": \"db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:50:18.7385957Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:29:19.6067697Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:50:18.7385957Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1213" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvl86kSW9buIFy1JiO4hHSmVezS5C5MKu1qUYk3I2Ijzm6yXaNnjjPv5Xn/oOE9yAyZENppPsskih3WiHEPp6pYJK44XfWOXkkCj6S3dWXdiw+mtV6Dokf9CMzjM+WBPx7cx8whECaXm8+sos5Buqi" + ], + "x-ms-correlation-request-id": [ + "71b8f121-4df0-4338-8cd0-f4b66afef645" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14684" + ], + "x-ms-request-id": [ + "71b8f121-4df0-4338-8cd0-f4b66afef645" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214401Z:71b8f121-4df0-4338-8cd0-f4b66afef645" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAllRegionHealths.json b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAllRegionHealths.json new file mode 100644 index 000000000000..d3040df620c7 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAllRegionHealths.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "78290843-393d-42d2-b51a-69af56ef2fb5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"usageMetrics\": [\r\n {\r\n \"name\": \"Physical memory\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"GB\",\r\n \"value\": 84.409721374511719\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"GB\",\r\n \"value\": 173.84765625\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Physical storage\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"TB\",\r\n \"value\": 0.30929161235690117\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"TB\",\r\n \"value\": 2.1573221571743488\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Public IP address pools\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"One\",\r\n \"value\": 32.0\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"One\",\r\n \"value\": 223.0\r\n }\r\n ]\r\n }\r\n ],\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 1\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "825" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvOoe4YG7a/SBIVR/yBOypfYkeiIkuBZKbHepvp+zNt5cVeRrE0+k36O5MJHUiuYWMSp7pDn+MkdV2Ya7JiySuuNvmWJwJUc7AI67DsVURwk4JaLjqx98OpI9JjbEuyPfSG4wzliMWGpRuG7k3bgvq" + ], + "x-ms-correlation-request-id": [ + "9ec4d88e-754f-4b15-b80f-d2420f33f21d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14759" + ], + "x-ms-request-id": [ + "9ec4d88e-754f-4b15-b80f-d2420f33f21d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214355Z:9ec4d88e-754f-4b15-b80f-d2420f33f21d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbD9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4444196b-c487-4e91-86a5-4eb2947ce423" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"usageMetrics\": [\r\n {\r\n \"name\": \"Physical memory\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"GB\",\r\n \"value\": 84.409721374511719\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"GB\",\r\n \"value\": 173.84765625\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Physical storage\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"TB\",\r\n \"value\": 0.30929161235690117\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"TB\",\r\n \"value\": 2.1573221571743488\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Public IP address pools\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"One\",\r\n \"value\": 32.0\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"One\",\r\n \"value\": 223.0\r\n }\r\n ]\r\n }\r\n ],\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 1\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "813" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvkt5I0iTA9rEOq6nSb+ZXgFQtlf3huLvPuopOB4p0ApubIOgrXit91R0poA/LaflhTaByU5x+RDUV1rYeAagOuWceLVOx1uIROc/A3HdOqTfKdp4OUendcKUC7QVzXF0/DlhlN+e0Sif+kZYvD/8E" + ], + "x-ms-correlation-request-id": [ + "c8c1f7da-65f6-4ff1-a415-c97275c70277" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14758" + ], + "x-ms-request-id": [ + "c8c1f7da-65f6-4ff1-a415-c97275c70277" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214355Z:c8c1f7da-65f6-4ff1-a415-c97275c70277" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAllResourceHealths.json b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAllResourceHealths.json new file mode 100644 index 000000000000..05ecb551107f --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAllResourceHealths.json @@ -0,0 +1,2888 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7bd0afb6-46e0-4671-8185-5d63f3f4a276" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"name\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"displayName\": \"Key Vault\",\r\n \"namespace\": \"Microsoft.KeyVault.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local/infraRoles/Key Vault\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"name\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"displayName\": \"Storage\",\r\n \"namespace\": \"Microsoft.Storage.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f/infraRoles/Storage\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"name\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"displayName\": \"Updates\",\r\n \"namespace\": \"Microsoft.Update.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local/infraRoles/Updates\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"name\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"displayName\": \"Compute\",\r\n \"namespace\": \"Microsoft.Compute.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/infraRoles/Compute\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"name\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"displayName\": \"Network\",\r\n \"namespace\": \"Microsoft.Network.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/infraRoles/Network\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"name\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"displayName\": \"Region Management\",\r\n \"namespace\": \"Microsoft.InfrastructureInsights.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/infraRoles/Region Management\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"name\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"displayName\": \"Capacity\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Capacity\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 1\r\n },\r\n \"healthState\": \"Warning\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "6508" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvcMY5ZLFArxRptk0zP3u5lrsP8VdDA+oO9c1htHAGyCJVL6umoyVbe5teioZO7TRLQ3dYDO+VV6Gztto4ROaF34EeZSEdW9HSMtMXcrQ9UV+sgkQtkNjEePQX1k2g5bdPUrYSE1+LwQ8rzcWYca5K" + ], + "x-ms-correlation-request-id": [ + "f99dc7bb-8ddd-418b-a8ac-563b9c76474d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14757" + ], + "x-ms-request-id": [ + "f99dc7bb-8ddd-418b-a8ac-563b9c76474d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214355Z:f99dc7bb-8ddd-418b-a8ac-563b9c76474d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy8wYTJkZjZkOC00NTcwLTRjZjUtOGM4Zi04ZDk2ZGMxZmQyYTkvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "06e6fd84-432d-4659-8125-73b1cf09a6f1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv5ObvOfGdDijAtE037gLGMhnOVQrs9DQlH6OA03Ah8dGorb7UM+t2/S5lTGZ3zhl0CE5KVmcWmBwLtywHDoHX0+dPqsGinsct7CUCy7/DS/kIXVlnbKv5RWLx4przzX6C+Az0XgASHtLAftZ9bgsk" + ], + "x-ms-correlation-request-id": [ + "8e6ad86e-b691-44c6-81cd-3368d41bcc1e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14756" + ], + "x-ms-request-id": [ + "8e6ad86e-b691-44c6-81cd-3368d41bcc1e" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214355Z:8e6ad86e-b691-44c6-81cd-3368d41bcc1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/12bf0da4-e310-4767-bc5f-5d31c0414062/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy8xMmJmMGRhNC1lMzEwLTQ3NjctYmM1Zi01ZDMxYzA0MTQwNjIvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "877bae40-7dd5-4a5c-84a1-afe76f9b9c54" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvXzrin+c2q15qXd6vWSrq+RnrcXCN2FQHdq8u/fzcG1Hogde9QsPltUuZ75jYX0k0k5B4Q6GoLsXNTvHGiiVCHoEb1htX8SC6Gb3wqpvV5ZlJK02AA5gVsmX5nXdNjJSIJN379444c/x9EsrvTaCE" + ], + "x-ms-correlation-request-id": [ + "bef3e7ca-2ebc-48c6-941b-4e27bef1ca4e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14755" + ], + "x-ms-request-id": [ + "bef3e7ca-2ebc-48c6-941b-4e27bef1ca4e" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214355Z:bef3e7ca-2ebc-48c6-941b-4e27bef1ca4e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/2f2fc564-8714-41c3-89ea-ab7f9bf8483b/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy8yZjJmYzU2NC04NzE0LTQxYzMtODllYS1hYjdmOWJmODQ4M2IvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e99d151c-e933-4400-8796-3a74159c607d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvuLtwyw2r6qOwOuGeL0rz9NvSnzG5x9khHXKEMwF/TAT1is5Q4SxkQG4VFKXp1TiI2BLi5kNbn+RNECuLzWjepswxU00i+MZYjiothH4Kh88Y7K/0X4VK6L6B0eE1VCuQe81l8P5JECu0mQ09CeE7" + ], + "x-ms-correlation-request-id": [ + "b2f871fa-2a7a-4770-a21f-93810faf1869" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14754" + ], + "x-ms-request-id": [ + "b2f871fa-2a7a-4770-a21f-93810faf1869" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:b2f871fa-2a7a-4770-a21f-93810faf1869" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/423f8608-0c64-4d87-8c07-811adfb7cc41/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy80MjNmODYwOC0wYzY0LTRkODctOGMwNy04MTFhZGZiN2NjNDEvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fec96795-71f7-48e3-aafe-982fbe75dea7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvpxxYLP2l8IuZJc5DB3o//c3IrnUXS1npHRRdENQ9hC+Zo3LzT5RDrtEMu8tg+Csa/QwPjNfVeLh6KIFNwUnvPAxT65VpNW/G+5oD4YXWisrEH5q0rflbN2TaM3ku8dUx1TeQI56y1QDtfcy1Z6HG" + ], + "x-ms-correlation-request-id": [ + "401f28f7-f13a-4ea5-8047-8743f5074d2f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14753" + ], + "x-ms-request-id": [ + "401f28f7-f13a-4ea5-8047-8743f5074d2f" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:401f28f7-f13a-4ea5-8047-8743f5074d2f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/98751379-f9fe-4791-bc6f-f77eb1de3440/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy85ODc1MTM3OS1mOWZlLTQ3OTEtYmM2Zi1mNzdlYjFkZTM0NDAvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7c8ce05e-b652-4944-886b-f93b08398d2e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvMTkx2Bil8NrI+dCbR4/0UmBSKbdU5uY3g3l8Mcoa3DbAB+WjxFb5txmk/GWWU7StAva9mknLvzi499ntIgdpMflmrabSiNWEdU/loZGYEIvPa3LQFF0nbJNK572qhNwJcJWydDKTsVSfDH/iJEqy" + ], + "x-ms-correlation-request-id": [ + "12f44c24-b00c-430a-81aa-df69efb5f7a5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14752" + ], + "x-ms-request-id": [ + "12f44c24-b00c-430a-81aa-df69efb5f7a5" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:12f44c24-b00c-430a-81aa-df69efb5f7a5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/bb58377f-3d7d-4d7f-b3b3-d433d422bf9e/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9iYjU4Mzc3Zi0zZDdkLTRkN2YtYjNiMy1kNDMzZDQyMmJmOWUvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "00f8c89b-cebf-4ce3-b0e7-6dc5b6673ad7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv0Xi9Nh9iyU2SXHJnd+drV/34Kph7SVzhlfYJUavJguEZyoNMYpCT9Stm0jvUruBt/csb/JAhWgy2b35+P398xiQg+y/U2OS5/Ds+SmdcTl24WaBB+5/yiaCoGUnxOD2F2zi5JVKGqImfgTrPShEk" + ], + "x-ms-correlation-request-id": [ + "ef5429d5-9382-4dd3-9612-550ea20ddbca" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14751" + ], + "x-ms-request-id": [ + "ef5429d5-9382-4dd3-9612-550ea20ddbca" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:ef5429d5-9382-4dd3-9612-550ea20ddbca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7945c74d-785b-4b1b-83d8-d10df1594ec1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/0414499b-2f9a-486d-88bb-d8573e1510ec\",\r\n \"name\": \"0414499b-2f9a-486d-88bb-d8573e1510ec\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"0414499b-2f9a-486d-88bb-d8573e1510ec\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ComputeController\",\r\n \"resourceDisplayName\": \"Compute controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ComputeController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/184b3d84-68c9-46b3-81e6-bab21b92c1c5\",\r\n \"name\": \"184b3d84-68c9-46b3-81e6-bab21b92c1c5\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"184b3d84-68c9-46b3-81e6-bab21b92c1c5\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultInternalControlPlane\",\r\n \"resourceDisplayName\": \"Key Vault controller (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultInternalControlPlane\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/2df06d73-895e-4b34-86ba-2ed9996de5b9\",\r\n \"name\": \"2df06d73-895e-4b34-86ba-2ed9996de5b9\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"2df06d73-895e-4b34-86ba-2ed9996de5b9\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ServicesController\",\r\n \"resourceDisplayName\": \"Infrastructure role controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ServicesController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/2f44b781-4af4-4c8c-97e0-219c4ed9984f\",\r\n \"name\": \"2f44b781-4af4-4c8c-97e0-219c4ed9984f\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"2f44b781-4af4-4c8c-97e0-219c4ed9984f\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"NetworkController\",\r\n \"resourceDisplayName\": \"Network controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/NetworkController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/31fbecbf-4d5b-4d1e-8b57-f904f95ca4cb\",\r\n \"name\": \"31fbecbf-4d5b-4d1e-8b57-f904f95ca4cb\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"31fbecbf-4d5b-4d1e-8b57-f904f95ca4cb\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AzureResourceManagerAdmin\",\r\n \"resourceDisplayName\": \"Azure Resource Manager (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AzureResourceManagerAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/396f261b-06f9-4532-b060-bda463de8e93\",\r\n \"name\": \"396f261b-06f9-4532-b060-bda463de8e93\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"396f261b-06f9-4532-b060-bda463de8e93\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"RASGateway\",\r\n \"resourceDisplayName\": \"Edge gateway\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/RASGateway\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/3ba3d302-5cb0-4cf2-bbf0-d78b86441bc8\",\r\n \"name\": \"3ba3d302-5cb0-4cf2-bbf0-d78b86441bc8\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"3ba3d302-5cb0-4cf2-bbf0-d78b86441bc8\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"InsightsServiceAdmin\",\r\n \"resourceDisplayName\": \"Insights service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/InsightsServiceAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/3dfbcdda-fba8-45ec-a8a5-c4c2f955ee69\",\r\n \"name\": \"3dfbcdda-fba8-45ec-a8a5-c4c2f955ee69\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"3dfbcdda-fba8-45ec-a8a5-c4c2f955ee69\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"EnterpriseCloudEngine\",\r\n \"resourceDisplayName\": \"Infrastructure deployment\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/EnterpriseCloudEngine\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/4153b36c-e574-4f4e-af81-d2d3f2e46cb4\",\r\n \"name\": \"4153b36c-e574-4f4e-af81-d2d3f2e46cb4\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"4153b36c-e574-4f4e-af81-d2d3f2e46cb4\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ActiveDirectoryCertificateServices\",\r\n \"resourceDisplayName\": \"Certificate management\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ActiveDirectoryCertificateServices\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/4d28f77a-5fb1-4e49-bc68-fad4a703b1da\",\r\n \"name\": \"4d28f77a-5fb1-4e49-bc68-fad4a703b1da\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"4d28f77a-5fb1-4e49-bc68-fad4a703b1da\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"PortalUser\",\r\n \"resourceDisplayName\": \"Portal (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/PortalUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5492ed3b-f8ca-4e6d-85c6-428337ae02a4\",\r\n \"name\": \"5492ed3b-f8ca-4e6d-85c6-428337ae02a4\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"5492ed3b-f8ca-4e6d-85c6-428337ae02a4\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"SLBMultiplexer\",\r\n \"resourceDisplayName\": \"Load balancer multiplexer\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/SLBMultiplexer\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5e53a6eb-3797-4c4e-bd1c-325a89c881e1\",\r\n \"name\": \"5e53a6eb-3797-4c4e-bd1c-325a89c881e1\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"5e53a6eb-3797-4c4e-bd1c-325a89c881e1\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"BackupController\",\r\n \"resourceDisplayName\": \"Backup controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/BackupController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5f392616-929f-48d4-a561-4004c1723d26\",\r\n \"name\": \"5f392616-929f-48d4-a561-4004c1723d26\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"5f392616-929f-48d4-a561-4004c1723d26\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ApplicationGateway\",\r\n \"resourceDisplayName\": \"Partition request broker (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ApplicationGateway\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5f93ed37-95a3-4bb7-ae66-9b8a6fef79ad\",\r\n \"name\": \"5f93ed37-95a3-4bb7-ae66-9b8a6fef79ad\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"5f93ed37-95a3-4bb7-ae66-9b8a6fef79ad\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"SeedRing\",\r\n \"resourceDisplayName\": \"Privileged endpoint\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/SeedRing\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/637b5b8b-37c9-494c-9a08-60a8170afe9f\",\r\n \"name\": \"637b5b8b-37c9-494c-9a08-60a8170afe9f\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"637b5b8b-37c9-494c-9a08-60a8170afe9f\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"HealthMonitoring\",\r\n \"resourceDisplayName\": \"Health controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthMonitoring\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/644e453a-5dcb-48b0-ba8d-b67a798400cc\",\r\n \"name\": \"644e453a-5dcb-48b0-ba8d-b67a798400cc\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"644e453a-5dcb-48b0-ba8d-b67a798400cc\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"GalleryServiceUser\",\r\n \"resourceDisplayName\": \"Gallery service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/GalleryServiceUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/66cace75-f1a0-46d9-a3f9-79f355f02ed4\",\r\n \"name\": \"66cace75-f1a0-46d9-a3f9-79f355f02ed4\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"66cace75-f1a0-46d9-a3f9-79f355f02ed4\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AzureConsistentStorageRing\",\r\n \"resourceDisplayName\": \"Storage services\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AzureConsistentStorageRing\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/6ba0cf59-21e0-4493-8636-d4c0a0f63f57\",\r\n \"name\": \"6ba0cf59-21e0-4493-8636-d4c0a0f63f57\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"6ba0cf59-21e0-4493-8636-d4c0a0f63f57\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AuthorizationServiceUser\",\r\n \"resourceDisplayName\": \"Authorization service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AuthorizationServiceUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/7b201ea5-0539-49c3-9478-aaadecdaca3c\",\r\n \"name\": \"7b201ea5-0539-49c3-9478-aaadecdaca3c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"7b201ea5-0539-49c3-9478-aaadecdaca3c\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AzureResourceManagerUser\",\r\n \"resourceDisplayName\": \"Azure Resource Manager (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AzureResourceManagerUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/830841e0-0388-45c0-b641-c01c6a202145\",\r\n \"name\": \"830841e0-0388-45c0-b641-c01c6a202145\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"830841e0-0388-45c0-b641-c01c6a202145\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"MicrosoftSQLServer\",\r\n \"resourceDisplayName\": \"Internal data store\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/MicrosoftSQLServer\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/86b0371c-8dc1-4923-9461-103642e4a418\",\r\n \"name\": \"86b0371c-8dc1-4923-9461-103642e4a418\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"86b0371c-8dc1-4923-9461-103642e4a418\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"GalleryServiceAdmin\",\r\n \"resourceDisplayName\": \"Gallery service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/GalleryServiceAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/8944c315-446f-465d-a5b7-38dbf78436fb\",\r\n \"name\": \"8944c315-446f-465d-a5b7-38dbf78436fb\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"8944c315-446f-465d-a5b7-38dbf78436fb\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AuthorizationServiceAdmin\",\r\n \"resourceDisplayName\": \"Authorization service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AuthorizationServiceAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/90519aa6-9042-437b-affe-1dd5a1122e62\",\r\n \"name\": \"90519aa6-9042-437b-affe-1dd5a1122e62\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"90519aa6-9042-437b-affe-1dd5a1122e62\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"NonPrivilegedApplicationGateway\",\r\n \"resourceDisplayName\": \"Partition request broker (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/NonPrivilegedApplicationGateway\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/9983690e-1252-47d3-90f8-9292b9d90cfe\",\r\n \"name\": \"9983690e-1252-47d3-90f8-9292b9d90cfe\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"9983690e-1252-47d3-90f8-9292b9d90cfe\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"UsageServiceAdmin\",\r\n \"resourceDisplayName\": \"Usage service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/UsageServiceAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/9a8e1cef-3337-49c6-97ec-4e2da70e2357\",\r\n \"name\": \"9a8e1cef-3337-49c6-97ec-4e2da70e2357\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"9a8e1cef-3337-49c6-97ec-4e2da70e2357\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultDataPlane\",\r\n \"resourceDisplayName\": \"Key Vault service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultDataPlane\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/a9da3e57-6ade-42fd-975a-19db789c2ae0\",\r\n \"name\": \"a9da3e57-6ade-42fd-975a-19db789c2ae0\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"a9da3e57-6ade-42fd-975a-19db789c2ae0\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ActiveDirectoryDomainServices\",\r\n \"resourceDisplayName\": \"Directory management\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ActiveDirectoryDomainServices\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/b9097d6f-e3b2-4dfc-a0bc-8ad66e76488a\",\r\n \"name\": \"b9097d6f-e3b2-4dfc-a0bc-8ad66e76488a\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"b9097d6f-e3b2-4dfc-a0bc-8ad66e76488a\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultNamingService\",\r\n \"resourceDisplayName\": \"Key Vault name manager\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultNamingService\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/c4c065c2-b43a-43a9-be86-43fadb5f2b98\",\r\n \"name\": \"c4c065c2-b43a-43a9-be86-43fadb5f2b98\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"c4c065c2-b43a-43a9-be86-43fadb5f2b98\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"SubscriptionsServices\",\r\n \"resourceDisplayName\": \"Subscriptions service\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/SubscriptionsServices\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/c53f33bc-28ae-451b-a982-723f85cf39ac\",\r\n \"name\": \"c53f33bc-28ae-451b-a982-723f85cf39ac\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"c53f33bc-28ae-451b-a982-723f85cf39ac\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultControlPlane\",\r\n \"resourceDisplayName\": \"Key Vault controller (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultControlPlane\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"name\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"FabricControllerRing\",\r\n \"resourceDisplayName\": \"Infrastructure management controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/d706dddc-7c69-46b6-8033-a5540a2322b3\",\r\n \"name\": \"d706dddc-7c69-46b6-8033-a5540a2322b3\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"d706dddc-7c69-46b6-8033-a5540a2322b3\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ActiveDirectoryFederationServices\",\r\n \"resourceDisplayName\": \"Active Directory Federation Services\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ActiveDirectoryFederationServices\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/d8484c12-9008-420c-91a8-e69d1754c95b\",\r\n \"name\": \"d8484c12-9008-420c-91a8-e69d1754c95b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"d8484c12-9008-420c-91a8-e69d1754c95b\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AzureBridge\",\r\n \"resourceDisplayName\": \"Azure bridge\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AzureBridge\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/d911feeb-88f2-480b-a488-c642665f776b\",\r\n \"name\": \"d911feeb-88f2-480b-a488-c642665f776b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"d911feeb-88f2-480b-a488-c642665f776b\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"UsageServiceUser\",\r\n \"resourceDisplayName\": \"Usage service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/UsageServiceUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/dac03a22-b857-412c-8c51-db1dae484fe8\",\r\n \"name\": \"dac03a22-b857-412c-8c51-db1dae484fe8\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"dac03a22-b857-412c-8c51-db1dae484fe8\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultInternalDataPlane\",\r\n \"resourceDisplayName\": \"Key Vault service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultInternalDataPlane\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/e101540a-6d95-4c0c-9c3a-1eb92d06e461\",\r\n \"name\": \"e101540a-6d95-4c0c-9c3a-1eb92d06e461\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"e101540a-6d95-4c0c-9c3a-1eb92d06e461\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"InsightsServiceUser\",\r\n \"resourceDisplayName\": \"Insights service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/InsightsServiceUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/e42ef826-07d7-4cea-9db0-dc831a05d05e\",\r\n \"name\": \"e42ef826-07d7-4cea-9db0-dc831a05d05e\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"e42ef826-07d7-4cea-9db0-dc831a05d05e\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"StorageController\",\r\n \"resourceDisplayName\": \"Storage controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/StorageController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/f1af7248-0883-4d9b-9c01-45f5d86a109c\",\r\n \"name\": \"f1af7248-0883-4d9b-9c01-45f5d86a109c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"f1af7248-0883-4d9b-9c01-45f5d86a109c\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"PortalAdmin\",\r\n \"resourceDisplayName\": \"Portal (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/PortalAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "43578" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv6I29QSMrBtvTaZZ3qs213sigZF4P+yS8BvQU4T/rvKQGw2ACUY2E8JhLN2n/3A4M05vtrcKwH0vCuB1FGtnnwS4uPYFR8Hx4yA6wrGbwhKKERrAtqVu098fE+Nw+kXXp9pI3o18SE36ORc5Fzdnw" + ], + "x-ms-correlation-request-id": [ + "adfd0a1e-ccae-4f52-bee1-e4997dfa1a47" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14750" + ], + "x-ms-request-id": [ + "adfd0a1e-ccae-4f52-bee1-e4997dfa1a47" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:adfd0a1e-ccae-4f52-bee1-e4997dfa1a47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/0414499b-2f9a-486d-88bb-d8573e1510ec?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzA0MTQ0OTliLTJmOWEtNDg2ZC04OGJiLWQ4NTczZTE1MTBlYz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cc55a2ea-03c2-4467-9609-62ce06ab6f26" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/0414499b-2f9a-486d-88bb-d8573e1510ec\",\r\n \"name\": \"0414499b-2f9a-486d-88bb-d8573e1510ec\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"0414499b-2f9a-486d-88bb-d8573e1510ec\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ComputeController\",\r\n \"resourceDisplayName\": \"Compute controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ComputeController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1164" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv+yjoM4GEeduygn5m5Qdf/xoIHpT3FITu66MtKlforTlv64wslEBUaevNmoFD8n8yZLBlvn7WfSCh3svbWIKOG2A+8f4RscVXoPrjSYdFsVVsWbjlChSI5gq4No+evIliZyOLfkogSYYkZ3Y3OZxT" + ], + "x-ms-correlation-request-id": [ + "981ec3c0-cde0-4cb9-bc85-ab59236b5503" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14749" + ], + "x-ms-request-id": [ + "981ec3c0-cde0-4cb9-bc85-ab59236b5503" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:981ec3c0-cde0-4cb9-bc85-ab59236b5503" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/184b3d84-68c9-46b3-81e6-bab21b92c1c5?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzE4NGIzZDg0LTY4YzktNDZiMy04MWU2LWJhYjIxYjkyYzFjNT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2fefdf07-53f9-46a0-bb4f-6f993a6d0ef7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/184b3d84-68c9-46b3-81e6-bab21b92c1c5\",\r\n \"name\": \"184b3d84-68c9-46b3-81e6-bab21b92c1c5\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"184b3d84-68c9-46b3-81e6-bab21b92c1c5\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultInternalControlPlane\",\r\n \"resourceDisplayName\": \"Key Vault controller (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultInternalControlPlane\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1204" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvXa9AI28tIKHy1uIXMLa/37jvOmuW/kW1fqQaCHIZIaAmzSdRoNM51iHxoQUwxweLXcXPKNxF9XgzC6vCbNnRU5iJuBwx/Wq/PkhBIt3KUf3BdGFxcemoTrBEG6c6vAi/crUILE9r8/0t6yyRWGmp" + ], + "x-ms-correlation-request-id": [ + "d38ef16e-3c9c-41fe-b84c-b832f9619f3d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14748" + ], + "x-ms-request-id": [ + "d38ef16e-3c9c-41fe-b84c-b832f9619f3d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:d38ef16e-3c9c-41fe-b84c-b832f9619f3d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/2df06d73-895e-4b34-86ba-2ed9996de5b9?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzJkZjA2ZDczLTg5NWUtNGIzNC04NmJhLTJlZDk5OTZkZTViOT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8ea125c2-158e-4c9f-9063-f25f70366e4f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/2df06d73-895e-4b34-86ba-2ed9996de5b9\",\r\n \"name\": \"2df06d73-895e-4b34-86ba-2ed9996de5b9\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"2df06d73-895e-4b34-86ba-2ed9996de5b9\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ServicesController\",\r\n \"resourceDisplayName\": \"Infrastructure role controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ServicesController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1178" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvzmBZEfhQx9I1e+RZaax2eyv56UB6MqKBe6UkadotXccHuXamhYX70+yabJRDG72WSZ8luSWCJH06WZgbD0fMr3U0nPefCVtnrvIqQ6HliDQ6yZT3kSx/Wo5RCUh2j645GqvFGnTmfd1VMykiLb/u" + ], + "x-ms-correlation-request-id": [ + "acbf1fed-7aae-44ee-9727-125218c8580a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14747" + ], + "x-ms-request-id": [ + "acbf1fed-7aae-44ee-9727-125218c8580a" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:acbf1fed-7aae-44ee-9727-125218c8580a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/2f44b781-4af4-4c8c-97e0-219c4ed9984f?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzJmNDRiNzgxLTRhZjQtNGM4Yy05N2UwLTIxOWM0ZWQ5OTg0Zj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "addf687f-a3bc-4c3a-b086-4c4bd4701b01" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/2f44b781-4af4-4c8c-97e0-219c4ed9984f\",\r\n \"name\": \"2f44b781-4af4-4c8c-97e0-219c4ed9984f\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"2f44b781-4af4-4c8c-97e0-219c4ed9984f\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"NetworkController\",\r\n \"resourceDisplayName\": \"Network controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/NetworkController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1164" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv8cy+ho3VmfHMDwxfcMeQwMiBy3Er7e+Uh9lVoEzitjUZT9KXlU3/sCmCCCmb7I88kkFJeDe60+UvKLXnUL8SrIYAIXcGxE9yh0uptDu1noN94EhOi5JI6iiZ3WhSlV1yb1IuIXuTeCQaLdoda+3C" + ], + "x-ms-correlation-request-id": [ + "fc4327aa-5c5f-4e6f-9687-50afc6422ac3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14746" + ], + "x-ms-request-id": [ + "fc4327aa-5c5f-4e6f-9687-50afc6422ac3" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:fc4327aa-5c5f-4e6f-9687-50afc6422ac3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/31fbecbf-4d5b-4d1e-8b57-f904f95ca4cb?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzMxZmJlY2JmLTRkNWItNGQxZS04YjU3LWY5MDRmOTVjYTRjYj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e25e5ef1-bd8a-4393-804a-f6b5f129392e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/31fbecbf-4d5b-4d1e-8b57-f904f95ca4cb\",\r\n \"name\": \"31fbecbf-4d5b-4d1e-8b57-f904f95ca4cb\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"31fbecbf-4d5b-4d1e-8b57-f904f95ca4cb\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AzureResourceManagerAdmin\",\r\n \"resourceDisplayName\": \"Azure Resource Manager (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AzureResourceManagerAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1200" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvpcz7okbU5N3wPd+ww8RTOvM/xCslLxSgsQoU4s/c+UACzGFhRKG/nXEegfMSjbc5ZwzyIuNIKpkXPDesU+FIHq5jZBlaaBu/nC63QG14F3co9Ou0UB01D+YwgsgMWAP0GBLHtKHPS2yfb7H7DFSZ" + ], + "x-ms-correlation-request-id": [ + "4cade887-32b5-4322-8617-3f1e3f9c59b8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14745" + ], + "x-ms-request-id": [ + "4cade887-32b5-4322-8617-3f1e3f9c59b8" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:4cade887-32b5-4322-8617-3f1e3f9c59b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/396f261b-06f9-4532-b060-bda463de8e93?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzM5NmYyNjFiLTA2ZjktNDUzMi1iMDYwLWJkYTQ2M2RlOGU5Mz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6597640e-c3ce-4729-9b76-64611d19f3f1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/396f261b-06f9-4532-b060-bda463de8e93\",\r\n \"name\": \"396f261b-06f9-4532-b060-bda463de8e93\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"396f261b-06f9-4532-b060-bda463de8e93\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"RASGateway\",\r\n \"resourceDisplayName\": \"Edge gateway\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/RASGateway\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1144" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvtzPMSuAQzX/AYblo85kddHqcojOb2m7c088+uDHOR/biTWuL6qHg/YlL8rcWRnnK4z86bpTGcyZQv36ClMoF229RuV7fJbzuWlDWFQLcPYfdGGwR4UrkuGmh+u9aaIWYATarl8cdkbq52wwaNZho" + ], + "x-ms-correlation-request-id": [ + "04949056-4349-479a-ab2b-6111bd4834a2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14744" + ], + "x-ms-request-id": [ + "04949056-4349-479a-ab2b-6111bd4834a2" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:04949056-4349-479a-ab2b-6111bd4834a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/3ba3d302-5cb0-4cf2-bbf0-d78b86441bc8?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzNiYTNkMzAyLTVjYjAtNGNmMi1iYmYwLWQ3OGI4NjQ0MWJjOD9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ca1ea3da-8d6c-41f3-9382-9facd003d56d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/3ba3d302-5cb0-4cf2-bbf0-d78b86441bc8\",\r\n \"name\": \"3ba3d302-5cb0-4cf2-bbf0-d78b86441bc8\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"3ba3d302-5cb0-4cf2-bbf0-d78b86441bc8\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"InsightsServiceAdmin\",\r\n \"resourceDisplayName\": \"Insights service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/InsightsServiceAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvukXXgCIBe3BBjjGHefp5pwAMHTN0cDcw3PUx1MOWWWyAoxZI8rFfehkCroQoJhm2Q8i1uPLXF8TZ1qqg2LlNT0+sXpYNwdfIa9+GK5t8riaoqOH3nf+17O7v46ZQ73uOdCbd2bUyfFAJoWS04app" + ], + "x-ms-correlation-request-id": [ + "117d03f3-e7de-4cc6-b54a-f1261138cb3c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14743" + ], + "x-ms-request-id": [ + "117d03f3-e7de-4cc6-b54a-f1261138cb3c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:117d03f3-e7de-4cc6-b54a-f1261138cb3c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/3dfbcdda-fba8-45ec-a8a5-c4c2f955ee69?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzNkZmJjZGRhLWZiYTgtNDVlYy1hOGE1LWM0YzJmOTU1ZWU2OT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b203a86f-6187-4f94-a56c-4bce925efe55" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/3dfbcdda-fba8-45ec-a8a5-c4c2f955ee69\",\r\n \"name\": \"3dfbcdda-fba8-45ec-a8a5-c4c2f955ee69\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"3dfbcdda-fba8-45ec-a8a5-c4c2f955ee69\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"EnterpriseCloudEngine\",\r\n \"resourceDisplayName\": \"Infrastructure deployment\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/EnterpriseCloudEngine\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1179" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvIg3WmScwXVKhmjYI+VUp1Ao9ZE3i/jCOMDEJmZKp9OUcOnVHi4FQeri+QmNI2R6+kpuO9vjVESkAoPIw0MznMqWJ28YSWRepnPnWoA1r4gp120o9cpXqLefz6w4y3kkPJLVyp4UsXKczfUQNhnet" + ], + "x-ms-correlation-request-id": [ + "4342cb74-85c1-4028-a6d1-36bbb93918c5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14742" + ], + "x-ms-request-id": [ + "4342cb74-85c1-4028-a6d1-36bbb93918c5" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:4342cb74-85c1-4028-a6d1-36bbb93918c5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/4153b36c-e574-4f4e-af81-d2d3f2e46cb4?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzQxNTNiMzZjLWU1NzQtNGY0ZS1hZjgxLWQyZDNmMmU0NmNiND9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "58d18e5d-0049-4c68-b8ba-ef9b694ad796" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/4153b36c-e574-4f4e-af81-d2d3f2e46cb4\",\r\n \"name\": \"4153b36c-e574-4f4e-af81-d2d3f2e46cb4\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"4153b36c-e574-4f4e-af81-d2d3f2e46cb4\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ActiveDirectoryCertificateServices\",\r\n \"resourceDisplayName\": \"Certificate management\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ActiveDirectoryCertificateServices\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1202" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvcT5RfSQGj1/ly5AyRslGSWzRgGA2d4Al+NUaE8+EKXKopB+gEV/rDXUpNrH6eR7dpORagiZwq7sI/Wo09MrpPbo8wWqgwnEw9/rysqokbQ2ynAtM4nLUKC7ZW1qEygnUIPJJrSJZ8Fu8kCglY6tG" + ], + "x-ms-correlation-request-id": [ + "bc7e9eda-2738-46e3-a438-b081460594d6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14741" + ], + "x-ms-request-id": [ + "bc7e9eda-2738-46e3-a438-b081460594d6" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214356Z:bc7e9eda-2738-46e3-a438-b081460594d6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/4d28f77a-5fb1-4e49-bc68-fad4a703b1da?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzRkMjhmNzdhLTVmYjEtNGU0OS1iYzY4LWZhZDRhNzAzYjFkYT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e0e7bb7-6e5e-4c2f-853d-715e4e095a08" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/4d28f77a-5fb1-4e49-bc68-fad4a703b1da\",\r\n \"name\": \"4d28f77a-5fb1-4e49-bc68-fad4a703b1da\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"4d28f77a-5fb1-4e49-bc68-fad4a703b1da\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"PortalUser\",\r\n \"resourceDisplayName\": \"Portal (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/PortalUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1145" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvc7AaS710MvFv28yU2Pilqv4xKFRubnxV7BHEyxX0s/rzw5yd4mlamRWYuVj3/9qoBOK827TJScpt1FL5RWhCCWVZU2gb/Hh0T+HNZf73PXIuzRmt4rjdH7OJug6hscR9eDqquY3hUBxKbIgDLQY0" + ], + "x-ms-correlation-request-id": [ + "683f665a-9abc-40b1-89fc-391d7f19e133" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14740" + ], + "x-ms-request-id": [ + "683f665a-9abc-40b1-89fc-391d7f19e133" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:683f665a-9abc-40b1-89fc-391d7f19e133" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5492ed3b-f8ca-4e6d-85c6-428337ae02a4?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzU0OTJlZDNiLWY4Y2EtNGU2ZC04NWM2LTQyODMzN2FlMDJhND9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf40b786-7ebf-438e-8f58-698c58172e7b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5492ed3b-f8ca-4e6d-85c6-428337ae02a4\",\r\n \"name\": \"5492ed3b-f8ca-4e6d-85c6-428337ae02a4\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"5492ed3b-f8ca-4e6d-85c6-428337ae02a4\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"SLBMultiplexer\",\r\n \"resourceDisplayName\": \"Load balancer multiplexer\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/SLBMultiplexer\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1165" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvq9H5PLPcww2+d+6NGzx0T00pjIvYBB3IPYOC8vSjZg43OHqSEMAKOyZ9wL8bAPDC9U5g61cjn63B0bTztDosenEGBdTMa33Avxq2RXMjxowCwekDesIeg+XsM2cCtrwj67y8F6ea7TzuN1fRsuxj" + ], + "x-ms-correlation-request-id": [ + "d029e529-107f-40e4-85b2-fbfd93960df4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14739" + ], + "x-ms-request-id": [ + "d029e529-107f-40e4-85b2-fbfd93960df4" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:d029e529-107f-40e4-85b2-fbfd93960df4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5e53a6eb-3797-4c4e-bd1c-325a89c881e1?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzVlNTNhNmViLTM3OTctNGM0ZS1iZDFjLTMyNWE4OWM4ODFlMT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7752264b-8886-467d-8edc-21d79b79b386" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5e53a6eb-3797-4c4e-bd1c-325a89c881e1\",\r\n \"name\": \"5e53a6eb-3797-4c4e-bd1c-325a89c881e1\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"5e53a6eb-3797-4c4e-bd1c-325a89c881e1\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"BackupController\",\r\n \"resourceDisplayName\": \"Backup controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/BackupController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1161" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvRNpuD8zsJ3QxSy2LSeT/zDOFrLE/8boOrt45zsBl6/dn4W4L7k2nP7S/DEt9/PLnfLKL03brMSm6pM5Ync7Fd8HBsapm5Qw/5wLvuai0OSye1przQUvXFSED5Ye45525socbwH4AdHVmVYOm3Xly" + ], + "x-ms-correlation-request-id": [ + "8c0bd54d-8f9b-464e-826f-870295c54f16" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14738" + ], + "x-ms-request-id": [ + "8c0bd54d-8f9b-464e-826f-870295c54f16" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:8c0bd54d-8f9b-464e-826f-870295c54f16" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5f392616-929f-48d4-a561-4004c1723d26?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzVmMzkyNjE2LTkyOWYtNDhkNC1hNTYxLTQwMDRjMTcyM2QyNj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f558f5c4-a20a-4799-831f-1733ae74eb8c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5f392616-929f-48d4-a561-4004c1723d26\",\r\n \"name\": \"5f392616-929f-48d4-a561-4004c1723d26\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"5f392616-929f-48d4-a561-4004c1723d26\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ApplicationGateway\",\r\n \"resourceDisplayName\": \"Partition request broker (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ApplicationGateway\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1188" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvulOXyceGAHylWesaOk8iWu+1MmVvPsX6Q8kIsoTjdolV0hhBGacSbPnCY+HTKlYwCE/PnkFKzKCeKmXL4CQcI+qn4iOmSzSQOMZxw7ZkFl/yt+Uq0toHimrXhUtlmbF5EMXUhrlkrULwtDMkc4UY" + ], + "x-ms-correlation-request-id": [ + "6cf4eeab-62d7-413e-859c-dd7eed10f2c9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14737" + ], + "x-ms-request-id": [ + "6cf4eeab-62d7-413e-859c-dd7eed10f2c9" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:6cf4eeab-62d7-413e-859c-dd7eed10f2c9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5f93ed37-95a3-4bb7-ae66-9b8a6fef79ad?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzVmOTNlZDM3LTk1YTMtNGJiNy1hZTY2LTliOGE2ZmVmNzlhZD9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7f3e813c-3c39-49aa-acc3-4d1a8c7a2332" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5f93ed37-95a3-4bb7-ae66-9b8a6fef79ad\",\r\n \"name\": \"5f93ed37-95a3-4bb7-ae66-9b8a6fef79ad\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"5f93ed37-95a3-4bb7-ae66-9b8a6fef79ad\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"SeedRing\",\r\n \"resourceDisplayName\": \"Privileged endpoint\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/SeedRing\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1147" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvLiLS910TxZGVVmnHMlkBi+S57K3Oq1/RUg2ptWynQZG/WBMA8ejld7DVtRK1SjRE0RXE5HSIVKQCpneyOe6EZ+9f4U+fZuxWMvE0mLS6kaM4zIthlVGIe1qV2AaGza8W8cssOKcO5bfJbbCVlV04" + ], + "x-ms-correlation-request-id": [ + "08965456-a6d1-4156-85a0-7bad0e832471" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14736" + ], + "x-ms-request-id": [ + "08965456-a6d1-4156-85a0-7bad0e832471" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:08965456-a6d1-4156-85a0-7bad0e832471" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/637b5b8b-37c9-494c-9a08-60a8170afe9f?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzYzN2I1YjhiLTM3YzktNDk0Yy05YTA4LTYwYTgxNzBhZmU5Zj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c5e3fd5e-4cd5-46f1-9939-d255b32b4aed" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/637b5b8b-37c9-494c-9a08-60a8170afe9f\",\r\n \"name\": \"637b5b8b-37c9-494c-9a08-60a8170afe9f\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"637b5b8b-37c9-494c-9a08-60a8170afe9f\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"HealthMonitoring\",\r\n \"resourceDisplayName\": \"Health controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthMonitoring\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1161" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvTYLmeZfy/JIjB59qZilqKFRfOcBzXpP4r/ZKPlZWSSZjxoevZX3aZbtxCuStX/705apZi+TEceyGHfdMlC8OBE6C6z/3kMV8BlmNXk4vaaLklKA23ZC7jGgony9kp8BvWH5oVAnOsmI/2n20CmBp" + ], + "x-ms-correlation-request-id": [ + "03936bf0-b655-4ed0-8506-ec8070ec4b64" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14735" + ], + "x-ms-request-id": [ + "03936bf0-b655-4ed0-8506-ec8070ec4b64" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:03936bf0-b655-4ed0-8506-ec8070ec4b64" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/644e453a-5dcb-48b0-ba8d-b67a798400cc?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzY0NGU0NTNhLTVkY2ItNDhiMC1iYThkLWI2N2E3OTg0MDBjYz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef243504-abe9-48ff-b6b6-2673633ec6b0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/644e453a-5dcb-48b0-ba8d-b67a798400cc\",\r\n \"name\": \"644e453a-5dcb-48b0-ba8d-b67a798400cc\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"644e453a-5dcb-48b0-ba8d-b67a798400cc\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"GalleryServiceUser\",\r\n \"resourceDisplayName\": \"Gallery service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/GalleryServiceUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1170" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvXmKe3WUt7Y41KD7CENQgYBbrmZ9htOiRse3GqrZ++NVVIOjrRHLVZJRUb2tdP0EX71XJf2w/RNFAEfwsOkBIZyah6Q/r4sBzvM7u2yYODSs9QeCGiVJHrUycv9hFvYUe2OCF3Wv3g0o4i+qcWMut" + ], + "x-ms-correlation-request-id": [ + "5d474d51-bd9b-4f9e-b74f-ca2739d6b154" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14734" + ], + "x-ms-request-id": [ + "5d474d51-bd9b-4f9e-b74f-ca2739d6b154" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:5d474d51-bd9b-4f9e-b74f-ca2739d6b154" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/66cace75-f1a0-46d9-a3f9-79f355f02ed4?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzY2Y2FjZTc1LWYxYTAtNDZkOS1hM2Y5LTc5ZjM1NWYwMmVkND9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b6e0a657-cda4-48b1-bf30-bc5e39f2aa16" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/66cace75-f1a0-46d9-a3f9-79f355f02ed4\",\r\n \"name\": \"66cace75-f1a0-46d9-a3f9-79f355f02ed4\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"66cace75-f1a0-46d9-a3f9-79f355f02ed4\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AzureConsistentStorageRing\",\r\n \"resourceDisplayName\": \"Storage services\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AzureConsistentStorageRing\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1180" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv/3em8FSbyrmO/X9Oem722E1Wu+b38M0zsYm00Y6vzPK1+LRPQhXm2PAzU1kymza6pX4RKPDAZi3agYobA6ar5WWJ6z1d8EBe5mD9o46ohJ+tsqhwc2doe4PFYK1MUlRfdPQOiXvpxuVWVkxzjxii" + ], + "x-ms-correlation-request-id": [ + "aa04aa00-08dd-4991-ad10-3c2d2ff86eb3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14733" + ], + "x-ms-request-id": [ + "aa04aa00-08dd-4991-ad10-3c2d2ff86eb3" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:aa04aa00-08dd-4991-ad10-3c2d2ff86eb3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/6ba0cf59-21e0-4493-8636-d4c0a0f63f57?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzZiYTBjZjU5LTIxZTAtNDQ5My04NjM2LWQ0YzBhMGY2M2Y1Nz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a3bde203-4b1d-423e-95e7-f3b90fe9ea12" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/6ba0cf59-21e0-4493-8636-d4c0a0f63f57\",\r\n \"name\": \"6ba0cf59-21e0-4493-8636-d4c0a0f63f57\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"6ba0cf59-21e0-4493-8636-d4c0a0f63f57\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AuthorizationServiceUser\",\r\n \"resourceDisplayName\": \"Authorization service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AuthorizationServiceUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1188" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvC6ERNpnHwxanWuPzirxB7YapsJaWGTmF6yjto6DYX31W1CpSDWXyC27zUodyo90dKBr1bvjo65csOh7xZaM4IAp3imRg0k7B0rBA8UaAcXSIx9z1XWXc31MT7ednow0xqq1GdcYtBKm7ystqDdg9" + ], + "x-ms-correlation-request-id": [ + "3f19e6a6-d800-4e27-9fcb-b53ba85bdd39" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14732" + ], + "x-ms-request-id": [ + "3f19e6a6-d800-4e27-9fcb-b53ba85bdd39" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:3f19e6a6-d800-4e27-9fcb-b53ba85bdd39" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/7b201ea5-0539-49c3-9478-aaadecdaca3c?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzdiMjAxZWE1LTA1MzktNDljMy05NDc4LWFhYWRlY2RhY2EzYz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d4811afa-e603-4d3e-9fe5-de16c4ff16de" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/7b201ea5-0539-49c3-9478-aaadecdaca3c\",\r\n \"name\": \"7b201ea5-0539-49c3-9478-aaadecdaca3c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"7b201ea5-0539-49c3-9478-aaadecdaca3c\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AzureResourceManagerUser\",\r\n \"resourceDisplayName\": \"Azure Resource Manager (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AzureResourceManagerUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv5q80xOKIpNRlEEFMCKolT2gjCZ3qO8cSP/3edh2omsWheIqU7JwIxuJLFR5ArLnuKRawT4l0DYW0Bs1nGbGmONbh+x44cyLgT83hywjqu+tLov/M60v0+0qp23vGD9I/iowXR8yvPpioooT6yJ5H" + ], + "x-ms-correlation-request-id": [ + "ec079711-6e14-4fe1-907d-09b5fb4471af" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14731" + ], + "x-ms-request-id": [ + "ec079711-6e14-4fe1-907d-09b5fb4471af" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:ec079711-6e14-4fe1-907d-09b5fb4471af" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/830841e0-0388-45c0-b641-c01c6a202145?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzgzMDg0MWUwLTAzODgtNDVjMC1iNjQxLWMwMWM2YTIwMjE0NT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b379783b-86f6-48a6-b533-94a61681a258" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/830841e0-0388-45c0-b641-c01c6a202145\",\r\n \"name\": \"830841e0-0388-45c0-b641-c01c6a202145\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"830841e0-0388-45c0-b641-c01c6a202145\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"MicrosoftSQLServer\",\r\n \"resourceDisplayName\": \"Internal data store\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/MicrosoftSQLServer\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1167" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv+hyu4g27fETDG2PM6dnyGmYZDukahMniZiKdDrfYOyCzUBXY6LQCQKwHom3Qi7e9qVhJEDtYMJ9IXRTcZ4D0TrVRjujpEsM8SWXC6ENFMNjMLwBddH68tIEgUb0FhPCRsgCenq/Rwx/XYmsxvdzE" + ], + "x-ms-correlation-request-id": [ + "56da3690-fec7-486e-90b2-f48aad99d8e2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14730" + ], + "x-ms-request-id": [ + "56da3690-fec7-486e-90b2-f48aad99d8e2" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:56da3690-fec7-486e-90b2-f48aad99d8e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/86b0371c-8dc1-4923-9461-103642e4a418?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzg2YjAzNzFjLThkYzEtNDkyMy05NDYxLTEwMzY0MmU0YTQxOD9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f1b88838-18b8-4ae9-8bbf-e8d9c58829c4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/86b0371c-8dc1-4923-9461-103642e4a418\",\r\n \"name\": \"86b0371c-8dc1-4923-9461-103642e4a418\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"86b0371c-8dc1-4923-9461-103642e4a418\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"GalleryServiceAdmin\",\r\n \"resourceDisplayName\": \"Gallery service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/GalleryServiceAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1181" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvqO/toTrASsagvhIBRkvRZ74axjNiYquwMnUZEHQ4YZ9eU/4aktfWRnPF3GnTPFaP9AA/kQ4LMyWjvQbqkwzZ95WzHd0rxQ6xom5B0SgVeDu2zKorpmo8TklRFfYGwnjYXTw5AQ2/urmSENuNM6Yz" + ], + "x-ms-correlation-request-id": [ + "7d46ce07-0263-483a-9b34-6096b5ccb0eb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14729" + ], + "x-ms-request-id": [ + "7d46ce07-0263-483a-9b34-6096b5ccb0eb" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:7d46ce07-0263-483a-9b34-6096b5ccb0eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/8944c315-446f-465d-a5b7-38dbf78436fb?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzg5NDRjMzE1LTQ0NmYtNDY1ZC1hNWI3LTM4ZGJmNzg0MzZmYj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "39f87383-6d22-4fd2-bc2a-5d8d09b2d24c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/8944c315-446f-465d-a5b7-38dbf78436fb\",\r\n \"name\": \"8944c315-446f-465d-a5b7-38dbf78436fb\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"8944c315-446f-465d-a5b7-38dbf78436fb\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AuthorizationServiceAdmin\",\r\n \"resourceDisplayName\": \"Authorization service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AuthorizationServiceAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1199" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvN0n4NBHXa52q2zH+JJ7rlndT+1RV3OtixLehAUZAkmUU+dqauTZJpfuuinKcxAU1fmr04v1q3CSAIhgw3UqF0KHSK4KQ/TqweAa6DhU33Tt0Mm1QMoe6nbRVE5v+7Wt46eUS780s1X1pcOVPyLJM" + ], + "x-ms-correlation-request-id": [ + "ed3c0495-27be-474d-802c-b2096c648018" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14728" + ], + "x-ms-request-id": [ + "ed3c0495-27be-474d-802c-b2096c648018" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:ed3c0495-27be-474d-802c-b2096c648018" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/90519aa6-9042-437b-affe-1dd5a1122e62?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzkwNTE5YWE2LTkwNDItNDM3Yi1hZmZlLTFkZDVhMTEyMmU2Mj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "801fc674-5ccd-4d22-a00e-92bf9ff174b6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/90519aa6-9042-437b-affe-1dd5a1122e62\",\r\n \"name\": \"90519aa6-9042-437b-affe-1dd5a1122e62\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"90519aa6-9042-437b-affe-1dd5a1122e62\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"NonPrivilegedApplicationGateway\",\r\n \"resourceDisplayName\": \"Partition request broker (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/NonPrivilegedApplicationGateway\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1205" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvYOpinzdGIB3Jl3S243m68ZcYCY0O4kmmsz7FfwlaENjBG7eJkyzueDLO97I6VxPvQzgHLF1UP0OzlCk8+0KwjS3ACzK8WWu8RmAQAIvDszaFCDQPYEcjNJo9SGSgPzXczM3pZ3K8U1na1lJGLZcl" + ], + "x-ms-correlation-request-id": [ + "d62e3e9b-b624-4232-83ea-f74e4dc48c5b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14727" + ], + "x-ms-request-id": [ + "d62e3e9b-b624-4232-83ea-f74e4dc48c5b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:d62e3e9b-b624-4232-83ea-f74e4dc48c5b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/9983690e-1252-47d3-90f8-9292b9d90cfe?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzk5ODM2OTBlLTEyNTItNDdkMy05MGY4LTkyOTJiOWQ5MGNmZT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "928c0209-7d94-46f6-a328-a2d92e4130db" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/9983690e-1252-47d3-90f8-9292b9d90cfe\",\r\n \"name\": \"9983690e-1252-47d3-90f8-9292b9d90cfe\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"9983690e-1252-47d3-90f8-9292b9d90cfe\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"UsageServiceAdmin\",\r\n \"resourceDisplayName\": \"Usage service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/UsageServiceAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1175" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv9ujb3IEZnwHJCyfuxuAjOUGtHlTaWULGBLuLn9mH7HsLBUSJmmTsZBbOtWg5/2UJO4Zp2na8slWeMtAy5TLbaXe0bwqVidpLN2qeXmYhbzUElGQPmijFtgYhxGAbdlqMlFuNYGwhAcCXbT7CQEXh" + ], + "x-ms-correlation-request-id": [ + "b3fc806e-ae53-448a-a698-c8151898555e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14726" + ], + "x-ms-request-id": [ + "b3fc806e-ae53-448a-a698-c8151898555e" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214357Z:b3fc806e-ae53-448a-a698-c8151898555e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/9a8e1cef-3337-49c6-97ec-4e2da70e2357?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzLzlhOGUxY2VmLTMzMzctNDljNi05N2VjLTRlMmRhNzBlMjM1Nz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "db3c96a2-73f5-488e-a207-2e877fedb2ed" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/9a8e1cef-3337-49c6-97ec-4e2da70e2357\",\r\n \"name\": \"9a8e1cef-3337-49c6-97ec-4e2da70e2357\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"9a8e1cef-3337-49c6-97ec-4e2da70e2357\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultDataPlane\",\r\n \"resourceDisplayName\": \"Key Vault service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultDataPlane\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1170" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvsAgUXcHTfS5cV2ej+N5omKpD2UR/gqsaw3kTEtE2XdG/ZXhBkNiKpI5fvmxxAFhu+7HpHD7pk6Jarv5LZBhGvEQ92PUyGZAOqQG0hrnPWSfioBwI3EO4fCvnUXhuUaLLDugxCvLsvSFMhKjQD62R" + ], + "x-ms-correlation-request-id": [ + "b44b9b7c-1acf-4d23-b164-5ee55c2966ef" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14725" + ], + "x-ms-request-id": [ + "b44b9b7c-1acf-4d23-b164-5ee55c2966ef" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:b44b9b7c-1acf-4d23-b164-5ee55c2966ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/a9da3e57-6ade-42fd-975a-19db789c2ae0?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzL2E5ZGEzZTU3LTZhZGUtNDJmZC05NzVhLTE5ZGI3ODljMmFlMD9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "330f9a6e-bc04-43e9-8c24-c0c7b83e097c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/a9da3e57-6ade-42fd-975a-19db789c2ae0\",\r\n \"name\": \"a9da3e57-6ade-42fd-975a-19db789c2ae0\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"a9da3e57-6ade-42fd-975a-19db789c2ae0\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ActiveDirectoryDomainServices\",\r\n \"resourceDisplayName\": \"Directory management\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ActiveDirectoryDomainServices\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1190" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvY1AqXyTh9fghUY7aQAa1/hLGyDn9vuCLEJpHwXAjYGczBDFwN3sr8KQUtHk5ttXzTvokeHbAkkw4Xd08D7ipN0pmR+QCFXZ4HWL8TwFzs+ke9SfPvB5b/CliNAFIKqkJ1KkrS4VzelJ7wnGRZooa" + ], + "x-ms-correlation-request-id": [ + "de9a0064-2a48-406a-9d8d-80b203a5d56b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14724" + ], + "x-ms-request-id": [ + "de9a0064-2a48-406a-9d8d-80b203a5d56b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:de9a0064-2a48-406a-9d8d-80b203a5d56b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/b9097d6f-e3b2-4dfc-a0bc-8ad66e76488a?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzL2I5MDk3ZDZmLWUzYjItNGRmYy1hMGJjLThhZDY2ZTc2NDg4YT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a63735de-7a1c-4d23-8df6-614e1cd08ab6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/b9097d6f-e3b2-4dfc-a0bc-8ad66e76488a\",\r\n \"name\": \"b9097d6f-e3b2-4dfc-a0bc-8ad66e76488a\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"b9097d6f-e3b2-4dfc-a0bc-8ad66e76488a\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultNamingService\",\r\n \"resourceDisplayName\": \"Key Vault name manager\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultNamingService\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1176" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvbVkYUxvLe9MpZLVieFydynpTXGbGD+PkfguWarSBieCkFeVkKGapR23/UUvRCrJKMMP61fLXM0Sw5KqMK2SOc9VpEK5KNCWOeLhZKkjDj9yaLX6J2kSAi58EvnkB9WpvQ2JNAXcCAG00hOWtnPB2" + ], + "x-ms-correlation-request-id": [ + "e0c0b073-d97b-4c18-b8c5-0bc414889799" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14723" + ], + "x-ms-request-id": [ + "e0c0b073-d97b-4c18-b8c5-0bc414889799" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:e0c0b073-d97b-4c18-b8c5-0bc414889799" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/c4c065c2-b43a-43a9-be86-43fadb5f2b98?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzL2M0YzA2NWMyLWI0M2EtNDNhOS1iZTg2LTQzZmFkYjVmMmI5OD9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4edef799-1b8c-4da0-8ce5-7c54b44701c7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/c4c065c2-b43a-43a9-be86-43fadb5f2b98\",\r\n \"name\": \"c4c065c2-b43a-43a9-be86-43fadb5f2b98\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"c4c065c2-b43a-43a9-be86-43fadb5f2b98\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"SubscriptionsServices\",\r\n \"resourceDisplayName\": \"Subscriptions service\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/SubscriptionsServices\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1175" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvjDTtK76PsefcKYexNhB805kNooyZW2QojcCqtcGa20AMQcgYsua+eks9hUwjapYHEsDb53w74xFDUuT+dOnxRjrnA3S2dhb6yIPMxePE46/ZsgrA5w+q074vHHDoUoAe6E1fx4NbM5H0ezfpueOJ" + ], + "x-ms-correlation-request-id": [ + "5774e9ec-8718-412f-9598-b9b7d032e0e7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14722" + ], + "x-ms-request-id": [ + "5774e9ec-8718-412f-9598-b9b7d032e0e7" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:5774e9ec-8718-412f-9598-b9b7d032e0e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/c53f33bc-28ae-451b-a982-723f85cf39ac?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzL2M1M2YzM2JjLTI4YWUtNDUxYi1hOTgyLTcyM2Y4NWNmMzlhYz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ae9a220d-804d-4198-a3d8-6af7bcd83b3e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/c53f33bc-28ae-451b-a982-723f85cf39ac\",\r\n \"name\": \"c53f33bc-28ae-451b-a982-723f85cf39ac\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"c53f33bc-28ae-451b-a982-723f85cf39ac\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultControlPlane\",\r\n \"resourceDisplayName\": \"Key Vault controller (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultControlPlane\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1179" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvYcWP5k80uoMbp/YpruJhNamurHKVr6zdFiM9Nrr/rYNzMMd6l9cVO4N51Ipe+yCcHVkGQMoBDyGxFcD9SQ8LMTzQWh4oY9WswBsXbCnSQw9GFyxOSCDx1B9xTfGpYmjiqQeSlMrcylpt5ONyGQ13" + ], + "x-ms-correlation-request-id": [ + "5808e268-81d4-4bdc-96be-0cbe465999f9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14721" + ], + "x-ms-request-id": [ + "5808e268-81d4-4bdc-96be-0cbe465999f9" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:5808e268-81d4-4bdc-96be-0cbe465999f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/ca96c335-e545-4563-9d65-058db3a8ef15?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzL2NhOTZjMzM1LWU1NDUtNDU2My05ZDY1LTA1OGRiM2E4ZWYxNT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ee7e7f7c-d94c-4e52-87e2-52644587f350" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"name\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"FabricControllerRing\",\r\n \"resourceDisplayName\": \"Infrastructure management controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1188" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvx3LQAaGMUIgxZMpoPywW1pthBtZ6nnFRfz33HDwaxCWvhAycxXiPR9iPzjOi3jZjbyM+/RmdCIhSKrQUMUq7jPy+hmk1XgYGFS556DzTiW0iizhelVqDUGpJXrmX9I2SZYFouYBjCWHhbEmIalYv" + ], + "x-ms-correlation-request-id": [ + "80a81665-e62d-4aa3-af96-72957805890f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14720" + ], + "x-ms-request-id": [ + "80a81665-e62d-4aa3-af96-72957805890f" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:80a81665-e62d-4aa3-af96-72957805890f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/d706dddc-7c69-46b6-8033-a5540a2322b3?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzL2Q3MDZkZGRjLTdjNjktNDZiNi04MDMzLWE1NTQwYTIzMjJiMz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1b862f73-36d9-450d-a260-58048078bd5a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/d706dddc-7c69-46b6-8033-a5540a2322b3\",\r\n \"name\": \"d706dddc-7c69-46b6-8033-a5540a2322b3\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"d706dddc-7c69-46b6-8033-a5540a2322b3\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ActiveDirectoryFederationServices\",\r\n \"resourceDisplayName\": \"Active Directory Federation Services\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ActiveDirectoryFederationServices\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1214" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvQHpPgWald2Eob1dvPGu6pFVOpntOjkNJeoVmiRcT3hHF+T713musSEPxU83FPCOLHVWO+19ERb3UOpWHOloZhF/RsmLlrhIeRdQFsRP3z5wsHHj9kU6IZQsNehh7pvv6g48uN5DyQWXcBudYQvb8" + ], + "x-ms-correlation-request-id": [ + "84243e0c-f77c-443b-8874-3aa03b1f160c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14719" + ], + "x-ms-request-id": [ + "84243e0c-f77c-443b-8874-3aa03b1f160c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:84243e0c-f77c-443b-8874-3aa03b1f160c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/d8484c12-9008-420c-91a8-e69d1754c95b?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzL2Q4NDg0YzEyLTkwMDgtNDIwYy05MWE4LWU2OWQxNzU0Yzk1Yj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1e4161a4-9cdd-4b99-9e0f-69a87f1bb603" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/d8484c12-9008-420c-91a8-e69d1754c95b\",\r\n \"name\": \"d8484c12-9008-420c-91a8-e69d1754c95b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"d8484c12-9008-420c-91a8-e69d1754c95b\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AzureBridge\",\r\n \"resourceDisplayName\": \"Azure bridge\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AzureBridge\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1146" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv8s2lXSlO3w4da1sS2gF4hUaLF9GcXy4XAY4fmCT8Llb8xZM1Fdbmcn8J/+8YoBmWvqyz2ZDEDYkJ2T2mkPkq+QAjzeBXQwiuB8n6HxTrTe4FOczQEf19aVtC9905HZeVK85OmUP6vcHxpaGE6UDV" + ], + "x-ms-correlation-request-id": [ + "b3b0c75c-3aac-4bf5-831c-654bf373f8e2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14718" + ], + "x-ms-request-id": [ + "b3b0c75c-3aac-4bf5-831c-654bf373f8e2" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:b3b0c75c-3aac-4bf5-831c-654bf373f8e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/d911feeb-88f2-480b-a488-c642665f776b?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzL2Q5MTFmZWViLTg4ZjItNDgwYi1hNDg4LWM2NDI2NjVmNzc2Yj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f87cc7bf-724b-4df7-b288-082f8380e42e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/d911feeb-88f2-480b-a488-c642665f776b\",\r\n \"name\": \"d911feeb-88f2-480b-a488-c642665f776b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"d911feeb-88f2-480b-a488-c642665f776b\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"UsageServiceUser\",\r\n \"resourceDisplayName\": \"Usage service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/UsageServiceUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1164" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvKUEl2WpBSE+LUiq4TfSlV35tJl89A9ET154E7GAJTkfj63KcKNM9+9j4wu1CPJToRYBkJUeHJAw5Dv2kX+M4krE2TvpulRtoIbRcw2pCi5hHw77AfIbcYDQkAGQ5JNVtxK5mEF1Vv1rZ4G08iGjX" + ], + "x-ms-correlation-request-id": [ + "cb3fa602-6041-4f04-8604-45105fe11b66" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14717" + ], + "x-ms-request-id": [ + "cb3fa602-6041-4f04-8604-45105fe11b66" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:cb3fa602-6041-4f04-8604-45105fe11b66" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/dac03a22-b857-412c-8c51-db1dae484fe8?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzL2RhYzAzYTIyLWI4NTctNDEyYy04YzUxLWRiMWRhZTQ4NGZlOD9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bda047c5-8622-48ea-b48e-85e87d06e428" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/dac03a22-b857-412c-8c51-db1dae484fe8\",\r\n \"name\": \"dac03a22-b857-412c-8c51-db1dae484fe8\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"dac03a22-b857-412c-8c51-db1dae484fe8\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultInternalDataPlane\",\r\n \"resourceDisplayName\": \"Key Vault service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultInternalDataPlane\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1195" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvGNAWWrCHoTiP1wgYxA4gSA1fUamfkvox4Ahb9lJfm4zHsHPyG2FAO15uBc2TC1NrAxKOM9gLBwbMxWT38oGT5uf8GjXz+jTWyoAleVW2O/+bNJmRnuJ3olAEnBh00RMBo8DY5oHWqEQWv+UE691O" + ], + "x-ms-correlation-request-id": [ + "43f38407-33eb-40ef-b650-77b6223226d1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14716" + ], + "x-ms-request-id": [ + "43f38407-33eb-40ef-b650-77b6223226d1" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:43f38407-33eb-40ef-b650-77b6223226d1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/e101540a-6d95-4c0c-9c3a-1eb92d06e461?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzL2UxMDE1NDBhLTZkOTUtNGMwYy05YzNhLTFlYjkyZDA2ZTQ2MT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9932b92a-8623-48dc-ac4c-f24affcded06" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/e101540a-6d95-4c0c-9c3a-1eb92d06e461\",\r\n \"name\": \"e101540a-6d95-4c0c-9c3a-1eb92d06e461\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"e101540a-6d95-4c0c-9c3a-1eb92d06e461\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"InsightsServiceUser\",\r\n \"resourceDisplayName\": \"Insights service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/InsightsServiceUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvuqox20cJ0jGohROzebnwFYmdxqK4VqxaHbl+Xkv4qgpg+sn0jPI52HAudPtm61H7AwUPHMAHqzi8pXzncUw1awcCi+nK3Bpmcu9XYRJ2hQMo6X0l7/HPXaXL/MxIjhBFxj1oFISSttAIyI0hOBUX" + ], + "x-ms-correlation-request-id": [ + "2f6515dd-1863-4bf8-abd4-66a972d663d5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14715" + ], + "x-ms-request-id": [ + "2f6515dd-1863-4bf8-abd4-66a972d663d5" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:2f6515dd-1863-4bf8-abd4-66a972d663d5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/e42ef826-07d7-4cea-9db0-dc831a05d05e?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzL2U0MmVmODI2LTA3ZDctNGNlYS05ZGIwLWRjODMxYTA1ZDA1ZT9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "69359260-1985-44c4-ae81-0d35ee5f8ed4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/e42ef826-07d7-4cea-9db0-dc831a05d05e\",\r\n \"name\": \"e42ef826-07d7-4cea-9db0-dc831a05d05e\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"e42ef826-07d7-4cea-9db0-dc831a05d05e\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"StorageController\",\r\n \"resourceDisplayName\": \"Storage controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/StorageController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1164" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvvSzEi7x+bw9A084D7bhzdnSRqyDc/fUhEx8GWqjnCNgQd+3h9jpALl1tBJDNQlaHg2O5O7+6QkK0zAp8r55jLlD73czD2tE5pFHr9JTghlpOUa0rOq+JHG6OL7Ce4eQXo8emAStf89hd2Uxf+HFS" + ], + "x-ms-correlation-request-id": [ + "83a25ffb-b1c6-45ee-b07b-79bb8c7db592" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14714" + ], + "x-ms-request-id": [ + "83a25ffb-b1c6-45ee-b07b-79bb8c7db592" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:83a25ffb-b1c6-45ee-b07b-79bb8c7db592" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/f1af7248-0883-4d9b-9c01-45f5d86a109c?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzL2YxYWY3MjQ4LTA4ODMtNGQ5Yi05YzAxLTQ1ZjVkODZhMTA5Yz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f4d806d9-90c4-4d35-9455-2e2b79d6e73f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/f1af7248-0883-4d9b-9c01-45f5d86a109c\",\r\n \"name\": \"f1af7248-0883-4d9b-9c01-45f5d86a109c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"f1af7248-0883-4d9b-9c01-45f5d86a109c\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"PortalAdmin\",\r\n \"resourceDisplayName\": \"Portal (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/PortalAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1156" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvAih3EHh9PJQDuY3z3H4/Ek+zQdNjnC+vpoCPf6li4BAPC3UZJt2Rnk1bLBplXqki82oYCXJDGA+jm+gDocWf6EGf0RJ8Xu0opG9xlJFMVJ/IefB7KivqHTwrM1l7QjnwLTnmwPTTazq5t3WqfG2V" + ], + "x-ms-correlation-request-id": [ + "e2125522-5d1a-4fb8-b3e0-5de9e72554af" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14713" + ], + "x-ms-request-id": [ + "e2125522-5d1a-4fb8-b3e0-5de9e72554af" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:e2125522-5d1a-4fb8-b3e0-5de9e72554af" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAllServiceHealths.json b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAllServiceHealths.json new file mode 100644 index 000000000000..cd0258471f36 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetAllServiceHealths.json @@ -0,0 +1,520 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c87dc133-5128-4ff4-95a0-c78e3f8c08c2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"name\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"displayName\": \"Key Vault\",\r\n \"namespace\": \"Microsoft.KeyVault.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local/infraRoles/Key Vault\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"name\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"displayName\": \"Storage\",\r\n \"namespace\": \"Microsoft.Storage.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f/infraRoles/Storage\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"name\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"displayName\": \"Updates\",\r\n \"namespace\": \"Microsoft.Update.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local/infraRoles/Updates\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"name\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"displayName\": \"Compute\",\r\n \"namespace\": \"Microsoft.Compute.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/infraRoles/Compute\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"name\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"displayName\": \"Network\",\r\n \"namespace\": \"Microsoft.Network.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/infraRoles/Network\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"name\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"displayName\": \"Region Management\",\r\n \"namespace\": \"Microsoft.InfrastructureInsights.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/infraRoles/Region Management\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"name\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"displayName\": \"Capacity\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Capacity\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 1\r\n },\r\n \"healthState\": \"Warning\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "6508" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvLAT13Y3PsCQTDJwgun3gwfNFGkBdBZ7Z2IADeoTiZ1dKzSpwTk6/NuCRMUJUK175mIRVk2V1BJCWr43Fj1o3I7AqQC4hglNVSl4b3wiyorHfKTNROREO/ak9eLI05FwB3dtuLNQkgXV/QrgLvcGS" + ], + "x-ms-correlation-request-id": [ + "3e00ac5e-ab3e-4c00-9c80-dfeae661ff04" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14680" + ], + "x-ms-request-id": [ + "3e00ac5e-ab3e-4c00-9c80-dfeae661ff04" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214401Z:3e00ac5e-ab3e-4c00-9c80-dfeae661ff04" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy8wYTJkZjZkOC00NTcwLTRjZjUtOGM4Zi04ZDk2ZGMxZmQyYTk/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "488b15a3-a505-4298-a7c4-7bd5383d168b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"name\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"displayName\": \"Key Vault\",\r\n \"namespace\": \"Microsoft.KeyVault.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local/infraRoles/Key Vault\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "921" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv5PgICtcFBof8RyeGb5gKNdlq3nyAwlisWqA9cdl0SPV8+yHtX2fjVQF0TkukfeSrs7EVrsnomd/5ewJ50cGReDZ2mjioGl27YVnqbZgb9S05NBKq2mMrrINH3BLit84qzLLEgIVXzjBA6UyRL988" + ], + "x-ms-correlation-request-id": [ + "2559a9bf-3cf4-42bf-b217-2066084ac632" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14679" + ], + "x-ms-request-id": [ + "2559a9bf-3cf4-42bf-b217-2066084ac632" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214401Z:2559a9bf-3cf4-42bf-b217-2066084ac632" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/12bf0da4-e310-4767-bc5f-5d31c0414062?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy8xMmJmMGRhNC1lMzEwLTQ3NjctYmM1Zi01ZDMxYzA0MTQwNjI/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0cce7f1c-de94-408a-81f1-55df2cd82b37" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"name\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"displayName\": \"Storage\",\r\n \"namespace\": \"Microsoft.Storage.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f/infraRoles/Storage\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "968" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvdDslV0DRFifDY3EbVmf9/YfoyV1TKciNN/JYU7fjm7Zj6S5XajROtbY5gJuY4FZ80LyWBpQAYqtEVebE/H2FNQk8dUyjDTID/+63XsSYHjPylqOyFxXBXBJCYjo8tybVLeZzBeHk+WqlLRJ3aDiy" + ], + "x-ms-correlation-request-id": [ + "39b0e38f-5604-4f8c-b913-9654792ca63d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14678" + ], + "x-ms-request-id": [ + "39b0e38f-5604-4f8c-b913-9654792ca63d" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214401Z:39b0e38f-5604-4f8c-b913-9654792ca63d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/2f2fc564-8714-41c3-89ea-ab7f9bf8483b?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy8yZjJmYzU2NC04NzE0LTQxYzMtODllYS1hYjdmOWJmODQ4M2I/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fa8f4a53-ee3f-4915-a36b-a2c112edde10" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"name\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"displayName\": \"Updates\",\r\n \"namespace\": \"Microsoft.Update.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local/infraRoles/Updates\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "923" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvaxqz5tjAZdXAzMWOiP6XhIM1/fE0QPfNY6ML9SI/hse+JrIHCsKQlwS3z24Wt6Gz4I3G1fZMtGHGjDvducGWxBszJQ/f+fqt1/qD6GU67OfucDf3Us0ARZggAX2IWDelEC2leQBReB56YkHjzJYH" + ], + "x-ms-correlation-request-id": [ + "7e214957-b627-40bf-acc0-1b8b01daddb4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14677" + ], + "x-ms-request-id": [ + "7e214957-b627-40bf-acc0-1b8b01daddb4" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214401Z:7e214957-b627-40bf-acc0-1b8b01daddb4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/423f8608-0c64-4d87-8c07-811adfb7cc41?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy80MjNmODYwOC0wYzY0LTRkODctOGMwNy04MTFhZGZiN2NjNDE/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2b1be940-9310-42cb-b25b-2ff131811394" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"name\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"displayName\": \"Compute\",\r\n \"namespace\": \"Microsoft.Compute.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/infraRoles/Compute\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "883" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvVJdSiTmdS/fSAScoXCcAiTMprfHS/2L3Xr7G4WUe8OWjVaCMz6yX9w19iXGtG3vvNpTqJ6mGV1MCAkjNvTkEdQjyv68fTlwNt5b0UU+AK15VGWN569G16tujwF9xo5ghlcIf7ESOZDllPuyrOYp5" + ], + "x-ms-correlation-request-id": [ + "2e288756-8d13-449a-b6de-1161c11e412b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14676" + ], + "x-ms-request-id": [ + "2e288756-8d13-449a-b6de-1161c11e412b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214402Z:2e288756-8d13-449a-b6de-1161c11e412b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/98751379-f9fe-4791-bc6f-f77eb1de3440?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy85ODc1MTM3OS1mOWZlLTQ3OTEtYmM2Zi1mNzdlYjFkZTM0NDA/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1bc0a820-8823-4803-8537-47eeec76d88c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"name\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"displayName\": \"Network\",\r\n \"namespace\": \"Microsoft.Network.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/infraRoles/Network\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "883" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv/NmiyQTcEDxOSxgi9t6k5j7xcoN65TGkMX4PSdQaGlMDYeBHFpRZVzc80h7/mUdu9sODDJIjvUBWfaf2bltVq+xCUJ0OcKJanTOiZzmlOz2LwcP/gc5nBjU8SAgXP4Ubj8AiUkDL+i9Id1Gq0kPa" + ], + "x-ms-correlation-request-id": [ + "8200a6b6-69b5-410a-837a-548ef13e54d7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14675" + ], + "x-ms-request-id": [ + "8200a6b6-69b5-410a-837a-548ef13e54d7" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214402Z:8200a6b6-69b5-410a-837a-548ef13e54d7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/bb58377f-3d7d-4d7f-b3b3-d433d422bf9e?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9iYjU4Mzc3Zi0zZDdkLTRkN2YtYjNiMy1kNDMzZDQyMmJmOWU/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f5fb2561-8ed4-4a47-a7f8-845ee1bea0c2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"name\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"displayName\": \"Region Management\",\r\n \"namespace\": \"Microsoft.InfrastructureInsights.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/infraRoles/Region Management\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "987" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvCKkEQk2X1Av1Jsshl1lZokFAL0v19qpJLeHJ6ohd323JVOQkqOK2E0dLi6y95z0XaG4Lfsm7jqvyRxlhwsfpcX7VunDKcULcvxGOeXHq1QrG6boBmrMmwcdYoHJeG3TZG05cSW80HDqYXayTnqDl" + ], + "x-ms-correlation-request-id": [ + "8beb6952-f5f7-4e95-9633-6c302cb75984" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14674" + ], + "x-ms-request-id": [ + "8beb6952-f5f7-4e95-9633-6c302cb75984" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214402Z:8beb6952-f5f7-4e95-9633-6c302cb75984" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3320e295-e5ae-4a7f-8d6c-b8dc2fe16725" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"name\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"displayName\": \"Capacity\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Capacity\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 1\r\n },\r\n \"healthState\": \"Warning\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "925" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvFt0G2Dmj7RglHNXzOMWAGLqSG4LKPoumGQhqYycJKgFLM2qfnZd3xOwyB9AG9IIQD4bkAGA+wORYO5iIKxF4D+FtNQWW/6y4IOJ3M6+JYYANqL/RJxVQrnVqp5YqWkeaF/mpRIwIPBOTbbfybCFy" + ], + "x-ms-correlation-request-id": [ + "b9a4c08f-52e3-485a-a182-a944ad981f70" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14673" + ], + "x-ms-request-id": [ + "b9a4c08f-52e3-485a-a182-a944ad981f70" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214402Z:b9a4c08f-52e3-485a-a182-a944ad981f70" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetRegionHealth.json b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetRegionHealth.json new file mode 100644 index 000000000000..f6e27b6241cf --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetRegionHealth.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9bdc42d-bfa0-4134-8544-2aaf1ea1d9e9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"usageMetrics\": [\r\n {\r\n \"name\": \"Physical memory\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"GB\",\r\n \"value\": 84.409721374511719\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"GB\",\r\n \"value\": 173.84765625\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Physical storage\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"TB\",\r\n \"value\": 0.30929161235690117\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"TB\",\r\n \"value\": 2.1573221571743488\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Public IP address pools\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"One\",\r\n \"value\": 32.0\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"One\",\r\n \"value\": 223.0\r\n }\r\n ]\r\n }\r\n ],\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 1\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "825" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvoPcmz2ZNTX1DjVbWi6u8+08urghbQfwygNwmFPfLJ30j2kAsY5eJe/rTPUZjOCpvbNBICxJCidejUK60WiGjTq9qaiKANkYZnslO11hwgQ6x1FkYsfrdNI7mfYLQQDkoPKZPN7Tnvu2gC5n6xTRD" + ], + "x-ms-correlation-request-id": [ + "20b122cf-b7c3-4412-ab53-c368369bed68" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14761" + ], + "x-ms-request-id": [ + "20b122cf-b7c3-4412-ab53-c368369bed68" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214355Z:20b122cf-b7c3-4412-ab53-c368369bed68" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbD9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "65aa764a-5fd5-45c6-ab42-096013de2363" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"usageMetrics\": [\r\n {\r\n \"name\": \"Physical memory\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"GB\",\r\n \"value\": 84.409721374511719\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"GB\",\r\n \"value\": 173.84765625\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Physical storage\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"TB\",\r\n \"value\": 0.30929161235690117\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"TB\",\r\n \"value\": 2.1573221571743488\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Public IP address pools\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"One\",\r\n \"value\": 32.0\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"One\",\r\n \"value\": 223.0\r\n }\r\n ]\r\n }\r\n ],\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 1\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "813" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvHmYkwQ+SCNpVrkyCXsq5B4hIeOrz/Fki9o/HgrO02y9+vbcipPMvQEy0nvZcrpUznHYy2pU0/3kMIxyUp3yN2pgEmzchpyv3guPWpuYDUhOoy/s++FDyu8yl9XhUFYarAgb6Ar4Xj68zf6SbmPEU" + ], + "x-ms-correlation-request-id": [ + "f2143056-7eb3-4de1-a778-1be86a60f915" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14760" + ], + "x-ms-request-id": [ + "f2143056-7eb3-4de1-a778-1be86a60f915" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214355Z:f2143056-7eb3-4de1-a778-1be86a60f915" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetResourceHealth.json b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetResourceHealth.json new file mode 100644 index 000000000000..8cfea58ff77b --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetResourceHealth.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "82538fcb-74cd-46ce-88c9-36f12e21c799" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"name\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"displayName\": \"Key Vault\",\r\n \"namespace\": \"Microsoft.KeyVault.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local/infraRoles/Key Vault\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"name\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"displayName\": \"Storage\",\r\n \"namespace\": \"Microsoft.Storage.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f/infraRoles/Storage\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"name\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"displayName\": \"Updates\",\r\n \"namespace\": \"Microsoft.Update.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local/infraRoles/Updates\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"name\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"displayName\": \"Compute\",\r\n \"namespace\": \"Microsoft.Compute.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/infraRoles/Compute\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"name\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"displayName\": \"Network\",\r\n \"namespace\": \"Microsoft.Network.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/infraRoles/Network\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"name\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"displayName\": \"Region Management\",\r\n \"namespace\": \"Microsoft.InfrastructureInsights.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/infraRoles/Region Management\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"name\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"displayName\": \"Capacity\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Capacity\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 1\r\n },\r\n \"healthState\": \"Warning\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "6508" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvBcarxt5fg3+QOXcx5ukTzLMS4YwdxhgZtG23B1Yi1MVYbK/7uSR4xSUvsYntsiaa6e4wpS9fLT+JSr7DWS82LyvIqFm4wStnznJICzpo1sCgQmz2G+kBBYpaViWzyTljcnM3c9bVBoC8sIJwxveV" + ], + "x-ms-correlation-request-id": [ + "edef5fbd-5e56-46f5-8da8-5e562aeebc77" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14704" + ], + "x-ms-request-id": [ + "edef5fbd-5e56-46f5-8da8-5e562aeebc77" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214359Z:edef5fbd-5e56-46f5-8da8-5e562aeebc77" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy8wYTJkZjZkOC00NTcwLTRjZjUtOGM4Zi04ZDk2ZGMxZmQyYTkvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ae3d0ca8-04b7-4135-9e47-455e24ced1e3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvIpeo99+V9nfv2UmI3arD6i/f29iJ0OGKla9QKWfn6JLD9tQ7scO32yk1iyAGqkBtcTrMVF6CKoPYxgCh5fWvt7I3UuEHUwLXq4umvM91ithdqCxwOatN9AugTvH5Lksh8wYcNteOACDJzsDdtFOG" + ], + "x-ms-correlation-request-id": [ + "0b5f6a78-3764-414f-9d82-aa415de7fa62" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14703" + ], + "x-ms-request-id": [ + "0b5f6a78-3764-414f-9d82-aa415de7fa62" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214359Z:0b5f6a78-3764-414f-9d82-aa415de7fa62" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetServiceHealth.json b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetServiceHealth.json new file mode 100644 index 000000000000..9d44b5d4e894 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestGetServiceHealth.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "84b3cac6-6989-47df-963b-60d3f6f83848" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"name\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"displayName\": \"Key Vault\",\r\n \"namespace\": \"Microsoft.KeyVault.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local/infraRoles/Key Vault\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"name\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"displayName\": \"Storage\",\r\n \"namespace\": \"Microsoft.Storage.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f/infraRoles/Storage\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"name\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"displayName\": \"Updates\",\r\n \"namespace\": \"Microsoft.Update.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local/infraRoles/Updates\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"name\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"displayName\": \"Compute\",\r\n \"namespace\": \"Microsoft.Compute.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/infraRoles/Compute\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"name\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"displayName\": \"Network\",\r\n \"namespace\": \"Microsoft.Network.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/infraRoles/Network\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"name\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"displayName\": \"Region Management\",\r\n \"namespace\": \"Microsoft.InfrastructureInsights.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/infraRoles/Region Management\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"name\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"displayName\": \"Capacity\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Capacity\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 1\r\n },\r\n \"healthState\": \"Warning\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "6508" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvy0mf+v+EtENMII7GhWkPg/7E4L8SZ7M0RPgTOaupJhMuXu/pIXN/EJm64tjxM4aiCYZnBFWz8vRDoQ1yN5M3eQk32FeSMJLqiqbMPBviurN9NC0nC0k9pFpLqPBv3CKueYzReW6o+Zt6VTMirY4z" + ], + "x-ms-correlation-request-id": [ + "45bd9a3b-07ba-480e-ab35-6a7cfc595887" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14683" + ], + "x-ms-request-id": [ + "45bd9a3b-07ba-480e-ab35-6a7cfc595887" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214401Z:45bd9a3b-07ba-480e-ab35-6a7cfc595887" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy8wYTJkZjZkOC00NTcwLTRjZjUtOGM4Zi04ZDk2ZGMxZmQyYTk/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "da61f16a-2863-45a1-92c1-c3cf2f11fcda" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"name\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"displayName\": \"Key Vault\",\r\n \"namespace\": \"Microsoft.KeyVault.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local/infraRoles/Key Vault\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "921" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvK9oyqKmL73cCz7ztRKyfcrlD29DN0YqPcFTqcgSUpix8LtPAqFFLerOkGJtpG/mWFitHSa85nmxxQWv2J5LLNFddilhfLJNyoSz1t8yMV6huYdt3+a19uAXm1yj/dpBTGbGntlXzGXa37MU8zNMv" + ], + "x-ms-correlation-request-id": [ + "2f40c866-7308-4a8e-98c2-67988de6ab41" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14682" + ], + "x-ms-request-id": [ + "2f40c866-7308-4a8e-98c2-67988de6ab41" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214401Z:2f40c866-7308-4a8e-98c2-67988de6ab41" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestListAlerts.json b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestListAlerts.json new file mode 100644 index 000000000000..29b7ac7f2e05 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestListAlerts.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c2089e95-da72-411b-9810-5961739f6db6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"name\": \"148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:52:27.9460892Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:44:12.8595509Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Infrastructure management controller is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/FabricControllerRing/FabricControllerRing\",\r\n \"alertId\": \"148820f7-807a-4edd-857b-a23c3dcb6acf\",\r\n \"faultTypeId\": \"ServiceFabricClusterUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:52:27.9460892Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"fabricName\": \"FabricControllerRing\",\r\n \"description\": null,\r\n \"serviceType\": \"FabricControllerRing\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceRegistrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"impactedResourceDisplayName\": \"Infrastructure management controller\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"name\": \"17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:48:31.0247234Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:40:15.9830227Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"17d030ef-7be7-4e12-a653-6158a3bc7643\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:48:31.0247234Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Warning\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"name\": \"3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T20:24:27.4305971Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:49:19.6390621Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"3489976e-f3a2-434f-8c17-c4b41dde22ff\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T20:24:27.4305971Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"name\": \"356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:21:34.6732222Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:19:19.5859341Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"356fd53c-b355-4522-ab5b-1a0f385381fa\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:21:34.6732222Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"name\": \"37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:33:12.719326Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:24:57.7138362Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"37fab95e-8981-4657-872a-d0a904308d26\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:33:12.719326Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"name\": \"7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:52:27.9304636Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:44:12.8595509Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Region Management is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/HealthResourceProvider/fabric:/HealthResourceProvider\",\r\n \"alertId\": \"7ff5f418-75e1-41e3-85c3-229e369313a3\",\r\n \"faultTypeId\": \"ServiceFabricApplicationUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:52:27.9304636Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Region Management\",\r\n \"fabricName\": \"fabric:/HealthResourceProvider\",\r\n \"description\": null,\r\n \"serviceType\": \"HealthResourceProvider\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthResourceProvider\",\r\n \"impactedResourceDisplayName\": \"HealthResourceProvider\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"name\": \"886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-30T19:49:07.0029782Z\",\r\n \"createdTimestamp\": \"2017-08-25T20:24:19.8253844Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"886b39e2-d10a-4acc-9b23-0dade1efc70c\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-30T19:49:07.0029782Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"name\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"createdTimestamp\": \"2017-08-30T19:49:33.9350554Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"aaf09d95-1fd3-40b7-a5b9-d3a8c82affd1\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-09-01T21:39:40.1913723Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Active\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"name\": \"b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T04:33:12.7349528Z\",\r\n \"createdTimestamp\": \"2017-08-25T04:24:57.7450873Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role Infrastructure management controller is experiencing issues.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"ServiceFabric:/FabricControllerRing/FabricControllerRing\",\r\n \"alertId\": \"b8f81ea8-cf7d-4909-a9f4-0779909e15eb\",\r\n \"faultTypeId\": \"ServiceFabricClusterUnhealthy\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T04:33:12.7349528Z\",\r\n \"alertProperties\": {\r\n \"healthState\": \"Error\",\r\n \"name\": \"Infrastructure management controller\",\r\n \"fabricName\": \"FabricControllerRing\",\r\n \"description\": null,\r\n \"serviceType\": \"FabricControllerRing\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"Please contact Support. Before you do, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceRegistrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role is unhealthy\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"impactedResourceDisplayName\": \"Infrastructure management controller\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"name\": \"c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:16:49.2779296Z\",\r\n \"createdTimestamp\": \"2017-08-22T05:29:09.4699501Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"c0328148-006b-482b-9c75-ad58c454225b\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:16:49.2779296Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"name\": \"cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:29:55.676245Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:24:19.5943758Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"cf278262-78cd-43eb-8cd8-9c4cac5e75f7\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:29:55.676245Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"name\": \"db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2017-08-25T18:50:18.7385957Z\",\r\n \"createdTimestamp\": \"2017-08-25T18:29:19.6067697Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"db1a20c7-08f4-4453-96b5-0d73461a8cac\",\r\n \"faultTypeId\": \"AzureStackNotActivated\",\r\n \"lastUpdatedTimestamp\": \"2017-08-25T18:50:18.7385957Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"ERROR - Template for FaultType AzureStackNotActivated has invalid values.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"impactedResourceDisplayName\": \"Capacity\",\r\n \"closedByUserAlias\": \"ciserviceadmin@msazurestack.onmicrosoft.com\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "17008" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvJDuEg9KaFAadAwKLd0HEKzffDNo3Mbf3dmNPftOcQfzXrQU1isyE1gv2tOV74WNNV7KS3TzqAxoFoctTadKqKt9yfS0ToOdbPtJ4iyu/YV2CpphwNaPAT9xwfznSHbZiZgztLoNThT2FaLXBJdft" + ], + "x-ms-correlation-request-id": [ + "7596ba39-8852-41a2-8c27-240073cd2111" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14702" + ], + "x-ms-request-id": [ + "7596ba39-8852-41a2-8c27-240073cd2111" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214359Z:7596ba39-8852-41a2-8c27-240073cd2111" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestListRegionHealths.json b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestListRegionHealths.json new file mode 100644 index 000000000000..9360980b4e43 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestListRegionHealths.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4cc67cd6-8e1d-4751-9fa0-de2b5ad9857e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"usageMetrics\": [\r\n {\r\n \"name\": \"Physical memory\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"GB\",\r\n \"value\": 84.409721374511719\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"GB\",\r\n \"value\": 173.84765625\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Physical storage\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"TB\",\r\n \"value\": 0.30929161235690117\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"TB\",\r\n \"value\": 2.1573221571743488\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Public IP address pools\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"One\",\r\n \"value\": 32.0\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"One\",\r\n \"value\": 223.0\r\n }\r\n ]\r\n }\r\n ],\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 1\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "825" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvMd2pmVIcTr5UmFZu4dTpiKh79IuBMi+rwOA80RCrCKV0paUNKGoiT4Zm8daGPXM/l8nL5ItDcit5/uPfqs2xnMDtsPO6eFLx4TrgAhGkHKUOrr4SSQtzMQ5OGk1XYnW2vJL1LLqYH3CF2PX7SDyR" + ], + "x-ms-correlation-request-id": [ + "46664b80-c6d1-405c-a149-fc4dc822e5d5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14762" + ], + "x-ms-request-id": [ + "46664b80-c6d1-405c-a149-fc4dc822e5d5" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214355Z:46664b80-c6d1-405c-a149-fc4dc822e5d5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestListResourceHealths.json b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestListResourceHealths.json new file mode 100644 index 000000000000..e3e9e4dde8c2 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestListResourceHealths.json @@ -0,0 +1,520 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2985479b-ff88-47f8-9f03-0dd849e3f728" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"name\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"displayName\": \"Key Vault\",\r\n \"namespace\": \"Microsoft.KeyVault.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local/infraRoles/Key Vault\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"name\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"displayName\": \"Storage\",\r\n \"namespace\": \"Microsoft.Storage.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f/infraRoles/Storage\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"name\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"displayName\": \"Updates\",\r\n \"namespace\": \"Microsoft.Update.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local/infraRoles/Updates\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"name\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"displayName\": \"Compute\",\r\n \"namespace\": \"Microsoft.Compute.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/infraRoles/Compute\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"name\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"displayName\": \"Network\",\r\n \"namespace\": \"Microsoft.Network.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/infraRoles/Network\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"name\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"displayName\": \"Region Management\",\r\n \"namespace\": \"Microsoft.InfrastructureInsights.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/infraRoles/Region Management\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"name\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"displayName\": \"Capacity\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Capacity\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 1\r\n },\r\n \"healthState\": \"Warning\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "6508" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvxpFc1DFn9+yOgAa4+IXIQeyNPomOqYJLQ7hlbRbJiiag0fBR0m1HmycFCfWlMJUqJ/HvjFk33YeggSZCgBhaQjTm/2HgdLhy/FnMgXaa5MZtrm0fy1/EFKL2bgwHrV8UqvmECq/p92p/821FtnRD" + ], + "x-ms-correlation-request-id": [ + "f7705fc8-e51a-49b6-896c-3245afa08f84" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14712" + ], + "x-ms-request-id": [ + "f7705fc8-e51a-49b6-896c-3245afa08f84" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214358Z:f7705fc8-e51a-49b6-896c-3245afa08f84" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy8wYTJkZjZkOC00NTcwLTRjZjUtOGM4Zi04ZDk2ZGMxZmQyYTkvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bf35f710-6390-4b6a-ad47-d045d9655330" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv7l+KWg+f+F2Utep6iV4ihKl3em1QnHpdMd2T00NbQdYl9bMPJ2yH5DDbU8HhXQJUYP/oINnsBq77x3OopmdolA3kz9EbD0BWgav2wB+OXn6oPSGqmGdsrSUjvdOnVTkUp1GgGM9P+jppdEsb9Jzo" + ], + "x-ms-correlation-request-id": [ + "a7947127-b39a-4c88-9c7c-593498160287" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14711" + ], + "x-ms-request-id": [ + "a7947127-b39a-4c88-9c7c-593498160287" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214359Z:a7947127-b39a-4c88-9c7c-593498160287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/12bf0da4-e310-4767-bc5f-5d31c0414062/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy8xMmJmMGRhNC1lMzEwLTQ3NjctYmM1Zi01ZDMxYzA0MTQwNjIvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2ecd047d-b41c-4eb8-83b6-b314c29eb80b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvh3ELybp8dKbNaBha9C4dV5zzc3hZ06F0xFyO/ezD6xmsn/zmQvVryo7suYVqf93f/A+PV/AaSqUX0vbXipzB4cy/GjvrGJbwZwqHdJoH4ZEUNZHyiZAATF/H9AaoQyLx6SABBkgJb8x4qJpPoLoP" + ], + "x-ms-correlation-request-id": [ + "6636ea65-f77a-4ef0-aaf8-82874911bc3c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14710" + ], + "x-ms-request-id": [ + "6636ea65-f77a-4ef0-aaf8-82874911bc3c" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214359Z:6636ea65-f77a-4ef0-aaf8-82874911bc3c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/2f2fc564-8714-41c3-89ea-ab7f9bf8483b/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy8yZjJmYzU2NC04NzE0LTQxYzMtODllYS1hYjdmOWJmODQ4M2IvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8798478b-4eeb-4769-b709-4e3d56b92154" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv2O5zcfBtte/gPlfIIgLiGG8IKT7otpN6Dp2+BHn84XwsxcNFc6z81naugU9Jq90aJQm5seH0MLMBSwjt+7XP5bqGYNUDpxoqMOBMMIY7LR0kwYcKvegLLnOol0rPVfkw8CQS4zFma890DfvtIYSv" + ], + "x-ms-correlation-request-id": [ + "4d2db483-d6a1-4786-91aa-8b3dde1ebad8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14709" + ], + "x-ms-request-id": [ + "4d2db483-d6a1-4786-91aa-8b3dde1ebad8" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214359Z:4d2db483-d6a1-4786-91aa-8b3dde1ebad8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/423f8608-0c64-4d87-8c07-811adfb7cc41/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy80MjNmODYwOC0wYzY0LTRkODctOGMwNy04MTFhZGZiN2NjNDEvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e8741eec-01c3-490b-81c8-d17df2edb5fc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvdMn4wKUN7dL1XSATTdrA3DoaDeIxsODDMiTdx8/0pkC/kY6FauedrxE3QZWPIbc6S0P1/hv4QLQffT2DR8nNl7RqM1QrWtaLXr0qWnGJgfSntN8T8FT2aBZh1/EYU2G2ezZSTJr5il8IWek/9a6K" + ], + "x-ms-correlation-request-id": [ + "50251f76-a14d-4d1e-84d3-0d841c34eda5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14708" + ], + "x-ms-request-id": [ + "50251f76-a14d-4d1e-84d3-0d841c34eda5" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214359Z:50251f76-a14d-4d1e-84d3-0d841c34eda5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/98751379-f9fe-4791-bc6f-f77eb1de3440/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy85ODc1MTM3OS1mOWZlLTQ3OTEtYmM2Zi1mNzdlYjFkZTM0NDAvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9450cbaf-0285-47e8-a304-e737963af5ef" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv+V4KiNC+uZBKm1Rib5dPhRW/dZ0MV0CnEz02UDZ8+UbkxmV/YqU0gjLdna64vQBWPpawUzQL+PqMbjdl2mIpIcR972rjbjR2jkHAyuo6GIsI+vhDdU7a5d8nLIqe0p53yVCUlz3BLFplMsLo94PW" + ], + "x-ms-correlation-request-id": [ + "7cec2c00-8b6f-4202-aef7-5aa5855daa6b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14707" + ], + "x-ms-request-id": [ + "7cec2c00-8b6f-4202-aef7-5aa5855daa6b" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214359Z:7cec2c00-8b6f-4202-aef7-5aa5855daa6b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/bb58377f-3d7d-4d7f-b3b3-d433d422bf9e/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9iYjU4Mzc3Zi0zZDdkLTRkN2YtYjNiMy1kNDMzZDQyMmJmOWUvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "30683d71-b481-4811-9a7d-aa4eeb68bb17" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvj8Ya4YQ2dvzErHrhOIcC6VgGlpiBeMYaxp6EdWalXfppiUDCW9GeFVEsFdJw51DSHYPPUcajkgttMNToPJ56glikmDtuR6JJLGsLGnzOzbD47MMn3frO2tWAldj57nkWrrxJAWVtFqCa6L2XE/pd" + ], + "x-ms-correlation-request-id": [ + "75e5b0b7-c3c4-4cc8-b779-cdc1a49e75c3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14706" + ], + "x-ms-request-id": [ + "75e5b0b7-c3c4-4cc8-b779-cdc1a49e75c3" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214359Z:75e5b0b7-c3c4-4cc8-b779-cdc1a49e75c3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocy9lNTZiYzdiOC1jOGI1LTRlMjUtYjAwYy00Zjk1MWVmZmIyMmMvcmVzb3VyY2VIZWFsdGhzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d2a3c46d-dc83-47a8-99a9-7d4dbbe9e473" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/0414499b-2f9a-486d-88bb-d8573e1510ec\",\r\n \"name\": \"0414499b-2f9a-486d-88bb-d8573e1510ec\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"0414499b-2f9a-486d-88bb-d8573e1510ec\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ComputeController\",\r\n \"resourceDisplayName\": \"Compute controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ComputeController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/184b3d84-68c9-46b3-81e6-bab21b92c1c5\",\r\n \"name\": \"184b3d84-68c9-46b3-81e6-bab21b92c1c5\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"184b3d84-68c9-46b3-81e6-bab21b92c1c5\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultInternalControlPlane\",\r\n \"resourceDisplayName\": \"Key Vault controller (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultInternalControlPlane\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/2df06d73-895e-4b34-86ba-2ed9996de5b9\",\r\n \"name\": \"2df06d73-895e-4b34-86ba-2ed9996de5b9\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"2df06d73-895e-4b34-86ba-2ed9996de5b9\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ServicesController\",\r\n \"resourceDisplayName\": \"Infrastructure role controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ServicesController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/2f44b781-4af4-4c8c-97e0-219c4ed9984f\",\r\n \"name\": \"2f44b781-4af4-4c8c-97e0-219c4ed9984f\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"2f44b781-4af4-4c8c-97e0-219c4ed9984f\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"NetworkController\",\r\n \"resourceDisplayName\": \"Network controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/NetworkController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/31fbecbf-4d5b-4d1e-8b57-f904f95ca4cb\",\r\n \"name\": \"31fbecbf-4d5b-4d1e-8b57-f904f95ca4cb\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"31fbecbf-4d5b-4d1e-8b57-f904f95ca4cb\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AzureResourceManagerAdmin\",\r\n \"resourceDisplayName\": \"Azure Resource Manager (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AzureResourceManagerAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/396f261b-06f9-4532-b060-bda463de8e93\",\r\n \"name\": \"396f261b-06f9-4532-b060-bda463de8e93\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"396f261b-06f9-4532-b060-bda463de8e93\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"RASGateway\",\r\n \"resourceDisplayName\": \"Edge gateway\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/RASGateway\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/3ba3d302-5cb0-4cf2-bbf0-d78b86441bc8\",\r\n \"name\": \"3ba3d302-5cb0-4cf2-bbf0-d78b86441bc8\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"3ba3d302-5cb0-4cf2-bbf0-d78b86441bc8\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"InsightsServiceAdmin\",\r\n \"resourceDisplayName\": \"Insights service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/InsightsServiceAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/3dfbcdda-fba8-45ec-a8a5-c4c2f955ee69\",\r\n \"name\": \"3dfbcdda-fba8-45ec-a8a5-c4c2f955ee69\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"3dfbcdda-fba8-45ec-a8a5-c4c2f955ee69\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"EnterpriseCloudEngine\",\r\n \"resourceDisplayName\": \"Infrastructure deployment\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/EnterpriseCloudEngine\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/4153b36c-e574-4f4e-af81-d2d3f2e46cb4\",\r\n \"name\": \"4153b36c-e574-4f4e-af81-d2d3f2e46cb4\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"4153b36c-e574-4f4e-af81-d2d3f2e46cb4\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ActiveDirectoryCertificateServices\",\r\n \"resourceDisplayName\": \"Certificate management\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ActiveDirectoryCertificateServices\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/4d28f77a-5fb1-4e49-bc68-fad4a703b1da\",\r\n \"name\": \"4d28f77a-5fb1-4e49-bc68-fad4a703b1da\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"4d28f77a-5fb1-4e49-bc68-fad4a703b1da\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"PortalUser\",\r\n \"resourceDisplayName\": \"Portal (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/PortalUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5492ed3b-f8ca-4e6d-85c6-428337ae02a4\",\r\n \"name\": \"5492ed3b-f8ca-4e6d-85c6-428337ae02a4\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"5492ed3b-f8ca-4e6d-85c6-428337ae02a4\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"SLBMultiplexer\",\r\n \"resourceDisplayName\": \"Load balancer multiplexer\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/SLBMultiplexer\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5e53a6eb-3797-4c4e-bd1c-325a89c881e1\",\r\n \"name\": \"5e53a6eb-3797-4c4e-bd1c-325a89c881e1\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"5e53a6eb-3797-4c4e-bd1c-325a89c881e1\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"BackupController\",\r\n \"resourceDisplayName\": \"Backup controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/BackupController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5f392616-929f-48d4-a561-4004c1723d26\",\r\n \"name\": \"5f392616-929f-48d4-a561-4004c1723d26\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"5f392616-929f-48d4-a561-4004c1723d26\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ApplicationGateway\",\r\n \"resourceDisplayName\": \"Partition request broker (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ApplicationGateway\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/5f93ed37-95a3-4bb7-ae66-9b8a6fef79ad\",\r\n \"name\": \"5f93ed37-95a3-4bb7-ae66-9b8a6fef79ad\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"5f93ed37-95a3-4bb7-ae66-9b8a6fef79ad\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"SeedRing\",\r\n \"resourceDisplayName\": \"Privileged endpoint\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/SeedRing\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/637b5b8b-37c9-494c-9a08-60a8170afe9f\",\r\n \"name\": \"637b5b8b-37c9-494c-9a08-60a8170afe9f\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"637b5b8b-37c9-494c-9a08-60a8170afe9f\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"HealthMonitoring\",\r\n \"resourceDisplayName\": \"Health controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/HealthMonitoring\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/644e453a-5dcb-48b0-ba8d-b67a798400cc\",\r\n \"name\": \"644e453a-5dcb-48b0-ba8d-b67a798400cc\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"644e453a-5dcb-48b0-ba8d-b67a798400cc\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"GalleryServiceUser\",\r\n \"resourceDisplayName\": \"Gallery service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/GalleryServiceUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/66cace75-f1a0-46d9-a3f9-79f355f02ed4\",\r\n \"name\": \"66cace75-f1a0-46d9-a3f9-79f355f02ed4\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"66cace75-f1a0-46d9-a3f9-79f355f02ed4\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AzureConsistentStorageRing\",\r\n \"resourceDisplayName\": \"Storage services\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AzureConsistentStorageRing\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/6ba0cf59-21e0-4493-8636-d4c0a0f63f57\",\r\n \"name\": \"6ba0cf59-21e0-4493-8636-d4c0a0f63f57\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"6ba0cf59-21e0-4493-8636-d4c0a0f63f57\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AuthorizationServiceUser\",\r\n \"resourceDisplayName\": \"Authorization service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AuthorizationServiceUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/7b201ea5-0539-49c3-9478-aaadecdaca3c\",\r\n \"name\": \"7b201ea5-0539-49c3-9478-aaadecdaca3c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"7b201ea5-0539-49c3-9478-aaadecdaca3c\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AzureResourceManagerUser\",\r\n \"resourceDisplayName\": \"Azure Resource Manager (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AzureResourceManagerUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/830841e0-0388-45c0-b641-c01c6a202145\",\r\n \"name\": \"830841e0-0388-45c0-b641-c01c6a202145\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"830841e0-0388-45c0-b641-c01c6a202145\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"MicrosoftSQLServer\",\r\n \"resourceDisplayName\": \"Internal data store\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/MicrosoftSQLServer\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/86b0371c-8dc1-4923-9461-103642e4a418\",\r\n \"name\": \"86b0371c-8dc1-4923-9461-103642e4a418\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"86b0371c-8dc1-4923-9461-103642e4a418\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"GalleryServiceAdmin\",\r\n \"resourceDisplayName\": \"Gallery service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/GalleryServiceAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/8944c315-446f-465d-a5b7-38dbf78436fb\",\r\n \"name\": \"8944c315-446f-465d-a5b7-38dbf78436fb\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"8944c315-446f-465d-a5b7-38dbf78436fb\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AuthorizationServiceAdmin\",\r\n \"resourceDisplayName\": \"Authorization service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AuthorizationServiceAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/90519aa6-9042-437b-affe-1dd5a1122e62\",\r\n \"name\": \"90519aa6-9042-437b-affe-1dd5a1122e62\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"90519aa6-9042-437b-affe-1dd5a1122e62\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"NonPrivilegedApplicationGateway\",\r\n \"resourceDisplayName\": \"Partition request broker (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/NonPrivilegedApplicationGateway\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/9983690e-1252-47d3-90f8-9292b9d90cfe\",\r\n \"name\": \"9983690e-1252-47d3-90f8-9292b9d90cfe\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"9983690e-1252-47d3-90f8-9292b9d90cfe\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"UsageServiceAdmin\",\r\n \"resourceDisplayName\": \"Usage service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/UsageServiceAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/9a8e1cef-3337-49c6-97ec-4e2da70e2357\",\r\n \"name\": \"9a8e1cef-3337-49c6-97ec-4e2da70e2357\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"9a8e1cef-3337-49c6-97ec-4e2da70e2357\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultDataPlane\",\r\n \"resourceDisplayName\": \"Key Vault service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultDataPlane\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/a9da3e57-6ade-42fd-975a-19db789c2ae0\",\r\n \"name\": \"a9da3e57-6ade-42fd-975a-19db789c2ae0\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"a9da3e57-6ade-42fd-975a-19db789c2ae0\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ActiveDirectoryDomainServices\",\r\n \"resourceDisplayName\": \"Directory management\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ActiveDirectoryDomainServices\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/b9097d6f-e3b2-4dfc-a0bc-8ad66e76488a\",\r\n \"name\": \"b9097d6f-e3b2-4dfc-a0bc-8ad66e76488a\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"b9097d6f-e3b2-4dfc-a0bc-8ad66e76488a\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultNamingService\",\r\n \"resourceDisplayName\": \"Key Vault name manager\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultNamingService\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/c4c065c2-b43a-43a9-be86-43fadb5f2b98\",\r\n \"name\": \"c4c065c2-b43a-43a9-be86-43fadb5f2b98\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"c4c065c2-b43a-43a9-be86-43fadb5f2b98\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"SubscriptionsServices\",\r\n \"resourceDisplayName\": \"Subscriptions service\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/SubscriptionsServices\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/c53f33bc-28ae-451b-a982-723f85cf39ac\",\r\n \"name\": \"c53f33bc-28ae-451b-a982-723f85cf39ac\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"c53f33bc-28ae-451b-a982-723f85cf39ac\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultControlPlane\",\r\n \"resourceDisplayName\": \"Key Vault controller (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultControlPlane\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"name\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"ca96c335-e545-4563-9d65-058db3a8ef15\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"FabricControllerRing\",\r\n \"resourceDisplayName\": \"Infrastructure management controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/FabricControllerRing\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/d706dddc-7c69-46b6-8033-a5540a2322b3\",\r\n \"name\": \"d706dddc-7c69-46b6-8033-a5540a2322b3\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"d706dddc-7c69-46b6-8033-a5540a2322b3\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"ActiveDirectoryFederationServices\",\r\n \"resourceDisplayName\": \"Active Directory Federation Services\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/ActiveDirectoryFederationServices\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/d8484c12-9008-420c-91a8-e69d1754c95b\",\r\n \"name\": \"d8484c12-9008-420c-91a8-e69d1754c95b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"d8484c12-9008-420c-91a8-e69d1754c95b\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"AzureBridge\",\r\n \"resourceDisplayName\": \"Azure bridge\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AzureBridge\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/d911feeb-88f2-480b-a488-c642665f776b\",\r\n \"name\": \"d911feeb-88f2-480b-a488-c642665f776b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"d911feeb-88f2-480b-a488-c642665f776b\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"UsageServiceUser\",\r\n \"resourceDisplayName\": \"Usage service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/UsageServiceUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/dac03a22-b857-412c-8c51-db1dae484fe8\",\r\n \"name\": \"dac03a22-b857-412c-8c51-db1dae484fe8\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"dac03a22-b857-412c-8c51-db1dae484fe8\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"KeyVaultInternalDataPlane\",\r\n \"resourceDisplayName\": \"Key Vault service (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/KeyVaultInternalDataPlane\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/e101540a-6d95-4c0c-9c3a-1eb92d06e461\",\r\n \"name\": \"e101540a-6d95-4c0c-9c3a-1eb92d06e461\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"e101540a-6d95-4c0c-9c3a-1eb92d06e461\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"InsightsServiceUser\",\r\n \"resourceDisplayName\": \"Insights service (User)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/InsightsServiceUser\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/e42ef826-07d7-4cea-9db0-dc831a05d05e\",\r\n \"name\": \"e42ef826-07d7-4cea-9db0-dc831a05d05e\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"e42ef826-07d7-4cea-9db0-dc831a05d05e\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"StorageController\",\r\n \"resourceDisplayName\": \"Storage controller\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/StorageController\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c/resourceHealths/f1af7248-0883-4d9b-9c01-45f5d86a109c\",\r\n \"name\": \"f1af7248-0883-4d9b-9c01-45f5d86a109c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/resourceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"f1af7248-0883-4d9b-9c01-45f5d86a109c\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"resourceType\": \"infraRoles\",\r\n \"resourceName\": \"PortalAdmin\",\r\n \"resourceDisplayName\": \"Portal (Administrator)\",\r\n \"usageMetrics\": [],\r\n \"resourceLocation\": \"local\",\r\n \"resourceURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/PortalAdmin\",\r\n \"rpRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "43578" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:43:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvlxsufNBz/t+gcIL3cz5QaeXcH2RDjBjdprGXLYJ/Lm0xV9PaUY9ii6PjGK5ty9cA9tR+mR2v4nbyQvwfN9cluQFJgkcCWuf9PcFbHiXUu/KGdLecXFTw3NAT8G1iwWoko+gWwToGFty4F3kYnVpQ" + ], + "x-ms-correlation-request-id": [ + "0daa83b2-4a7c-44da-970f-0e5c2a3b22eb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14705" + ], + "x-ms-request-id": [ + "0daa83b2-4a7c-44da-970f-0e5c2a3b22eb" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214359Z:0daa83b2-4a7c-44da-970f-0e5c2a3b22eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestListServiceHealths.json b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestListServiceHealths.json new file mode 100644 index 000000000000..151dc5d28126 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/SessionRecords/InfrastructureInsightsAdminClient/TestListServiceHealths.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths?api-version=2016-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9zZXJ2aWNlSGVhbHRocz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cc5803d7-5192-4b05-85ad-16a55c8d9dc6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.AzureStack.Management.Admin.InfrastructureInsights.InfrastructureInsightsAdminClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"name\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"0a2df6d8-4570-4cf5-8c8f-8d96dc1fd2a9\",\r\n \"displayName\": \"Key Vault\",\r\n \"namespace\": \"Microsoft.KeyVault.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.KeyVault.Admin/locations/local/infraRoles/Key Vault\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"name\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"12bf0da4-e310-4767-bc5f-5d31c0414062\",\r\n \"displayName\": \"Storage\",\r\n \"namespace\": \"Microsoft.Storage.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Storage.Admin/farms/f1031738-a8c7-4528-99f2-b712b7959b9f/infraRoles/Storage\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"name\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"2f2fc564-8714-41c3-89ea-ab7f9bf8483b\",\r\n \"displayName\": \"Updates\",\r\n \"namespace\": \"Microsoft.Update.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Update.Admin/updateLocations/local/infraRoles/Updates\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"name\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"423f8608-0c64-4d87-8c07-811adfb7cc41\",\r\n \"displayName\": \"Compute\",\r\n \"namespace\": \"Microsoft.Compute.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Compute.Admin/infraRoles/Compute\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"name\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"98751379-f9fe-4791-bc6f-f77eb1de3440\",\r\n \"displayName\": \"Network\",\r\n \"namespace\": \"Microsoft.Network.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Network.Admin/infraRoles/Network\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Healthy\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"name\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"bb58377f-3d7d-4d7f-b3b3-d433d422bf9e\",\r\n \"displayName\": \"Region Management\",\r\n \"namespace\": \"Microsoft.InfrastructureInsights.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/infraRoles/Region Management\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 0\r\n },\r\n \"healthState\": \"Unknown\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"name\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"registrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"displayName\": \"Capacity\",\r\n \"namespace\": \"Microsoft.Fabric.Admin\",\r\n \"routePrefix\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"serviceLocation\": \"local\",\r\n \"infraURI\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/Capacity\",\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 1\r\n },\r\n \"healthState\": \"Warning\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "6508" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 01 Sep 2017 21:44:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "WWW-Authenticate": [ + "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvALX4PD3d8O2SQvpYX6M9KjGxYLbRu4+31TYHQfJStxIn9un2t6hxNhLlW02hUUSTgZfeLpl9iVPfUSs7PtM7LXXIu/juK+LDR+E4k5B31qzEi/EXCEss/vWrItiL0juySn1YJyKphDpEgDMDEwba" + ], + "x-ms-correlation-request-id": [ + "a36eda35-7945-4d37-a7b3-82394a8eaede" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14681" + ], + "x-ms-request-id": [ + "a36eda35-7945-4d37-a7b3-82394a8eaede" + ], + "x-ms-routing-request-id": [ + "LOCAL:20170901T214401Z:a36eda35-7945-4d37-a7b3-82394a8eaede" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288" + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/AlertTests.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/AlertTests.cs new file mode 100644 index 000000000000..4f836baeaf9c --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/AlertTests.cs @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; +using Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models; +using Xunit; + +namespace InfrastructureInsights.Tests +{ + + public class AlertTests : InfrastructureInsightsTestBase + { + + private void AssertAlertsAreSame(Alert expected, Alert found) { + if (expected == null) + { + Assert.Null(found); + } + else + { + Assert.True(InfrastructureInsightsCommon.ResourceAreSame(expected, found)); + Assert.Equal(expected.AlertId, found.AlertId); + + if (expected.AlertProperties == null) + { + Assert.Null(found.AlertProperties); + } + else + { + Assert.Equal(expected.AlertProperties.Count, found.AlertProperties.Count); + } + + Assert.Equal(expected.ClosedByUserAlias, found.ClosedByUserAlias); + Assert.Equal(expected.ClosedTimestamp, found.ClosedTimestamp); + Assert.Equal(expected.CreatedTimestamp, found.CreatedTimestamp); + + if (expected.Description == null) + { + Assert.Null(found.Description); + } + else + { + Assert.Equal(expected.Description.Count, found.Description.Count); + } + + Assert.Equal(expected.FaultId, found.FaultId); + Assert.Equal(expected.FaultTypeId, found.FaultTypeId); + Assert.Equal(expected.ImpactedResourceDisplayName, found.ImpactedResourceDisplayName); + Assert.Equal(expected.ImpactedResourceId, found.ImpactedResourceId); + Assert.Equal(expected.LastUpdatedTimestamp, found.LastUpdatedTimestamp); + + if (expected.Remediation == null) + { + Assert.Null(found.Remediation); + } + else + { + Assert.Equal(expected.Remediation.Count, found.Remediation.Count); + } + + Assert.Equal(expected.ResourceProviderRegistrationId, found.ResourceProviderRegistrationId); + Assert.Equal(expected.ResourceRegistrationId, found.ResourceRegistrationId); + Assert.Equal(expected.Severity, found.Severity); + Assert.Equal(expected.State, found.State); + Assert.Equal(expected.Title, found.Title); + } + } + + private void ValidateAlert(Alert alert) { + Assert.NotNull(alert); + Assert.NotNull(alert.AlertId); + Assert.NotNull(alert.AlertProperties); + + // Can be null + // Assert.NotNull(alert.ClosedByUserAlias, "ClosedByUserAlias"); + + // Might not be closed yet! + //Assert.NotNull(alert.ClosedTimestamp, "ClosedTimestamp"); + Assert.NotNull(alert.CreatedTimestamp); + Assert.NotNull(alert.Description); + //Assert.NotNull(alert.FaultId, "FaultId"); + Assert.NotNull(alert.FaultTypeId); + Assert.NotNull(alert.ImpactedResourceDisplayName); + Assert.NotNull(alert.ImpactedResourceId); + Assert.NotNull(alert.LastUpdatedTimestamp); + Assert.NotNull(alert.Remediation); + Assert.NotNull(alert.ResourceProviderRegistrationId); + // TODO: Can be null. Is there a way to know when not supposed to be null? + // Assert.NotNull(alert.ResourceRegistrationId); + Assert.NotNull(alert.Severity); + Assert.NotNull(alert.State); + Assert.NotNull(alert.Title); + + } + + // Create and validate client + [Fact] + public void TestListAlerts() { + RunTest((client) => { + var alerts = client.Alerts.List(Location); + Common.MapOverIPage(alerts, client.Alerts.ListNext, ValidateAlert); + Common.WriteIPagesToFile(alerts, client.Alerts.ListNext, "ListAllAlerts.txt", (alert) => alert.FaultId); + }); + } + + [Fact] + public void TestGetAlert() { + RunTest((client) => { + var alert = client.Alerts.List(Location).GetFirst(); + var retrieved = client.Alerts.Get(Location, alert.Name); + AssertAlertsAreSame(alert, retrieved); + }); + } + + [Fact] + public void TestGetAllAlerts() { + RunTest((client) => { + var alerts = client.Alerts.List(Location); + Common.MapOverIPage(alerts, client.Alerts.ListNext, (alert) => { + var retrieved = client.Alerts.Get(Location, alert.Name); + AssertAlertsAreSame(alert, retrieved); + }); + }); + } + + + + [Fact] + public void TestCloseAlert() { + RunTest((client) => { + bool done = false; + var alerts = client.Alerts.List(Location); + Common.MapOverIPage(alerts, client.Alerts.ListNext, (alert) => { + if (done) return; + if (alert.State != "Closed") + { + alert.State = "Closed"; + client.Alerts.Close(Location, alert.Name, "AlertCloseTests", alert); + var retrieved = client.Alerts.Get(Location, alert.Name); + Assert.Equal("Closed", retrieved.State); + + done = true; + } + }); + }); + } + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/Helpers/AzureStackTestBase.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/Helpers/AzureStackTestBase.cs new file mode 100644 index 000000000000..bcf6da1aed14 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/Helpers/AzureStackTestBase.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. + +using System; +using System.Net; + +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + +namespace InfrastructureInsights.Tests +{ + /// + /// Base class for all AzureStack tests. This class should not be modified but extended through a child class. + /// + /// + public abstract class AzureStackTestBase where T : class + { + + /// + /// Reference to service client. + /// + protected T client; + + /// + /// Validate the client. + /// + /// The instantiated client we want to validate. + protected abstract void ValidateClient(T client); + + /// + /// The default location for all admin actions. Override in derived class as needed. + /// + protected string Location = "local"; + + /// + /// Run a test that accepts no arguments. An exception can be + /// + /// The test we wish to run. + /// Function to execute before your test has completed. + /// Function to execute after your test has completed. + /// Expected returned HttpStatusCode. + /// Thrown when an unexpected exception occurs. + /// + protected void RunTest(Action test, + Action before = null, + Action after = null, + HttpStatusCode status = HttpStatusCode.OK, + [System.Runtime.CompilerServices.CallerMemberName] + string methodName= "testframework_failed") { + + Exception caught = null; + + try + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = status }; + handler.IsPassThrough = true; + + using (MockContext context = MockContext.Start(typeof(T).Name, methodName)) + { + var client = context.GetServiceClient(handlers: handler); + ValidateClient(client); + + before?.Invoke(); + test(client); + after?.Invoke(); + } + } + catch (Exception ex) + { + caught = ex; + } + finally + { + if (caught != null) + { + throw new Exception("Test failed", caught); + } + } + } + + public void IgnoreExceptions(Action action) { + try { action(); } + catch (Exception) { } + } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/Helpers/Common.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/Helpers/Common.cs new file mode 100644 index 000000000000..b01ab32739cc --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/Helpers/Common.cs @@ -0,0 +1,276 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. + +using Microsoft.Rest; +using Microsoft.Rest.Azure; +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Net.Http; +using System.Text; + +namespace InfrastructureInsights.Tests +{ + + /// + /// A collection of common values and functions + /// + public class Common + { + + public const string AcceptableCharactersForResourceName = "abcdefghijklmnopqrstuvwxyz0123456789"; + public const int MaxResourceNameLength = 24; + + // This is just for code readability + public const int Milliseconds = 1; + public const int Seconds = 1000 * Milliseconds; + public const int Minutes = 60 * Seconds; + public const int Hours = 60 * Minutes; + + /// + /// Allows tests to retrieve content from Azure Stack directly. + /// + /// The client used to connect. + /// Credentials used to connect. + /// The location of the object. + /// Body of the request. + /// + public static string RetrieveObject(HttpClient client, ServiceClientCredentials creds, string uri) { + return RetrieveObject(client, creds, new Uri(uri)); + } + + + /// + /// Allows tests to retrieve content from Azure Stack directly. + /// + /// The client used to connect. + /// Credentials used to connect. + /// The location of the object. + /// Body of the request. + public static string RetrieveObject(HttpClient client, ServiceClientCredentials creds, Uri uri) { + var message = new HttpRequestMessage(HttpMethod.Get, uri); + creds.ProcessHttpRequestAsync(message, System.Threading.CancellationToken.None); + var result = client.SendAsync(message).Result; + return result.Content.ToString(); + } + + /// + /// Generate a random name that can be ingested by Azure or AzureStack. + /// + /// The prefix added to the string. The default is okaytodelete. + /// The generated string. + public static string GenerateRandomName(string prefix = "okaytodelete", bool useGuid = true) { + StringBuilder sb = new StringBuilder(prefix); + if (useGuid) + { + sb.Append(Guid.NewGuid()); + } + else + { + Random rand = new Random(); + for (int i = 0; sb.Length < MaxResourceNameLength; ++i) + { + sb.Append(AcceptableCharactersForResourceName[rand.Next(AcceptableCharactersForResourceName.Length)]); + } + } + return sb.ToString(); + } + + /// + /// Given an operation retry it either some given number of times or until it succeeds + /// + /// Function which returns true if it succeeds, false otherwise + /// Maximum number of retries + /// Delay between retries + public static bool RetryOperation(Func func, uint retries = 10, int delay = 250 * Common.Milliseconds) { + while (retries > 0) + { + if (func()) + { + break; + } + --retries; + System.Threading.Thread.Sleep(delay); + } + return retries >= 0; + } + + /// + /// Given an operation retry it either some given number of times or until an exception is thrown. + /// + /// The action we want to perform. + /// Maximum number of retries + /// Delay between retries + /// True if an exception is thrown, false if we reach our retry limit. + public static bool RetryExceptionExpected(Action act, uint retries = 10, int delay = 250 * Common.Milliseconds) { + Func func = () => { try { act() ; return false; } catch {} return true;}; + return RetryOperation( func, retries, delay); + } + + /// + /// Go over each page and perform some action on it. + /// + /// Type of object held within the pages. + /// Page we start from. + /// Function will return the next page. + /// What action to perform on each object. + public static void MapOverIPage(IPage start, Func> getNext, Action action = default(Action)) { + var curr = start; + for (;;) + { + curr.ForEach(action); + + if (string.IsNullOrEmpty(curr.NextPageLink)) + { + break; + } + + curr = getNext(curr.NextPageLink); + } + } + + /// + /// Write IPages to a given file from a starting IPage. + /// + /// The type of object each IPage holds. + /// The starting IPage. + /// Given a valid URI returns the next IPage. + /// The name of the file. + /// Returns a string representation of object of type T. + /// + public static void WriteIPagesToFile(IPage start, Func> getNext, System.String filename, Func toString = null) { + using(System.IO.FileStream stream = System.IO.File.Create(filename)) { + WriteIPagesToStream( start, getNext, stream, toString); + } + } + + /// + /// Write all element in an enumerable to a file on their own line. + /// + /// Type held in Enumerable. + /// Input IEnumerable. + /// The name of the file. + /// Returns a string representation of object of type T. Default action is to call ToString. + public static void WriteIEnumerableToFile(IEnumerable iter, System.String filename, Func toString = null) { + using(System.IO.FileStream stream = System.IO.File.Create(filename)) { + WriteIEnumerableToStream( iter, stream, toString); + } + } + + /// + /// Write all IPage + /// + /// Type held in each page. + /// Starting page. + /// Given a valid URI returns the next IPage. + /// The stream written to. + /// Returns a string representation of object of type T. Default action is to call ToString. + public static void WriteIPagesToStream(IPage start, Func> getNext, System.IO.Stream stream, Func toString = null) { + toString = toString ?? delegate(T t) {return t.ToString();}; + StringBuilder sb = new StringBuilder(); + Action action = (obj) => { sb.Append(toString(obj)); sb.AppendLine(); }; + MapOverIPage(start, getNext, action); + var str = sb.ToString(); + var bytes = Encoding.ASCII.GetBytes(sb.ToString()); + stream.Write(bytes, 0, bytes.Length); + } + + /// + /// Iterate through each item in the pages and write its string representation to a file. + /// The default action to get a string representation is to call toString on each object. + /// + /// Type held in Enumerable. + /// Input IEnumerable. + /// The stream written to. + /// Returns a string representation of object of type T. Default action is to call ToString. + public static void WriteIEnumerableToStream(IEnumerable iter, System.IO.Stream stream, Func toString = null) { + toString = toString ?? delegate(T t) {return t.ToString();}; + StringBuilder sb = new StringBuilder(); + Action action = (obj) => { sb.Append(toString(obj)); sb.AppendLine(); }; + iter.ForEach(action); + var bytes = Encoding.ASCII.GetBytes(sb.ToString()); + stream.Write(bytes, 0, bytes.Length); + } + + } +} + +public static class Extensions +{ + + /// + /// Round down the dateTimeOffset to interval. + /// + /// The date time offset. + /// The interval. + public static DateTimeOffset Floor(this DateTimeOffset dateTimeOffset, TimeSpan interval) { + return new DateTimeOffset(dateTimeOffset.UtcTicks - (dateTimeOffset.UtcTicks % interval.Ticks), TimeSpan.Zero); + } + + /// + /// Round down to the day. + /// + /// The date time. + public static DateTime Floor(this DateTime dateTime) { + return dateTime.Floor(TimeSpan.FromDays(1)); + } + + /// + /// Round down the DateTime to interval. + /// + /// The date. + /// The interval. + public static DateTime Floor(this DateTime dateTime, TimeSpan interval) { + return new DateTimeOffset(dateTime).Floor(interval).DateTime; + } + + + /// + /// Apply an operation over an IList object + /// + /// Underlying type stored in IEnumerable. + /// IEnumerable to apply operation to. + /// The action performed. + public static void ForEach(this IEnumerable list, Action action = default(Action)) { + foreach (var item in list) + { + action(item); + } + } + + /// + /// Given a page we try to grab the first element we can find + /// + /// The value that is held within the page. + /// The page we wish to extract the object from + /// + public static T GetFirst(this IPage page) where T : class { + T result = null; + if (page != null) + { + foreach(var r in page) { + result = r; + break; + } + } + return result; + } + + /// + /// Convert pagination to a list + /// + /// Type contained in each Page + /// Starting page we want to covert from. + /// A function that returns the next page. + /// + public static IList PageToList(this IPage start, Func> getNext) { + List result = new List(); + InfrastructureInsights.Tests.Common.MapOverIPage(start, getNext, (page) => { + result.Add(page); + }); + return result; + } + +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/Helpers/RecordedDelegatingHandler.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/Helpers/RecordedDelegatingHandler.cs new file mode 100644 index 000000000000..b2f86cf001a9 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/Helpers/RecordedDelegatingHandler.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System; +using System.Net; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Threading.Tasks; + +namespace InfrastructureInsights.Tests +{ + + /// + /// Generic delegation handler. + /// + public class RecordedDelegatingHandler : DelegatingHandler + { + // Default response. + private HttpResponseMessage _response; + + /// + /// Default RecordedDelegatingHandler. + /// + public RecordedDelegatingHandler() { + StatusCodeToReturn = HttpStatusCode.Created; + SubsequentStatusCodeToReturn = StatusCodeToReturn; + } + + /// + /// Default RecordedDelegatingHandler which defaults to returning created. + /// + /// Response returned in all cases. + public RecordedDelegatingHandler(HttpResponseMessage response) { + StatusCodeToReturn = HttpStatusCode.Created; + SubsequentStatusCodeToReturn = StatusCodeToReturn; + _response = response; + } + + public HttpStatusCode StatusCodeToReturn { get; set; } + + public HttpStatusCode SubsequentStatusCodeToReturn { get; set; } + + public string Request { get; private set; } + + public HttpRequestHeaders RequestHeaders { get; private set; } + + public HttpContentHeaders ContentHeaders { get; private set; } + + public HttpMethod Method { get; private set; } + + public Uri Uri { get; private set; } + + public bool IsPassThrough { get; set; } + + private int counter; + + protected override async Task SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) { + counter++; + // Save request + if (request.Content == null) + { + Request = string.Empty; + } + else + { + Request = await request.Content.ReadAsStringAsync(); + } + RequestHeaders = request.Headers; + if (request.Content != null) + { + ContentHeaders = request.Content.Headers; + } + Method = request.Method; + Uri = request.RequestUri; + + // Prepare response + if (IsPassThrough) + { + return await base.SendAsync(request, cancellationToken); + } + else + { + if (_response != null && counter == 1) + { + return _response; + } + else + { + var statusCode = StatusCodeToReturn; + if (counter > 1) + statusCode = SubsequentStatusCodeToReturn; + HttpResponseMessage response = new HttpResponseMessage(statusCode); + response.Content = new StringContent(""); + return response; + } + } + } + } +} \ No newline at end of file diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/RegionHealthTests.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/RegionHealthTests.cs new file mode 100644 index 000000000000..0cfd008ee6d4 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/RegionHealthTests.cs @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; +using Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models; +using Xunit; + +namespace InfrastructureInsights.Tests +{ + + public class RegionHealthTests : InfrastructureInsightsTestBase + { + + private void AssertRegionHealthsAreSame(RegionHealth expected, RegionHealth found) { + if (expected == null) + { + Assert.Null(found); + } + else + { + Assert.True(InfrastructureInsightsCommon.ResourceAreSame(expected, found)); + Assert.Equal(expected.AlertSummary.CriticalAlertCount, found.AlertSummary.CriticalAlertCount); + Assert.Equal(expected.AlertSummary.WarningAlertCount, found.AlertSummary.WarningAlertCount); + + Assert.Equal(expected.UsageMetrics.Count, found.UsageMetrics.Count); + } + } + + private void ValidateMetrics(Metrics metrics) { + Assert.NotNull(metrics); + Assert.NotNull(metrics.Name); + Assert.NotNull(metrics.Unit); + Assert.NotNull(metrics.Value); + } + + private void ValidateUsageMetrics(UsageMetrics usageMetrics) { + + Assert.NotNull(usageMetrics); + Assert.NotNull(usageMetrics.MetricsValue); + Assert.NotNull(usageMetrics.Name); + foreach (var metrics in usageMetrics.MetricsValue) + { + ValidateMetrics(metrics); + } + } + + private void ValidateRegionHealth(RegionHealth regionHealth) { + InfrastructureInsightsCommon.ValidateResource(regionHealth); + + // Alert summary + Assert.NotNull(regionHealth.AlertSummary); + Assert.NotNull(regionHealth.AlertSummary.CriticalAlertCount); + Assert.NotNull(regionHealth.AlertSummary.WarningAlertCount); + + // Not null and have values + Assert.True(regionHealth.AlertSummary.CriticalAlertCount >= 0); + Assert.True(regionHealth.AlertSummary.WarningAlertCount >= 0); + + // Usage metrics + Assert.NotNull(regionHealth.UsageMetrics); + foreach (var usageMetrics in regionHealth.UsageMetrics) + { + ValidateUsageMetrics(usageMetrics); + } + + } + + [Fact] + public void TestListRegionHealths() { + RunTest((client) => { + var list = client.RegionHealths.List(Location); + Common.MapOverIPage(list, client.RegionHealths.ListNext, ValidateRegionHealth); + Common.WriteIPagesToFile(list, client.RegionHealths.ListNext, "ListAllRegionHealths.txt"); + }); + } + + [Fact] + public void TestGetRegionHealth() { + RunTest((client) => { + var regionHealth = client.RegionHealths.List(Location).GetFirst(); + if (regionHealth != null) + { + var retrieved = client.RegionHealths.Get(regionHealth.Location, regionHealth.Location); + AssertRegionHealthsAreSame(regionHealth, retrieved); + } + }); + } + + [Fact] + public void TestGetAllRegionHealths() { + RunTest((client) => { + var list = client.RegionHealths.List(Location); + Common.MapOverIPage(list, client.RegionHealths.ListNext, (regionHealth) => { + var retrieved = client.RegionHealths.Get(regionHealth.Location, regionHealth.Location); + AssertRegionHealthsAreSame(regionHealth, retrieved); + }); + }); + } + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/ResourceHealthTests.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/ResourceHealthTests.cs new file mode 100644 index 000000000000..5f1a788cf251 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/ResourceHealthTests.cs @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; +using Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models; +using Xunit; + +namespace InfrastructureInsights.Tests +{ + public class ResourceHealthTests : InfrastructureInsightsTestBase + { + + + private void ValidateResourceHealth(ResourceHealth resource) { + + Assert.NotNull(resource); + Assert.True(InfrastructureInsightsCommon.ValidateResource(resource)); + + Assert.NotNull(resource.AlertSummary); + Assert.NotNull(resource.HealthState); + Assert.NotNull(resource.NamespaceProperty); + Assert.NotNull(resource.RegistrationId); + Assert.NotNull(resource.RoutePrefix); + Assert.NotNull(resource.ResourceDisplayName); + Assert.NotNull(resource.ResourceLocation); + Assert.NotNull(resource.ResourceName); + Assert.NotNull(resource.ResourceType); + Assert.NotNull(resource.ResourceURI); + Assert.NotNull(resource.RpRegistrationId); + Assert.NotNull(resource.ResourceName); + Assert.NotNull(resource.UsageMetrics); + } + + private void AssertAreSameValidateResourceHealths(ResourceHealth expected, ResourceHealth found) { + if (expected == null) + { + Assert.Null(found); + } + else + { + + Assert.True(InfrastructureInsightsCommon.ResourceAreSame(expected, found)); + if (expected.AlertSummary == null) + { + Assert.Null(found.AlertSummary); + } + else + { + Assert.NotNull(found.AlertSummary); + Assert.Equal(expected.AlertSummary.CriticalAlertCount, found.AlertSummary.CriticalAlertCount); + Assert.Equal(expected.AlertSummary.WarningAlertCount, found.AlertSummary.WarningAlertCount); + } + + Assert.Equal(found.HealthState, expected.HealthState); + Assert.Equal(found.NamespaceProperty, expected.NamespaceProperty); + Assert.Equal(found.RegistrationId, expected.RegistrationId); + Assert.Equal(found.RoutePrefix, expected.RoutePrefix); + + Assert.Equal(found.ResourceDisplayName, expected.ResourceDisplayName); + Assert.Equal(found.ResourceLocation, expected.ResourceLocation); + Assert.Equal(found.ResourceName, expected.ResourceName); + Assert.Equal(found.ResourceType, expected.ResourceType); + Assert.Equal(found.ResourceURI, expected.ResourceURI); + Assert.Equal(found.RpRegistrationId, expected.RpRegistrationId); + + if (found.UsageMetrics == null) + { + Assert.Null(found.UsageMetrics); + } + else + { + Assert.NotNull(found.UsageMetrics); + Assert.Equal(found.UsageMetrics.Count, expected.UsageMetrics.Count); + } + + } + } + + [Fact] + public void TestListResourceHealths() { + RunTest((client) => { + var serviceHealths = client.ServiceHealths.List(Location); + Common.MapOverIPage(serviceHealths, client.ServiceHealths.ListNext, (serviceHealth) => { + var resourceHealths = client.ResourceHealths.List(Location, serviceHealth.RegistrationId); + Common.MapOverIPage(resourceHealths, client.ResourceHealths.ListNext, ValidateResourceHealth); + Common.WriteIPagesToFile(resourceHealths, client.ResourceHealths.ListNext, "ListResourceHealths.txt", ResourceName); + }); + }); + } + [Fact] + public void TestGetResourceHealth() { + RunTest((client) => { + var serviceHealth = client.ServiceHealths.List(Location).GetFirst(); + var resourceHealth = client.ResourceHealths.List(Location, serviceHealth.Name).GetFirst(); + if(resourceHealth != null) + { + var retrieved = client.ResourceHealths.Get(Location, serviceHealth.RegistrationId, resourceHealth.RegistrationId); + AssertAreSameValidateResourceHealths(resourceHealth, retrieved); + } + + }); + } + [Fact] + public void TestGetAllResourceHealths() { + RunTest((client) => { + var serviceHealths = client.ServiceHealths.List(Location); + Common.MapOverIPage(serviceHealths, client.ServiceHealths.ListNext, (serviceHealth) => { + Assert.NotNull(serviceHealth.RegistrationId); + var resourcesHealths = client.ResourceHealths.List(Location, serviceHealth.RegistrationId); + foreach (var resourceHealth in resourcesHealths) + { + Assert.NotNull(resourceHealth.RegistrationId); + var retrieved = client.ResourceHealths.Get(Location, serviceHealth.RegistrationId, resourceHealth.RegistrationId); + AssertAreSameValidateResourceHealths(resourceHealth, retrieved); + } + }); + }); + } + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/ServiceHealthTests.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/ServiceHealthTests.cs new file mode 100644 index 000000000000..3b14d9a5465a --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin.Tests/src/ServiceHealthTests.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// + +using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; +using Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models; +using Xunit; + +namespace InfrastructureInsights.Tests +{ + + public class ServiceHealthTests : InfrastructureInsightsTestBase + { + + private void AssertServiceHealthsEqual(ServiceHealth expected, ServiceHealth found) { + if (expected == null) + { + Assert.Null(found); + } + else + { + Assert.True(InfrastructureInsightsCommon.ResourceAreSame(expected, found)); + } + } + + private void ValidateServiceHealth(ServiceHealth serviceHealth) { + Assert.NotNull(serviceHealth); + + Assert.NotNull(serviceHealth.AlertSummary); + Assert.True(serviceHealth.AlertSummary.WarningAlertCount >= 0); + Assert.True(serviceHealth.AlertSummary.CriticalAlertCount >= 0); + + Assert.NotNull(serviceHealth.HealthState); + Assert.NotNull(serviceHealth.InfraURI); + Assert.NotNull(serviceHealth.NamespaceProperty); + Assert.NotNull(serviceHealth.RegistrationId); + Assert.NotNull(serviceHealth.RoutePrefix); + Assert.NotNull(serviceHealth.ServiceLocation); + } + + [Fact] + public void TestListServiceHealths() { + RunTest((client) => { + var list = client.ServiceHealths.List(Location); + list.ForEach(ValidateServiceHealth); + Common.WriteIEnumerableToFile(list, "ListAllServiceHealths.txt", ResourceName); + }); + } + + [Fact] + public void TestGetServiceHealth() { + RunTest((client) => { + var service = client.ServiceHealths.List(Location).GetFirst(); + if (service != null) + { + var retrieved = client.ServiceHealths.Get(Location, service.Name); + AssertServiceHealthsEqual(service, retrieved); + } + }); + } + + [Fact] + public void TestGetAllServiceHealths() { + RunTest((client) => { + var list = client.ServiceHealths.List(Location); + list.ForEach((service) => { + var retrieved = client.ServiceHealths.Get(Location, service.Name); + AssertServiceHealthsEqual(service, retrieved); + }); + }); + } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/AlertsOperations.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/AlertsOperations.cs new file mode 100644 index 000000000000..a1ccbd913e66 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/AlertsOperations.cs @@ -0,0 +1,846 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// AlertsOperations operations. + /// + internal partial class AlertsOperations : IServiceOperations, IAlertsOperations + { + /// + /// Initializes a new instance of the AlertsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal AlertsOperations(InfrastructureInsightsAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the InfrastructureInsightsAdminClient + /// + public InfrastructureInsightsAdminClient Client { get; private set; } + + /// + /// Returns the list of all alerts in a given location. + /// + /// + /// Location name. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/alerts").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get an alert. + /// + /// + /// Location name. + /// + /// + /// Name of the alert. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string alertName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (alertName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "alertName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("alertName", alertName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/alerts/{alertName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{alertName}", System.Uri.EscapeDataString(alertName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Close an alert. + /// + /// + /// Location name. + /// + /// + /// Name of the alert. + /// + /// + /// The username used to perform the operation. + /// + /// + /// Updated Alert Parameter. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CloseWithHttpMessagesAsync(string location, string alertName, string user, Alert alert, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (alertName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "alertName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (user == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "user"); + } + if (alert == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "alert"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("alertName", alertName); + tracingParameters.Add("user", user); + tracingParameters.Add("alert", alert); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Close", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/alerts/{alertName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{alertName}", System.Uri.EscapeDataString(alertName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (user != null) + { + _queryParameters.Add(string.Format("user={0}", System.Uri.EscapeDataString(user))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(alert != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(alert, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Returns the list of all alerts in a given location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/AlertsOperationsExtensions.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/AlertsOperationsExtensions.cs new file mode 100644 index 000000000000..6c156859061a --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/AlertsOperationsExtensions.cs @@ -0,0 +1,193 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for AlertsOperations. + /// + public static partial class AlertsOperationsExtensions + { + /// + /// Returns the list of all alerts in a given location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IAlertsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IAlertsOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Returns the list of all alerts in a given location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IAlertsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get an alert. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// Name of the alert. + /// + public static Alert Get(this IAlertsOperations operations, string location, string alertName) + { + return operations.GetAsync(location, alertName).GetAwaiter().GetResult(); + } + + /// + /// Get an alert. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// Name of the alert. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IAlertsOperations operations, string location, string alertName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, alertName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Close an alert. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// Name of the alert. + /// + /// + /// The username used to perform the operation. + /// + /// + /// Updated Alert Parameter. + /// + public static Alert Close(this IAlertsOperations operations, string location, string alertName, string user, Alert alert) + { + return operations.CloseAsync(location, alertName, user, alert).GetAwaiter().GetResult(); + } + + /// + /// Close an alert. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// Name of the alert. + /// + /// + /// The username used to perform the operation. + /// + /// + /// Updated Alert Parameter. + /// + /// + /// The cancellation token. + /// + public static async Task CloseAsync(this IAlertsOperations operations, string location, string alertName, string user, Alert alert, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CloseWithHttpMessagesAsync(location, alertName, user, alert, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns the list of all alerts in a given location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IAlertsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Returns the list of all alerts in a given location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IAlertsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IAlertsOperations.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IAlertsOperations.cs new file mode 100644 index 000000000000..1372ec749df5 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IAlertsOperations.cs @@ -0,0 +1,132 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// AlertsOperations operations. + /// + public partial interface IAlertsOperations + { + /// + /// Returns the list of all alerts in a given location. + /// + /// + /// Location name. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get an alert. + /// + /// + /// Location name. + /// + /// + /// Name of the alert. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string alertName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Close an alert. + /// + /// + /// Location name. + /// + /// + /// Name of the alert. + /// + /// + /// The username used to perform the operation. + /// + /// + /// Updated Alert Parameter. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CloseWithHttpMessagesAsync(string location, string alertName, string user, Alert alert, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns the list of all alerts in a given location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IInfrastructureInsightsAdminClient.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IInfrastructureInsightsAdminClient.cs new file mode 100644 index 000000000000..609ccb76e1df --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IInfrastructureInsightsAdminClient.cs @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// InfrastructureInsights Admin Client + /// + public partial interface IInfrastructureInsightsAdminClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// Subscription credentials which uniquely identify Microsoft Azure + /// subscription.The subscription ID forms part of the URI for every + /// service call. + /// + string SubscriptionId { get; set; } + + /// + /// Client Api Version. + /// + string ApiVersion { get; } + + /// + /// Gets or sets the preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// Gets or sets the retry timeout in seconds for Long Running + /// Operations. Default value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// When set to true a unique x-ms-client-request-id value is generated + /// and included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IAlertsOperations. + /// + IAlertsOperations Alerts { get; } + + /// + /// Gets the IRegionHealthsOperations. + /// + IRegionHealthsOperations RegionHealths { get; } + + /// + /// Gets the IResourceHealthsOperations. + /// + IResourceHealthsOperations ResourceHealths { get; } + + /// + /// Gets the IServiceHealthsOperations. + /// + IServiceHealthsOperations ServiceHealths { get; } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IRegionHealthsOperations.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IRegionHealthsOperations.cs new file mode 100644 index 000000000000..d9b45606c476 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IRegionHealthsOperations.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RegionHealthsOperations operations. + /// + public partial interface IRegionHealthsOperations + { + /// + /// Get the list of all regions health status. + /// + /// + /// Location name. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get health status of a region. + /// + /// + /// Location name. + /// + /// + /// Name of the region + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string region, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get the list of all regions health status. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IResourceHealthsOperations.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IResourceHealthsOperations.cs new file mode 100644 index 000000000000..c21c562f94f8 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IResourceHealthsOperations.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ResourceHealthsOperations operations. + /// + public partial interface IResourceHealthsOperations + { + /// + /// Get a list of resources?. + /// + /// + /// Location name. + /// + /// + /// Service registration id. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, string serviceRegistrationId, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get health information about a resources. + /// + /// + /// Location name. + /// + /// + /// Service registration id. + /// + /// + /// Resource registration id. + /// + /// + /// OData filter parameter. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string serviceRegistrationId, string resourceRegistrationId, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of resources?. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IServiceHealthsOperations.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IServiceHealthsOperations.cs new file mode 100644 index 000000000000..e2819552940d --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/IServiceHealthsOperations.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ServiceHealthsOperations operations. + /// + public partial interface IServiceHealthsOperations + { + /// + /// Get a list of all services health + /// + /// + /// Location name. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a services health + /// + /// + /// Location name. + /// + /// + /// Service Health name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string location, string serviceHealth, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all services health + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/InfrastructureInsightsAdminClient.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/InfrastructureInsightsAdminClient.cs new file mode 100644 index 000000000000..a68436e1de0f --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/InfrastructureInsightsAdminClient.cs @@ -0,0 +1,340 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + /// + /// InfrastructureInsights Admin Client + /// + public partial class InfrastructureInsightsAdminClient : ServiceClient, IInfrastructureInsightsAdminClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// Subscription credentials which uniquely identify Microsoft Azure + /// subscription.The subscription ID forms part of the URI for every service + /// call. + /// + public string SubscriptionId { get; set; } + + /// + /// Client Api Version. + /// + public string ApiVersion { get; private set; } + + /// + /// Gets or sets the preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// Gets or sets the retry timeout in seconds for Long Running Operations. + /// Default value is 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// When set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IAlertsOperations. + /// + public virtual IAlertsOperations Alerts { get; private set; } + + /// + /// Gets the IRegionHealthsOperations. + /// + public virtual IRegionHealthsOperations RegionHealths { get; private set; } + + /// + /// Gets the IResourceHealthsOperations. + /// + public virtual IResourceHealthsOperations ResourceHealths { get; private set; } + + /// + /// Gets the IServiceHealthsOperations. + /// + public virtual IServiceHealthsOperations ServiceHealths { get; private set; } + + /// + /// Initializes a new instance of the InfrastructureInsightsAdminClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected InfrastructureInsightsAdminClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the InfrastructureInsightsAdminClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected InfrastructureInsightsAdminClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the InfrastructureInsightsAdminClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected InfrastructureInsightsAdminClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the InfrastructureInsightsAdminClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected InfrastructureInsightsAdminClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the InfrastructureInsightsAdminClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public InfrastructureInsightsAdminClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the InfrastructureInsightsAdminClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public InfrastructureInsightsAdminClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the InfrastructureInsightsAdminClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public InfrastructureInsightsAdminClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the InfrastructureInsightsAdminClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public InfrastructureInsightsAdminClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + Alerts = new AlertsOperations(this); + RegionHealths = new RegionHealthsOperations(this); + ResourceHealths = new ResourceHealthsOperations(this); + ServiceHealths = new ServiceHealthsOperations(this); + BaseUri = new System.Uri("https://adminmanagement.local.azurestack.external"); + ApiVersion = "2016-05-01"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/Alert.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/Alert.cs new file mode 100644 index 000000000000..0a205cd32db0 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/Alert.cs @@ -0,0 +1,211 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// This class models an alert resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class Alert : Resource + { + /// + /// Initializes a new instance of the Alert class. + /// + public Alert() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Alert class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Location where resource is location. + /// List of key value pairs. + /// Gets or sets the closed timestamp of + /// the alert. + /// Gets or sets the created timestamp + /// of the alert. + /// Gets or sets the description of the + /// alert. + /// Gets or sets the fault id of the + /// alert. + /// Gets or sets the id of the alert. + /// Gets or sets the fault type id of the + /// alert. + /// Gets or sets last updated + /// timestamp of the alert. + /// Gets or sets properties of the + /// alert. + /// Gets or sets the admin friendly + /// remediation instructions for the alert. + /// Gets or sets the registration + /// id of the atomic component the alert belongs to. This is null if + /// not associated with a resource. + /// Gets or sets the + /// registration id of the service the alert belongs to. + /// Gets or sets the severity of the + /// alert. + /// Gets or sets the state of the alert. + /// Gets or sets the ResourceId for the impacted + /// item. + /// Gets or sets the ResourceId for + /// the impacted item. + /// Gets or sets the display + /// name for the impacted item. + /// Gets or sets the user alias who + /// closed the alert. + public Alert(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string closedTimestamp = default(string), string createdTimestamp = default(string), IList> description = default(IList>), string faultId = default(string), string alertId = default(string), string faultTypeId = default(string), string lastUpdatedTimestamp = default(string), IDictionary alertProperties = default(IDictionary), IList> remediation = default(IList>), string resourceRegistrationId = default(string), string resourceProviderRegistrationId = default(string), string severity = default(string), string state = default(string), string title = default(string), string impactedResourceId = default(string), string impactedResourceDisplayName = default(string), string closedByUserAlias = default(string)) + : base(id, name, type, location, tags) + { + ClosedTimestamp = closedTimestamp; + CreatedTimestamp = createdTimestamp; + Description = description; + FaultId = faultId; + AlertId = alertId; + FaultTypeId = faultTypeId; + LastUpdatedTimestamp = lastUpdatedTimestamp; + AlertProperties = alertProperties; + Remediation = remediation; + ResourceRegistrationId = resourceRegistrationId; + ResourceProviderRegistrationId = resourceProviderRegistrationId; + Severity = severity; + State = state; + Title = title; + ImpactedResourceId = impactedResourceId; + ImpactedResourceDisplayName = impactedResourceDisplayName; + ClosedByUserAlias = closedByUserAlias; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the closed timestamp of the alert. + /// + [JsonProperty(PropertyName = "properties.closedTimestamp")] + public string ClosedTimestamp { get; set; } + + /// + /// Gets or sets the created timestamp of the alert. + /// + [JsonProperty(PropertyName = "properties.createdTimestamp")] + public string CreatedTimestamp { get; set; } + + /// + /// Gets or sets the description of the alert. + /// + [JsonProperty(PropertyName = "properties.description")] + public IList> Description { get; set; } + + /// + /// Gets or sets the fault id of the alert. + /// + [JsonProperty(PropertyName = "properties.faultId")] + public string FaultId { get; set; } + + /// + /// Gets or sets the id of the alert. + /// + [JsonProperty(PropertyName = "properties.alertId")] + public string AlertId { get; set; } + + /// + /// Gets or sets the fault type id of the alert. + /// + [JsonProperty(PropertyName = "properties.faultTypeId")] + public string FaultTypeId { get; set; } + + /// + /// Gets or sets last updated timestamp of the alert. + /// + [JsonProperty(PropertyName = "properties.lastUpdatedTimestamp")] + public string LastUpdatedTimestamp { get; set; } + + /// + /// Gets or sets properties of the alert. + /// + [JsonProperty(PropertyName = "properties.alertProperties")] + public IDictionary AlertProperties { get; set; } + + /// + /// Gets or sets the admin friendly remediation instructions for the + /// alert. + /// + [JsonProperty(PropertyName = "properties.remediation")] + public IList> Remediation { get; set; } + + /// + /// Gets or sets the registration id of the atomic component the alert + /// belongs to. This is null if not associated with a resource. + /// + [JsonProperty(PropertyName = "properties.resourceRegistrationId")] + public string ResourceRegistrationId { get; set; } + + /// + /// Gets or sets the registration id of the service the alert belongs + /// to. + /// + [JsonProperty(PropertyName = "properties.resourceProviderRegistrationId")] + public string ResourceProviderRegistrationId { get; set; } + + /// + /// Gets or sets the severity of the alert. + /// + [JsonProperty(PropertyName = "properties.severity")] + public string Severity { get; set; } + + /// + /// Gets or sets the state of the alert. + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; set; } + + /// + /// Gets or sets the ResourceId for the impacted item. + /// + [JsonProperty(PropertyName = "properties.title")] + public string Title { get; set; } + + /// + /// Gets or sets the ResourceId for the impacted item. + /// + [JsonProperty(PropertyName = "properties.impactedResourceId")] + public string ImpactedResourceId { get; set; } + + /// + /// Gets or sets the display name for the impacted item. + /// + [JsonProperty(PropertyName = "properties.impactedResourceDisplayName")] + public string ImpactedResourceDisplayName { get; set; } + + /// + /// Gets or sets the user alias who closed the alert. + /// + [JsonProperty(PropertyName = "properties.closedByUserAlias")] + public string ClosedByUserAlias { get; set; } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/AlertSummary.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/AlertSummary.cs new file mode 100644 index 000000000000..20a3ea0ab191 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/AlertSummary.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Summary of the alerts. + /// + public partial class AlertSummary + { + /// + /// Initializes a new instance of the AlertSummary class. + /// + public AlertSummary() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AlertSummary class. + /// + /// How many critical alerts this + /// service has. + /// How many warning alerts this + /// service has. + public AlertSummary(int? criticalAlertCount = default(int?), int? warningAlertCount = default(int?)) + { + CriticalAlertCount = criticalAlertCount; + WarningAlertCount = warningAlertCount; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets how many critical alerts this service has. + /// + [JsonProperty(PropertyName = "criticalAlertCount")] + public int? CriticalAlertCount { get; set; } + + /// + /// Gets or sets how many warning alerts this service has. + /// + [JsonProperty(PropertyName = "warningAlertCount")] + public int? WarningAlertCount { get; set; } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/BaseHealth.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/BaseHealth.cs new file mode 100644 index 000000000000..fba53d2582e5 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/BaseHealth.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Models the base properties for health resource. + /// + public partial class BaseHealth + { + /// + /// Initializes a new instance of the BaseHealth class. + /// + public BaseHealth() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BaseHealth class. + /// + /// Gets or sets the alert summary. + /// Gets or sets the health status. + /// Gets or sets the name + /// space. + /// Gets or sets the registration + /// id. + /// Gets or sets the route prefix. + public BaseHealth(AlertSummary alertSummary = default(AlertSummary), string healthState = default(string), string namespaceProperty = default(string), string registrationId = default(string), string routePrefix = default(string)) + { + AlertSummary = alertSummary; + HealthState = healthState; + NamespaceProperty = namespaceProperty; + RegistrationId = registrationId; + RoutePrefix = routePrefix; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the alert summary. + /// + [JsonProperty(PropertyName = "alertSummary")] + public AlertSummary AlertSummary { get; set; } + + /// + /// Gets or sets the health status. + /// + [JsonProperty(PropertyName = "healthState")] + public string HealthState { get; set; } + + /// + /// Gets or sets the name space. + /// + [JsonProperty(PropertyName = "namespace")] + public string NamespaceProperty { get; set; } + + /// + /// Gets or sets the registration id. + /// + [JsonProperty(PropertyName = "registrationId")] + public string RegistrationId { get; set; } + + /// + /// Gets or sets the route prefix. + /// + [JsonProperty(PropertyName = "routePrefix")] + public string RoutePrefix { get; set; } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/Metrics.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/Metrics.cs new file mode 100644 index 000000000000..89b9e98b3a68 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/Metrics.cs @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Metrics for a source. + /// + public partial class Metrics + { + /// + /// Initializes a new instance of the Metrics class. + /// + public Metrics() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Metrics class. + /// + /// Name of the usage metric. + /// Name of the usage metric. + /// Name of the usage metric. + /// Name of the usage metric. + /// Source of the metric. Possible values + /// include: 'PhysicalNode', 'VirtualMachine', + /// 'ResourceProvider' + /// Unit for the metric. Possible values include: + /// 'One', 'Percentage', 'B', 'KB', 'MB', 'GB', 'TB' + /// Name of the usage metric. + public Metrics(string name = default(string), string maCounterName = default(string), System.DateTime? observedTimestamp = default(System.DateTime?), string sourceType = default(string), string sourceName = default(string), string unit = default(string), double? value = default(double?)) + { + Name = name; + MaCounterName = maCounterName; + ObservedTimestamp = observedTimestamp; + SourceType = sourceType; + SourceName = sourceName; + Unit = unit; + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the usage metric. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets name of the usage metric. + /// + [JsonProperty(PropertyName = "maCounterName")] + public string MaCounterName { get; set; } + + /// + /// Gets or sets name of the usage metric. + /// + [JsonProperty(PropertyName = "observedTimestamp")] + public System.DateTime? ObservedTimestamp { get; set; } + + /// + /// Gets or sets name of the usage metric. + /// + [JsonProperty(PropertyName = "sourceType")] + public string SourceType { get; set; } + + /// + /// Gets or sets source of the metric. Possible values include: + /// 'PhysicalNode', 'VirtualMachine', 'ResourceProvider' + /// + [JsonProperty(PropertyName = "sourceName")] + public string SourceName { get; set; } + + /// + /// Gets or sets unit for the metric. Possible values include: 'One', + /// 'Percentage', 'B', 'KB', 'MB', 'GB', 'TB' + /// + [JsonProperty(PropertyName = "unit")] + public string Unit { get; set; } + + /// + /// Gets or sets name of the usage metric. + /// + [JsonProperty(PropertyName = "value")] + public double? Value { get; set; } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/MetricsSourceType.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/MetricsSourceType.cs new file mode 100644 index 000000000000..87c0e2675a5c --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/MetricsSourceType.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; + + /// + /// Defines values for MetricsSourceType. + /// + public static class MetricsSourceType + { + public const string PhysicalNode = "PhysicalNode"; + public const string VirtualMachine = "VirtualMachine"; + public const string ResourceProvider = "ResourceProvider"; + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/MetricsUnit.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/MetricsUnit.cs new file mode 100644 index 000000000000..f0a7e9749e32 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/MetricsUnit.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; + + /// + /// Defines values for MetricsUnit. + /// + public static class MetricsUnit + { + public const string One = "One"; + public const string Percentage = "Percentage"; + public const string B = "B"; + public const string KB = "KB"; + public const string MB = "MB"; + public const string GB = "GB"; + public const string TB = "TB"; + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/Page.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/Page.cs new file mode 100644 index 000000000000..518c274f750d --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/Page.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("nextLink")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/RegionHealth.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/RegionHealth.cs new file mode 100644 index 000000000000..6d529573abfd --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/RegionHealth.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Contains information related to a regions health. + /// + [Rest.Serialization.JsonTransformation] + public partial class RegionHealth : Resource + { + /// + /// Initializes a new instance of the RegionHealth class. + /// + public RegionHealth() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RegionHealth class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Location where resource is location. + /// List of key value pairs. + /// Summary of alerts. + /// List of usage metrics for this + /// region. + public RegionHealth(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), AlertSummary alertSummary = default(AlertSummary), IList usageMetrics = default(IList)) + : base(id, name, type, location, tags) + { + AlertSummary = alertSummary; + UsageMetrics = usageMetrics; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets summary of alerts. + /// + [JsonProperty(PropertyName = "properties.alertSummary")] + public AlertSummary AlertSummary { get; set; } + + /// + /// Gets or sets list of usage metrics for this region. + /// + [JsonProperty(PropertyName = "properties.usageMetrics")] + public IList UsageMetrics { get; set; } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/Resource.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/Resource.cs new file mode 100644 index 000000000000..f0870107880e --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/Resource.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Base Resource Object + /// + public partial class Resource : IResource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Resource class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Location where resource is location. + /// List of key value pairs. + public Resource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary)) + { + Id = id; + Name = name; + Type = type; + Location = location; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets URI of the resource. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets name of the resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets type of resource. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets location where resource is location. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; private set; } + + /// + /// Gets list of key value pairs. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; private set; } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/ResourceHealth.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/ResourceHealth.cs new file mode 100644 index 000000000000..23404c8e33bf --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/ResourceHealth.cs @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Health information related to a resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class ResourceHealth : Resource + { + /// + /// Initializes a new instance of the ResourceHealth class. + /// + public ResourceHealth() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceHealth class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Location where resource is location. + /// List of key value pairs. + /// Gets or sets the alert summary. + /// Gets or sets the health status. + /// Gets or sets the name + /// space. + /// Gets or sets the registration + /// id. + /// Gets or sets the route prefix. + /// Gets or sets the resource + /// location. + /// Gets or sets the resource name. + /// Gets or sets the resource display + /// name. + /// Gets or sets the resource type. + /// Gets or sets the resource uri. + /// Gets or sets the resource provider + /// registration id. + /// Gets or sets the usage metrics. + public ResourceHealth(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), AlertSummary alertSummary = default(AlertSummary), string healthState = default(string), string namespaceProperty = default(string), string registrationId = default(string), string routePrefix = default(string), string resourceLocation = default(string), string resourceName = default(string), string resourceDisplayName = default(string), string resourceType = default(string), string resourceURI = default(string), string rpRegistrationId = default(string), IList usageMetrics = default(IList)) + : base(id, name, type, location, tags) + { + AlertSummary = alertSummary; + HealthState = healthState; + NamespaceProperty = namespaceProperty; + RegistrationId = registrationId; + RoutePrefix = routePrefix; + ResourceLocation = resourceLocation; + ResourceName = resourceName; + ResourceDisplayName = resourceDisplayName; + ResourceType = resourceType; + ResourceURI = resourceURI; + RpRegistrationId = rpRegistrationId; + UsageMetrics = usageMetrics; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the alert summary. + /// + [JsonProperty(PropertyName = "properties.alertSummary")] + public AlertSummary AlertSummary { get; set; } + + /// + /// Gets or sets the health status. + /// + [JsonProperty(PropertyName = "properties.healthState")] + public string HealthState { get; set; } + + /// + /// Gets or sets the name space. + /// + [JsonProperty(PropertyName = "properties.namespace")] + public string NamespaceProperty { get; set; } + + /// + /// Gets or sets the registration id. + /// + [JsonProperty(PropertyName = "properties.registrationId")] + public string RegistrationId { get; set; } + + /// + /// Gets or sets the route prefix. + /// + [JsonProperty(PropertyName = "properties.routePrefix")] + public string RoutePrefix { get; set; } + + /// + /// Gets or sets the resource location. + /// + [JsonProperty(PropertyName = "properties.resourceLocation")] + public string ResourceLocation { get; set; } + + /// + /// Gets or sets the resource name. + /// + [JsonProperty(PropertyName = "properties.resourceName")] + public string ResourceName { get; set; } + + /// + /// Gets or sets the resource display name. + /// + [JsonProperty(PropertyName = "properties.resourceDisplayName")] + public string ResourceDisplayName { get; set; } + + /// + /// Gets or sets the resource type. + /// + [JsonProperty(PropertyName = "properties.resourceType")] + public string ResourceType { get; set; } + + /// + /// Gets or sets the resource uri. + /// + [JsonProperty(PropertyName = "properties.resourceURI")] + public string ResourceURI { get; set; } + + /// + /// Gets or sets the resource provider registration id. + /// + [JsonProperty(PropertyName = "properties.rpRegistrationId")] + public string RpRegistrationId { get; set; } + + /// + /// Gets or sets the usage metrics. + /// + [JsonProperty(PropertyName = "properties.usageMetrics")] + public IList UsageMetrics { get; set; } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/ServiceHealth.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/ServiceHealth.cs new file mode 100644 index 000000000000..1dd6e1f738fa --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/ServiceHealth.cs @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Holds information about a services health. + /// + [Rest.Serialization.JsonTransformation] + public partial class ServiceHealth : Resource + { + /// + /// Initializes a new instance of the ServiceHealth class. + /// + public ServiceHealth() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServiceHealth class. + /// + /// URI of the resource. + /// Name of the resource. + /// Type of resource. + /// Location where resource is location. + /// List of key value pairs. + /// Gets or sets the alert summary. + /// Gets or sets the health status. + /// Gets or sets the name + /// space. + /// Gets or sets the registration + /// id. + /// Gets or sets the route prefix. + /// Name of the alert. + /// Location of the service. + /// The route prefix to the alert. + public ServiceHealth(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), AlertSummary alertSummary = default(AlertSummary), string healthState = default(string), string namespaceProperty = default(string), string registrationId = default(string), string routePrefix = default(string), string displayName = default(string), string serviceLocation = default(string), string infraURI = default(string)) + : base(id, name, type, location, tags) + { + AlertSummary = alertSummary; + HealthState = healthState; + NamespaceProperty = namespaceProperty; + RegistrationId = registrationId; + RoutePrefix = routePrefix; + DisplayName = displayName; + ServiceLocation = serviceLocation; + InfraURI = infraURI; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the alert summary. + /// + [JsonProperty(PropertyName = "properties.alertSummary")] + public AlertSummary AlertSummary { get; set; } + + /// + /// Gets or sets the health status. + /// + [JsonProperty(PropertyName = "properties.healthState")] + public string HealthState { get; set; } + + /// + /// Gets or sets the name space. + /// + [JsonProperty(PropertyName = "properties.namespace")] + public string NamespaceProperty { get; set; } + + /// + /// Gets or sets the registration id. + /// + [JsonProperty(PropertyName = "properties.registrationId")] + public string RegistrationId { get; set; } + + /// + /// Gets or sets the route prefix. + /// + [JsonProperty(PropertyName = "properties.routePrefix")] + public string RoutePrefix { get; set; } + + /// + /// Gets or sets name of the alert. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets location of the service. + /// + [JsonProperty(PropertyName = "properties.serviceLocation")] + public string ServiceLocation { get; set; } + + /// + /// Gets or sets the route prefix to the alert. + /// + [JsonProperty(PropertyName = "properties.infraURI")] + public string InfraURI { get; set; } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/UsageMetrics.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/UsageMetrics.cs new file mode 100644 index 000000000000..cd3e8ee77be8 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/Models/UsageMetrics.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.AzureStack.Management.InfrastructureInsights.Admin; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Metrics of resource usage. + /// + public partial class UsageMetrics + { + /// + /// Initializes a new instance of the UsageMetrics class. + /// + public UsageMetrics() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UsageMetrics class. + /// + /// Name of the usage metric. + /// List of usage metrics. + public UsageMetrics(string name = default(string), IList metricsValue = default(IList)) + { + Name = name; + MetricsValue = metricsValue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the usage metric. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets list of usage metrics. + /// + [JsonProperty(PropertyName = "metricsValue")] + public IList MetricsValue { get; set; } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/RegionHealthsOperations.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/RegionHealthsOperations.cs new file mode 100644 index 000000000000..6e66be51f6ef --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/RegionHealthsOperations.cs @@ -0,0 +1,624 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RegionHealthsOperations operations. + /// + internal partial class RegionHealthsOperations : IServiceOperations, IRegionHealthsOperations + { + /// + /// Initializes a new instance of the RegionHealthsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal RegionHealthsOperations(InfrastructureInsightsAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the InfrastructureInsightsAdminClient + /// + public InfrastructureInsightsAdminClient Client { get; private set; } + + /// + /// Get the list of all regions health status. + /// + /// + /// Location name. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get health status of a region. + /// + /// + /// Location name. + /// + /// + /// Name of the region + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string region, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (region == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "region"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("region", region); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{region}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{region}", System.Uri.EscapeDataString(region)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get the list of all regions health status. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/RegionHealthsOperationsExtensions.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/RegionHealthsOperationsExtensions.cs new file mode 100644 index 000000000000..390fcf371aac --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/RegionHealthsOperationsExtensions.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for RegionHealthsOperations. + /// + public static partial class RegionHealthsOperationsExtensions + { + /// + /// Get the list of all regions health status. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IRegionHealthsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IRegionHealthsOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get the list of all regions health status. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IRegionHealthsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get health status of a region. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// Name of the region + /// + public static RegionHealth Get(this IRegionHealthsOperations operations, string location, string region) + { + return operations.GetAsync(location, region).GetAwaiter().GetResult(); + } + + /// + /// Get health status of a region. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// Name of the region + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IRegionHealthsOperations operations, string location, string region, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, region, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get the list of all regions health status. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IRegionHealthsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get the list of all regions health status. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IRegionHealthsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/ResourceHealthsOperations.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/ResourceHealthsOperations.cs new file mode 100644 index 000000000000..fce9fd2c584d --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/ResourceHealthsOperations.cs @@ -0,0 +1,650 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ResourceHealthsOperations operations. + /// + internal partial class ResourceHealthsOperations : IServiceOperations, IResourceHealthsOperations + { + /// + /// Initializes a new instance of the ResourceHealthsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ResourceHealthsOperations(InfrastructureInsightsAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the InfrastructureInsightsAdminClient + /// + public InfrastructureInsightsAdminClient Client { get; private set; } + + /// + /// Get a list of resources?. + /// + /// + /// Location name. + /// + /// + /// Service registration id. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, string serviceRegistrationId, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (serviceRegistrationId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serviceRegistrationId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("serviceRegistrationId", serviceRegistrationId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/serviceHealths/{serviceRegistrationId}/resourceHealths").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{serviceRegistrationId}", System.Uri.EscapeDataString(serviceRegistrationId)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get health information about a resources. + /// + /// + /// Location name. + /// + /// + /// Service registration id. + /// + /// + /// Resource registration id. + /// + /// + /// OData filter parameter. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string serviceRegistrationId, string resourceRegistrationId, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (serviceRegistrationId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serviceRegistrationId"); + } + if (resourceRegistrationId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceRegistrationId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("serviceRegistrationId", serviceRegistrationId); + tracingParameters.Add("resourceRegistrationId", resourceRegistrationId); + tracingParameters.Add("filter", filter); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/serviceHealths/{serviceRegistrationId}/resourceHealths/{resourceRegistrationId}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{serviceRegistrationId}", System.Uri.EscapeDataString(serviceRegistrationId)); + _url = _url.Replace("{resourceRegistrationId}", System.Uri.EscapeDataString(resourceRegistrationId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of resources?. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/ResourceHealthsOperationsExtensions.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/ResourceHealthsOperationsExtensions.cs new file mode 100644 index 000000000000..6044496ff91c --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/ResourceHealthsOperationsExtensions.cs @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ResourceHealthsOperations. + /// + public static partial class ResourceHealthsOperationsExtensions + { + /// + /// Get a list of resources?. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// Service registration id. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IResourceHealthsOperations operations, string location, string serviceRegistrationId, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IResourceHealthsOperations)operations).ListAsync(location, serviceRegistrationId, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of resources?. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// Service registration id. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IResourceHealthsOperations operations, string location, string serviceRegistrationId, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, serviceRegistrationId, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get health information about a resources. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// Service registration id. + /// + /// + /// Resource registration id. + /// + /// + /// OData filter parameter. + /// + public static ResourceHealth Get(this IResourceHealthsOperations operations, string location, string serviceRegistrationId, string resourceRegistrationId, string filter = default(string)) + { + return operations.GetAsync(location, serviceRegistrationId, resourceRegistrationId, filter).GetAwaiter().GetResult(); + } + + /// + /// Get health information about a resources. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// Service registration id. + /// + /// + /// Resource registration id. + /// + /// + /// OData filter parameter. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IResourceHealthsOperations operations, string location, string serviceRegistrationId, string resourceRegistrationId, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, serviceRegistrationId, resourceRegistrationId, filter, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of resources?. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IResourceHealthsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of resources?. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IResourceHealthsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/ServiceHealthsOperations.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/ServiceHealthsOperations.cs new file mode 100644 index 000000000000..9d6cbef839f0 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/ServiceHealthsOperations.cs @@ -0,0 +1,624 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ServiceHealthsOperations operations. + /// + internal partial class ServiceHealthsOperations : IServiceOperations, IServiceHealthsOperations + { + /// + /// Initializes a new instance of the ServiceHealthsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ServiceHealthsOperations(InfrastructureInsightsAdminClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the InfrastructureInsightsAdminClient + /// + public InfrastructureInsightsAdminClient Client { get; private set; } + + /// + /// Get a list of all services health + /// + /// + /// Location name. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/serviceHealths").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a services health + /// + /// + /// Location name. + /// + /// + /// Service Health name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string location, string serviceHealth, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (serviceHealth == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serviceHealth"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("serviceHealth", serviceHealth); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/serviceHealths/{serviceHealth}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{serviceHealth}", System.Uri.EscapeDataString(serviceHealth)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all services health + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/ServiceHealthsOperationsExtensions.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/ServiceHealthsOperationsExtensions.cs new file mode 100644 index 000000000000..360a832da9f8 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/InfrastructureInsights/InfrastructureInsights.Admin/Generated/ServiceHealthsOperationsExtensions.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.AzureStack.Management.InfrastructureInsights.Admin +{ + using Microsoft.AzureStack; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.InfrastructureInsights; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ServiceHealthsOperations. + /// + public static partial class ServiceHealthsOperationsExtensions + { + /// + /// Get a list of all services health + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IServiceHealthsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery)) + { + return ((IServiceHealthsOperations)operations).ListAsync(location, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all services health + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IServiceHealthsOperations operations, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a services health + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// Service Health name. + /// + public static ServiceHealth Get(this IServiceHealthsOperations operations, string location, string serviceHealth) + { + return operations.GetAsync(location, serviceHealth).GetAwaiter().GetResult(); + } + + /// + /// Get a services health + /// + /// + /// The operations group for this extension method. + /// + /// + /// Location name. + /// + /// + /// Service Health name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IServiceHealthsOperations operations, string location, string serviceHealth, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, serviceHealth, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all services health + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IServiceHealthsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all services health + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IServiceHealthsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/Microsoft.AzureStack.Management.InfrastructureInsights.Admin.csproj b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/Microsoft.AzureStack.Management.InfrastructureInsights.Admin.csproj new file mode 100644 index 000000000000..f8a8bce5a261 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/Microsoft.AzureStack.Management.InfrastructureInsights.Admin.csproj @@ -0,0 +1,14 @@ + + + + + Microsoft.AzureStack.Management.InfrastructureInsights.Admin + Provides developers with libraries for the health admin under AzureStack to manage health alerts. + 0.1.0-preview + Microsoft.AzureStack.Management.InfrastructureInsights.Admin + Microsoft Azure Stack;InfrastructureInsights;REST HTTP client;azureostackfficial;netcore451511 + + + net452;netstandard1.4 + + diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/Properties/AssemblyInfo.cs b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..2d3c5192f990 --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/Properties/AssemblyInfo.cs @@ -0,0 +1,28 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Resources; + +[assembly: AssemblyTitle("Microsoft Azure Stack InfrastructureInsights Admin Management Library")] +[assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Stack InfrastructureInsights Admin Resources.")] + +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Microsoft Azure .NET SDK")] +[assembly: AssemblyCopyright("Copyright © Microsoft")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: NeutralResourcesLanguage("en")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("0.1.0.0")] +[assembly: AssemblyFileVersion("0.1.0.0")] diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/generate.cmd b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/generate.cmd new file mode 100644 index 000000000000..dbab1e850d4a --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsights.Admin/generate.cmd @@ -0,0 +1,7 @@ +:: +:: Microsoft Azure SDK for Net - Generate library code +:: Copyright (C) Microsoft Corporation. All Rights Reserved. +:: + +@echo off +call %~dp0..\..\..\..\tools\generate.cmd azsadmin/resource-manager/InfrastructureInsights latest Azure current azure-rest-api-specs %CD% diff --git a/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsightsAdmin.sln b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsightsAdmin.sln new file mode 100644 index 000000000000..2f087c1e2c8a --- /dev/null +++ b/src/AzureStack/InfrastructureInsightsAdmin/InfrastructureInsightsAdmin.sln @@ -0,0 +1,34 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26430.13 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Admin.InfrastructureInsights", "InfrastructureInsights.Admin\Microsoft.AzureStack.Management.InfrastructureInsights.Admin.csproj", "{4960ACDE-30D6-4476-8B8D-40E51ABEE505}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InfrastructureInsights.Tests", "InfrastructureInsights.Admin.Tests\InfrastructureInsights.Tests.csproj", "{1B24BC4A-6E4D-4FFB-B5D5-C9684C60A308}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0385C8A0-1628-4593-9F6C-46130D9E1686}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4960ACDE-30D6-4476-8B8D-40E51ABEE505}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4960ACDE-30D6-4476-8B8D-40E51ABEE505}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4960ACDE-30D6-4476-8B8D-40E51ABEE505}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4960ACDE-30D6-4476-8B8D-40E51ABEE505}.Release|Any CPU.Build.0 = Release|Any CPU + {1B24BC4A-6E4D-4FFB-B5D5-C9684C60A308}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1B24BC4A-6E4D-4FFB-B5D5-C9684C60A308}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1B24BC4A-6E4D-4FFB-B5D5-C9684C60A308}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1B24BC4A-6E4D-4FFB-B5D5-C9684C60A308}.Release|Any CPU.Build.0 = Release|Any CPU + {EAE2AE14-948D-4613-A4E8-14C50D8D0472}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EAE2AE14-948D-4613-A4E8-14C50D8D0472}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EAE2AE14-948D-4613-A4E8-14C50D8D0472}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EAE2AE14-948D-4613-A4E8-14C50D8D0472}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/tools/generate.cmd b/tools/generate.cmd index 01f88847e30e..7f2c8486ff67 100644 --- a/tools/generate.cmd +++ b/tools/generate.cmd @@ -48,14 +48,15 @@ if not "%2" == "" (set version="%2") else (set version="latest") if not "%3" == "" (set specsRepoUser="%3") else (set specsRepoUser="Azure") if not "%4" == "" (set specsRepoBranch="%4") else (set specsRepoBranch="current") if not "%5" == "" (set specsRepoName="%5") else (set specsRepoName="azure-rest-api-specs") +if not "%6" == "" (set sdksFolder="%6") else (set sdksFolder=%~dp0..\src\SDKS) set configFile="https://github.com/%specsRepoUser%/%specsRepoName%/blob/%specsRepoBranch%/specification/%rp%/readme.md" :: installation -if "%6" == "" (call npm i -g autorest) +if "%7" == "" (call npm i -g autorest) :: code generation @echo on -call autorest %configFile% --csharp --csharp-sdks-folder=%~dp0\..\src\SDKs --version=%version% +call autorest %configFile% --csharp --csharp-sdks-folder=%sdksFolder% --version=%version% @echo off :: metadata