From ff6ec7ae28761b0e45b0791ad207bbfe25900d84 Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Wed, 3 Mar 2021 16:31:55 +0530 Subject: [PATCH 01/17] New Readme Config File --- specification/logz/resource-manager/readme.md | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 specification/logz/resource-manager/readme.md diff --git a/specification/logz/resource-manager/readme.md b/specification/logz/resource-manager/readme.md new file mode 100644 index 000000000000..1a40e3e6e77a --- /dev/null +++ b/specification/logz/resource-manager/readme.md @@ -0,0 +1,83 @@ +# logz + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for logz. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the logz. + +```yaml +openapi-type: arm +tag: package-2020-10-01-preview +``` + +### Tag: package-2020-10-01-preview + +These settings apply only when `--tag=package-2020-10-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2020-10-01-preview' +input-file: + - Microsoft.Logz/preview/2020-10-01-preview/logz.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python-track2 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-js + - repo: azure-resource-manager-schemas + after_scripts: + - node sdkauto_afterscript.js logz/resource-manager + - repo: azure-cli-extensions +``` +## Az + +See configuration in [readme.az.md](./readme.az.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) + +## AzureResourceSchema + +See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md) From 17d8cf285384f6d6a37fe91c5961d7be60fb60c5 Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Wed, 3 Mar 2021 16:31:56 +0530 Subject: [PATCH 02/17] New Go Language Readme Config File --- .../logz/resource-manager/readme.go.md | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 specification/logz/resource-manager/readme.go.md diff --git a/specification/logz/resource-manager/readme.go.md b/specification/logz/resource-manager/readme.go.md new file mode 100644 index 000000000000..91bcf7629a49 --- /dev/null +++ b/specification/logz/resource-manager/readme.go.md @@ -0,0 +1,26 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + namespace: logz + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2020-10-01-preview-preview +``` + +### Tag: package-2020-10-01-preview-preview and go + +These settings apply only when `--tag=package-2020-10-01-preview-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +```yaml $(tag) == 'package-2020-10-01-preview-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-10-01-preview/$(namespace) +``` From 5b344d50d8089ccec3e1e66945ee2ec62bb19257 Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Wed, 3 Mar 2021 16:31:56 +0530 Subject: [PATCH 03/17] New Azure AZ Readme Config File --- .../logz/resource-manager/readme.az.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 specification/logz/resource-manager/readme.az.md diff --git a/specification/logz/resource-manager/readme.az.md b/specification/logz/resource-manager/readme.az.md new file mode 100644 index 000000000000..3a6d36dbbfb1 --- /dev/null +++ b/specification/logz/resource-manager/readme.az.md @@ -0,0 +1,28 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. + +``` yaml $(az) && $(target-mode) != 'core' +az: + extensions: logz + namespace: azure.mgmt.logz + package-name: azure-mgmt-logz +az-output-folder: $(azure-cli-extension-folder)/src/logz +python-sdk-output-folder: "$(az-output-folder)/azext_logz/vendored_sdks/logz" +# add additinal configuration here specific for Azure CLI +# refer to the faq.md for more details +``` + + + +This is for command modules that already in azure cli main repo. +``` yaml $(az) && $(target-mode) == 'core' +az: + extensions: logz + namespace: azure.mgmt.logz + package-name: azure-mgmt-logz +az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/logz +python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/logz" +``` \ No newline at end of file From de612468f774e42b17267504be48276f72b1b5ce Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Wed, 3 Mar 2021 16:31:56 +0530 Subject: [PATCH 04/17] New Azure CLI Readme Config File --- specification/logz/resource-manager/readme.cli.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 specification/logz/resource-manager/readme.cli.md diff --git a/specification/logz/resource-manager/readme.cli.md b/specification/logz/resource-manager/readme.cli.md new file mode 100644 index 000000000000..c6cf6ad37ea4 --- /dev/null +++ b/specification/logz/resource-manager/readme.cli.md @@ -0,0 +1 @@ +## CLI Common Settings for all the command line tools \ No newline at end of file From 756b276b5c5bd05b66a89f9adfce9515d743311e Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Wed, 3 Mar 2021 16:31:57 +0530 Subject: [PATCH 05/17] New Typescript Language Readme Config File --- .../logz/resource-manager/readme.typescript.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 specification/logz/resource-manager/readme.typescript.md diff --git a/specification/logz/resource-manager/readme.typescript.md b/specification/logz/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..58f9a1acba0a --- /dev/null +++ b/specification/logz/resource-manager/readme.typescript.md @@ -0,0 +1,14 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(typescript) +typescript: + azure-arm: true + package-name: "@azure/arm-logz" + output-folder: "$(typescript-sdks-folder)/sdk/logz/arm-logz" + payload-flattening-threshold: 1 + clear-output-folder: true + generate-metadata: true +``` From 5735642ec09ee231dcf833f3507986c32d2fd7f3 Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Wed, 3 Mar 2021 16:31:57 +0530 Subject: [PATCH 06/17] New Python Language Readme Config File --- .../logz/resource-manager/readme.python.md | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 specification/logz/resource-manager/readme.python.md diff --git a/specification/logz/resource-manager/readme.python.md b/specification/logz/resource-manager/readme.python.md new file mode 100644 index 000000000000..4e196a065a83 --- /dev/null +++ b/specification/logz/resource-manager/readme.python.md @@ -0,0 +1,41 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(python) && !$(track2) +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + package-name: azure-mgmt-logz + no-namespace-folders: true + package-version: 1.0.0b1 +``` + +``` yaml $(python-mode) == 'update' && !$(track2) +python: + output-folder: $(python-sdks-folder)/logz/azure-mgmt-logz/azure/mgmt/logz +``` +``` yaml $(python-mode) == 'create' && !$(track2) +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/logz/azure-mgmt-logz +``` + +``` yaml $(python) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-logz +no-namespace-folders: true +``` + +``` yaml $(python-mode) == 'update' +no-namespace-folders: true +output-folder: $(python-sdks-folder)/logz/azure-mgmt-logz/azure/mgmt/logz +``` + +``` yaml $(python-mode) == 'create' && $(track2) +package-version: 1.0.0b1 +basic-setup-py: true +output-folder: $(python-sdks-folder)/logz/azure-mgmt-logz +``` From 553f57eaab0cd82acc94fc0766318e16f1300cdf Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Wed, 3 Mar 2021 16:31:58 +0530 Subject: [PATCH 07/17] New C# Language Readme Config File --- .../logz/resource-manager/readme.csharp.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 specification/logz/resource-manager/readme.csharp.md diff --git a/specification/logz/resource-manager/readme.csharp.md b/specification/logz/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..e3d05ffbfa7f --- /dev/null +++ b/specification/logz/resource-manager/readme.csharp.md @@ -0,0 +1,15 @@ +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.Logz + output-folder: $(csharp-sdks-folder)/logz/management/Microsoft.Logz/GeneratedProtocol +``` From 3e21f6b535f754eb4597084d2878deda4581dd00 Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Wed, 3 Mar 2021 16:31:58 +0530 Subject: [PATCH 08/17] New AzureResourceSchema Readme Config File --- .../readme.azureresourceschema.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 specification/logz/resource-manager/readme.azureresourceschema.md diff --git a/specification/logz/resource-manager/readme.azureresourceschema.md b/specification/logz/resource-manager/readme.azureresourceschema.md new file mode 100644 index 000000000000..4f3714103ebb --- /dev/null +++ b/specification/logz/resource-manager/readme.azureresourceschema.md @@ -0,0 +1,23 @@ +## AzureResourceSchema + +These settings apply only when `--azureresourceschema` is specified on the command line. + +### AzureResourceSchema multi-api + +``` yaml $(azureresourceschema) && $(multiapi) +batch: + - tag: schema-logz-2020-10-01-preview + +``` + +Please also specify `--azureresourceschema-folder=`. + +### Tag: schema-logz-2020-10-01-preview and azureresourceschema + +``` yaml $(tag) == 'schema-logz-2020-10-01-preview' && $(azureresourceschema) +output-folder: $(azureresourceschema-folder)/schemas + +# all the input files in this apiVersion +input-file: + - Microsoft.Logz/preview/2020-10-01-preview/logz.json +``` From b2f89d7df185f6df7b67f6c3a7cc3a06ba00368d Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Wed, 3 Mar 2021 16:31:58 +0530 Subject: [PATCH 09/17] New Swagger Spec File --- .../preview/2020-10-01-preview/logz.json | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json new file mode 100644 index 000000000000..9c214cfb7713 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json @@ -0,0 +1,132 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-10-01-preview", + "title": "logz", + "description": "Description of the new service", + "x-ms-code-generation-settings": { + "name": "logzClient" + } + }, + "host": "management.azure.com", + "schemes": ["https"], + "consumes": ["application/json"], + "produces": ["application/json"], + "security": [ + { + "azure_auth": ["user_impersonation"] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/operations": { + "get": { + "tags": ["Tag1"], + "operationId": "OperationGroup_Get", + "x-ms-examples": { + "BatchAccountDelete": { "$ref": "./examples/OperationGroupGet.json" } + }, + "description": "This is a sample get operation, please see guidelines in azure-rest-api-specs repository for more info", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/Result" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Result": { + "description": "Sample result definition", + "properties": { + "sampleProperty": { + "type": "string", + "description": "Sample property of type string" + } + } + }, + "ErrorResponse": { + "description": "Error response.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinition", + "description": "The error details." + } + } + }, + "ErrorDefinition": { + "description": "Error definition.", + "properties": { + "code": { + "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Description of the error.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Internal error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDefinition" + }, + "readOnly": true + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to be used with the HTTP request." + } + } +} From 7ded3a29a65f2e0983784d1f7a4d68e8118e004e Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Wed, 3 Mar 2021 16:31:59 +0530 Subject: [PATCH 10/17] New Swagger Example Spec File --- .../examples/OperationGroupGet.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/OperationGroupGet.json diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/OperationGroupGet.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/OperationGroupGet.json new file mode 100644 index 000000000000..32e7c5889818 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/OperationGroupGet.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "accountName": "sampleacct", + "resourceGroupName": "logzClient", + "api-version": "2020-10-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "sampleProperty": "sampleProperty" + } + } + } +} From 3ea59247a109ed24f602b793428cd332e95cca3f Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Mon, 8 Mar 2021 14:52:03 +0530 Subject: [PATCH 11/17] migrated logz from logz repo to main repo --- .../examples/MonitoredResources_List.json | 24 + .../examples/Monitors_Create.json | 58 + .../examples/Monitors_Delete.json | 13 + .../examples/Monitors_Get.json | 37 + .../examples/Monitors_List.json | 38 + .../examples/Monitors_ListApiKeys.json | 29 + .../Monitors_ListByResourceGroup.json | 40 + .../examples/Monitors_Update.json | 33 + .../examples/OperationGroupGet.json | 15 - .../examples/Operations_List.json | 23 + ...leSignOnConfigurations_CreateOrUpdate.json | 44 + .../SingleSignOnConfigurations_Get.json | 23 + .../SingleSignOnConfigurations_List.json | 28 + .../SubAccountTagRules_CreateOrUpdate.json | 62 + .../examples/SubAccountTagRules_Delete.json | 15 + .../examples/SubAccountTagRules_Get.json | 38 + .../examples/SubAccountTagRules_List.json | 42 + .../examples/SubAccount_Create.json | 51 + .../examples/SubAccount_Delete.json | 14 + .../examples/SubAccount_Get.json | 26 + .../SubAccount_ListByResourceGroup.json | 31 + .../SubAccount_MonitoredResources_List.json | 25 + .../examples/SubAccount_Update.json | 34 + .../examples/TagRules_CreateOrUpdate.json | 62 + .../examples/TagRules_Delete.json | 14 + .../examples/TagRules_Get.json | 37 + .../examples/TagRules_List.json | 41 + .../preview/2020-10-01-preview/logz.json | 1908 ++++++++++++++++- 28 files changed, 2734 insertions(+), 71 deletions(-) create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/MonitoredResources_List.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Create.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Delete.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Get.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_List.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_ListApiKeys.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_ListByResourceGroup.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Update.json delete mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/OperationGroupGet.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Operations_List.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SingleSignOnConfigurations_CreateOrUpdate.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SingleSignOnConfigurations_Get.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SingleSignOnConfigurations_List.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_CreateOrUpdate.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_Delete.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_Get.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_List.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Create.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Delete.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Get.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_ListByResourceGroup.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_MonitoredResources_List.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Update.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_CreateOrUpdate.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_Delete.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_Get.json create mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_List.json diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/MonitoredResources_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/MonitoredResources_List.json new file mode 100644 index 000000000000..9409fb4056ee --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/MonitoredResources_List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/listMonitoredResources", + "sendingMetrics": true, + "reasonForMetricsStatus": "CapturedByRules", + "sendingLogs": true, + "reasonForLogsStatus": "CapturedByRules" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Create.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Create.json new file mode 100644 index 000000000000..067c396f8f61 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Create.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "requestBody": { + "properties": { + "userInfo": { + "firstName": "Alice", + "lastName": "Bob", + "emailAddress": "alice@microsoft.com", + "phoneNumber": "123456" + }, + "planData": { + "usageType": "Committed", + "billingCycle": "Monthly", + "planDetails": "logzapitestplan", + "effectiveDate": "2019-08-30T15:14:33+02:00" + } + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US 2" + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US 2" + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Delete.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Delete.json new file mode 100644 index 000000000000..714a9adac970 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Get.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Get.json new file mode 100644 index 000000000000..98d68bd3d4ad --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled", + "userInfo": { + "firstName": "Alice", + "lastName": "Bob", + "emailAddress": "alice@microsoft.com", + "phoneNumber": "123456" + }, + "planData": { + "usageType": "Committed", + "billingCycle": "Monthly", + "planDetails": "logzapitestplan", + "effectiveDate": "2019-08-30T15:14:33+02:00" + } + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_List.json new file mode 100644 index 000000000000..eeb749f34443 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_List.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled", + "userInfo": { + "firstName": "Alice", + "lastName": "Bob", + "emailAddress": "alice@microsoft.com", + "phoneNumber": "123456" + }, + "planData": { + "usageType": "Committed", + "billingCycle": "Monthly", + "planDetails": "logzapitestplan", + "effectiveDate": "2019-08-30T15:14:33+02:00" + } + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_ListApiKeys.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_ListApiKeys.json new file mode 100644 index 000000000000..8e913c53410a --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_ListApiKeys.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "createdBy": "john@example.com", + "name": "", + "key": "1111111111111111aaaaaaaaaaaaaaaa", + "created": "2019-04-05 09:20:30" + }, + { + "createdBy": "jane@example.com", + "name": "", + "key": "2111111111111111aaaaaaaaaaaaaaaa", + "created": "2019-04-05 09:19:53" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_ListByResourceGroup.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_ListByResourceGroup.json new file mode 100644 index 000000000000..eb9b3ce67a24 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_ListByResourceGroup.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Succeeded", + "userInfo": { + "firstName": "Alice", + "lastName": "Bob", + "emailAddress": "alice@microsoft.com", + "phoneNumber": "123456" + }, + "planData": { + "usageType": "Committed", + "billingCycle": "Monthly", + "planDetails": "logzapitestplan", + "effectiveDate": "2019-08-30T15:14:33+02:00" + } + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Update.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Update.json new file mode 100644 index 000000000000..5c7ab4192609 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_Update.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "requestBody": { + "properties": { + "monitoringStatus": "Enabled" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/OperationGroupGet.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/OperationGroupGet.json deleted file mode 100644 index 32e7c5889818..000000000000 --- a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/OperationGroupGet.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "accountName": "sampleacct", - "resourceGroupName": "logzClient", - "api-version": "2020-10-01-preview", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "sampleProperty": "sampleProperty" - } - } - } -} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Operations_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..10fbaa69b2c5 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Operations_List.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Logz/monitors/write", + "display": { + "provider": "Microsoft.Logz", + "resource": "monitors", + "operation": "write", + "description": "Write monitors resource" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SingleSignOnConfigurations_CreateOrUpdate.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SingleSignOnConfigurations_CreateOrUpdate.json new file mode 100644 index 000000000000..2975d4a0131d --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SingleSignOnConfigurations_CreateOrUpdate.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default", + "requestBody": { + "properties": { + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnUrl": null + } + } + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/singleSignOnConfigurations/default", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Succeeded", + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnUrl": "https://www.logz.io/IAmSomeHash" + } + } + }, + "201": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/singleSignOnConfigurations/default", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Succeeded", + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnUrl": "https://www.logz.io/IAmSomeHash" + } + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SingleSignOnConfigurations_Get.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SingleSignOnConfigurations_Get.json new file mode 100644 index 000000000000..7e169ba4559b --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SingleSignOnConfigurations_Get.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "provisioningState": "Succeeded", + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnUrl": "https://www.loz.io/IAmSomeHash" + } + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SingleSignOnConfigurations_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SingleSignOnConfigurations_List.json new file mode 100644 index 000000000000..ea9dda04d269 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SingleSignOnConfigurations_List.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/singleSignOnConfigurations/default", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Succeeded", + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnUrl": "https://www.logz.io/IAmSomeHash" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_CreateOrUpdate.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_CreateOrUpdate.json new file mode 100644 index 000000000000..31a0b5a33d7b --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_CreateOrUpdate.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "subAccountName": "SubAccount1", + "ruleSetName": "default", + "requestBody": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/accounts/SubAccount1/tagRules/default", + "type": "Microsoft.Logz/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendActivityLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/accounts/SubAccount1/tagRules/default", + "type": "Microsoft.Logz/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendActivityLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + } + } + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_Delete.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_Delete.json new file mode 100644 index 000000000000..797c7b30d9dd --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "subAccountName": "SubAccount1", + "ruleSetName": "default" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_Get.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_Get.json new file mode 100644 index 000000000000..7f0afd3d444d --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_Get.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "subAccountName": "SubAccount1", + "ruleSetName": "default" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/tagRules/default", + "type": "Microsoft.Logz/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendActivityLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + } + } + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_List.json new file mode 100644 index 000000000000..5b11fac35e58 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccountTagRules_List.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "subAccountName": "SubAccount1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/accounts/subAccount1/tagRules/default", + "type": "Microsoft.Logz/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendActivityLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + } + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Create.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Create.json new file mode 100644 index 000000000000..43dfc373f793 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Create.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "subAccountName": "SubAccount1", + "requestBody": { + "name": "myMonitor", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Accepted", + "monitoringStatus": "Enabled" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/accounts/SubAccount1", + "name": "myMonitor", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US 2" + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/accounts/SubAccount1", + "name": "myMonitor", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US 2" + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Delete.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Delete.json new file mode 100644 index 000000000000..705fcb4328eb --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "subAccountName": "someName", + "monitorName": "myMonitor" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Get.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Get.json new file mode 100644 index 000000000000..492805ff2ecc --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "subAccountName": "SubAccount1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/accounts/SubAccount1", + "name": "myMonitor", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_ListByResourceGroup.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_ListByResourceGroup.json new file mode 100644 index 000000000000..d3f7db349c14 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_ListByResourceGroup.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "subAccountName": "subacname" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/accounts", + "name": "myMonitor", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_MonitoredResources_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_MonitoredResources_List.json new file mode 100644 index 000000000000..02f6a8b36b7f --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_MonitoredResources_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "subAccountName": "SubAccount1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/accounts/SubAccount1/listMonitoredResources", + "sendingMetrics": true, + "reasonForMetricsStatus": "CapturedByRules", + "sendingLogs": true, + "reasonForLogsStatus": "CapturedByRules" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Update.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Update.json new file mode 100644 index 000000000000..c62053c78433 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/SubAccount_Update.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "subAccountName": "SubAccount1", + "requestBody": { + "properties": { + "monitoringStatus": "Enabled" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/accounts/SubAccount1", + "name": "myMonitor", + "type": "Microsoft.Logz/monitors", + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_CreateOrUpdate.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_CreateOrUpdate.json new file mode 100644 index 000000000000..75bbba13c20d --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_CreateOrUpdate.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "subAccountName": "SubAccount1", + "monitorName": "myMonitor", + "ruleSetName": "default", + "requestBody": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/tagRules/default", + "type": "Microsoft.Logz/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendActivityLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/tagRules/default", + "type": "Microsoft.Logz/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendActivityLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + } + } + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_Delete.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_Delete.json new file mode 100644 index 000000000000..4d259cc14224 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "ruleSetName": "default" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_Get.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_Get.json new file mode 100644 index 000000000000..76df7a8a6b3c --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "ruleSetName": "default" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/tagRules/default", + "type": "Microsoft.Logz/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendActivityLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + } + } + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_List.json new file mode 100644 index 000000000000..ea04c9fc0e68 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/TagRules_List.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2020-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/tagRules/default", + "type": "Microsoft.Logz/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendActivityLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + } + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json index 9c214cfb7713..6ce7b985a1f1 100644 --- a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json @@ -1,21 +1,18 @@ { "swagger": "2.0", "info": { - "version": "2020-10-01-preview", - "title": "logz", - "description": "Description of the new service", - "x-ms-code-generation-settings": { - "name": "logzClient" - } + "title": "Microsoft.Logz", + "version": "2020-10-01-preview" }, "host": "management.azure.com", - "schemes": ["https"], - "consumes": ["application/json"], - "produces": ["application/json"], - "security": [ - { - "azure_auth": ["user_impersonation"] - } + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" ], "securityDefinitions": { "azure_auth": { @@ -29,104 +26,1903 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/operations": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/listMonitoredResources": { + "post": { + "tags": [ + "Monitors" + ], + "summary": "List the resources currently being monitored by the Logz monitor resource.", + "operationId": "Monitors_ListMonitoredResources", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoredResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "MonitoredResources_List": { + "$ref": "./examples/MonitoredResources_List.json" + } + } + } + }, + "/providers/Microsoft.Logz/operations": { + "get": { + "tags": [ + "Operations" + ], + "summary": "List all operations provided by Microsoft.Logz.", + "operationId": "Operations_List", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Logz/monitors": { + "get": { + "tags": [ + "Monitors" + ], + "summary": "List all monitors under the specified subscription.", + "operationId": "Monitors_ListBySubscription", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzMonitorResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_List": { + "$ref": "./examples/Monitors_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors": { + "get": { + "tags": [ + "Monitors" + ], + "summary": "List all monitors under the specified resource group.", + "operationId": "Monitors_ListByResourceGroup", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzMonitorResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_ListByResourceGroup": { + "$ref": "./examples/Monitors_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}": { + "get": { + "tags": [ + "Monitors" + ], + "summary": "Get the properties of a specific monitor resource.", + "operationId": "Monitors_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzMonitorResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_Get": { + "$ref": "./examples/Monitors_Get.json" + } + } + }, + "put": { + "tags": [ + "Monitors" + ], + "summary": "Create a monitor resource.", + "operationId": "Monitors_Create", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/LogzMonitorResource" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzMonitorResource" + } + }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzMonitorResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_Create": { + "$ref": "./examples/Monitors_Create.json" + } + } + }, + "patch": { + "tags": [ + "Monitors" + ], + "summary": "Update a monitor resource.", + "operationId": "Monitors_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/LogzMonitorResourceUpdateParameters" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzMonitorResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_Update": { + "$ref": "./examples/Monitors_Update.json" + } + } + }, + "delete": { + "tags": [ + "Monitors" + ], + "summary": "Delete a monitor resource.", + "operationId": "Monitors_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Success", + "headers": { + "location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "204": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Monitors_Delete": { + "$ref": "./examples/Monitors_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/tagRules": { "get": { - "tags": ["Tag1"], - "operationId": "OperationGroup_Get", + "tags": [ + "TagRules" + ], + "summary": "List the tag rules for a given monitor resource.", + "operationId": "TagRules_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoringTagRulesListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "TagRules_List": { + "$ref": "./examples/TagRules_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/tagRules/{ruleSetName}": { + "put": { + "tags": [ + "TagRules" + ], + "summary": "Create or update a tag rule set for a given monitor resource.", + "operationId": "TagRules_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "in": "path", + "name": "ruleSetName", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TagRules_CreateOrUpdate": { + "$ref": "./examples/TagRules_CreateOrUpdate.json" + } + } + }, + "get": { + "tags": [ + "TagRules" + ], + "summary": "Get a tag rule set for a given monitor resource.", + "operationId": "TagRules_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "in": "path", + "name": "ruleSetName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TagRules_Get": { + "$ref": "./examples/TagRules_Get.json" + } + } + }, + "delete": { + "tags": [ + "TagRules" + ], + "summary": "Delete a tag rule set for a given monitor resource.", + "operationId": "TagRules_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "in": "path", + "name": "ruleSetName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Success", + "headers": { + "location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "204": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TagRules_Delete": { + "$ref": "./examples/TagRules_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/singleSignOnConfigurations": { + "get": { + "tags": [ + "SingleSignOn" + ], + "summary": "List the single sign-on configurations for a given monitor resource.", + "operationId": "SingleSignOn_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzSingleSignOnResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "SingleSignOnConfigurations_List": { + "$ref": "./examples/SingleSignOnConfigurations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}": { + "put": { + "tags": [ + "SingleSignOn" + ], + "summary": "Configures single-sign-on for this resource.", + "operationId": "SingleSignOn_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/LogzSingleSignOnResource" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzSingleSignOnResource" + } + }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzSingleSignOnResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SingleSignOnConfigurations_CreateOrUpdate": { + "$ref": "./examples/SingleSignOnConfigurations_CreateOrUpdate.json" + } + } + }, + "get": { + "tags": [ + "SingleSignOn" + ], + "summary": "Gets the Logz single sign-on resource for the given Monitor.", + "operationId": "SingleSignOn_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzSingleSignOnResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SingleSignOnConfigurations_Get": { + "$ref": "./examples/SingleSignOnConfigurations_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts": { + "get": { + "tags": [ + "SubAccount" + ], + "summary": "List the sub account under a given monitor resource.", + "operationId": "SubAccount_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzMonitorResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "SubAccount_List": { + "$ref": "./examples/SubAccount_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}": { + "put": { + "tags": [ + "SubAccount" + ], + "summary": "Create sub account under a given monitor resource.", + "operationId": "SubAccount_Create", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "#/parameters/SubAccountNameParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/LogzMonitorResource" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzMonitorResource" + } + }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzMonitorResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "subAccount_Create": { + "$ref": "./examples/SubAccount_Create.json" + } + } + }, + "get": { + "tags": [ + "SubAccount" + ], + "summary": "Get a sub account under a given monitor resource.", + "operationId": "SubAccount_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "#/parameters/SubAccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzMonitorResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SubAccount_Get": { + "$ref": "./examples/SubAccount_Get.json" + } + } + }, + "delete": { + "tags": [ + "SubAccount" + ], + "summary": "Delete a sub account resource.", + "operationId": "SubAccount_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "#/parameters/SubAccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Success", + "headers": { + "location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "204": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "SubAccount_Delete": { + "$ref": "./examples/SubAccount_Delete.json" + } + } + }, + "patch": { + "tags": [ + "SubAccount" + ], + "summary": "Update a monitor resource.", + "operationId": "SubAccount_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "#/parameters/SubAccountNameParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/LogzMonitorResourceUpdateParameters" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LogzMonitorResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SubAccount_Update": { + "$ref": "./examples/SubAccount_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/tagRules": { + "get": { + "tags": [ + "TagRules" + ], + "summary": "List the tag rules for a given sub account resource.", + "operationId": "SubAccountTagRules_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "#/parameters/SubAccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoringTagRulesListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "SubAccountTagRules_List": { + "$ref": "./examples/SubAccountTagRules_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/tagRules/{ruleSetName}": { + "put": { + "tags": [ + "TagRules" + ], + "summary": "Create or update a tag rule set for a given sub account resource.", + "operationId": "SubAccountTagRules_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "#/parameters/SubAccountNameParameter" + }, + { + "in": "path", + "name": "ruleSetName", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SubAccountTagRules_CreateOrUpdate": { + "$ref": "./examples/SubAccountTagRules_CreateOrUpdate.json" + } + } + }, + "get": { + "tags": [ + "TagRules" + ], + "summary": "Get a tag rule set for a given monitor resource.", + "operationId": "SubAccountTagRules_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "#/parameters/SubAccountNameParameter" + }, + { + "in": "path", + "name": "ruleSetName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, "x-ms-examples": { - "BatchAccountDelete": { "$ref": "./examples/OperationGroupGet.json" } + "SubAccountTagRules_Get": { + "$ref": "./examples/SubAccountTagRules_Get.json" + } + } + }, + "delete": { + "tags": [ + "TagRules" + ], + "summary": "Delete a tag rule set for a given monitor resource.", + "operationId": "SubAccountTagRules_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "#/parameters/SubAccountNameParameter" + }, + { + "in": "path", + "name": "ruleSetName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Success", + "headers": { + "location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "204": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } }, - "description": "This is a sample get operation, please see guidelines in azure-rest-api-specs repository for more info", + "x-ms-examples": { + "TagRules_Delete": { + "$ref": "./examples/SubAccountTagRules_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/listMonitoredResources": { + "post": { + "tags": [ + "SubAccount" + ], + "summary": "List the resources currently being monitored by the Logz sub account resource.", + "operationId": "SubAccount_ListMonitoredResources", + "produces": [ + "application/json" + ], "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "#/parameters/SubAccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "Describe the result of a successful operation.", + "description": "Success", "schema": { - "$ref": "#/definitions/Result" + "$ref": "#/definitions/MonitoredResourceListResponse" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Default error response.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "SubAccount_MonitoredResources_List": { + "$ref": "./examples/SubAccount_MonitoredResources_List.json" + } } } } }, "definitions": { - "Result": { - "description": "Sample result definition", + "MonitoredResource": { + "description": "The properties of a resource currently being monitored by the Logz monitor resource.", + "type": "object", + "properties": { + "id": { + "description": "The ARM id of the resource.", + "type": "string" + }, + "sendingMetrics": { + "description": "Flag indicating if resource is sending metrics to Logz.", + "type": "boolean" + }, + "reasonForMetricsStatus": { + "description": "Reason for why the resource is sending metrics (or why it is not sending).", + "type": "string" + }, + "sendingLogs": { + "description": "Flag indicating if resource is sending logs to Logz.", + "type": "boolean" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "reasonForLogsStatus": { + "description": "Reason for why the resource is sending logs (or why it is not sending).", + "type": "string" + } + } + }, + "MonitoredResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/MonitoredResource" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "OperationDisplay": { + "description": "The object that represents the operation.", + "type": "object", + "properties": { + "provider": { + "description": "Service provider, i.e., Microsoft.Logz.", + "type": "string" + }, + "resource": { + "description": "Type on which the operation is performed, e.g., 'monitors'.", + "type": "string" + }, + "operation": { + "description": "Operation type, e.g., read, write, delete, etc.", + "type": "string" + }, + "description": { + "description": "Description of the operation, e.g., 'Write monitors'.", + "type": "string" + } + } + }, + "OperationResult": { + "description": "A Microsoft.Logz REST API operation.", + "type": "object", + "properties": { + "name": { + "description": "Operation name, i.e., {provider}/{resource}/{operation}.", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationDisplay" + } + } + }, + "OperationListResult": { + "description": "Result of GET request to list the Microsoft.Logz operations.", + "type": "object", + "properties": { + "value": { + "description": "List of operations supported by the Microsoft.Logz provider.", + "type": "array", + "items": { + "$ref": "#/definitions/OperationResult" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string" + } + } + }, + "ProvisioningState": { + "enum": [ + "Accepted", + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled", + "Deleted", + "NotSpecified" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "ProvisioningState" + }, + "readOnly": true + }, + "MonitoringStatus": { + "description": "Flag specifying if the resource monitoring is enabled or disabled.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "MonitoringStatus" + } + }, + "MarketplaceSubscriptionStatus": { + "description": "Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.", + "enum": [ + "Active", + "Suspended" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "MarketplaceSubscriptionStatus" + } + }, + "LogzOrganizationProperties": { + "type": "object", + "properties": { + "companyName": { + "description": "Name of the Logz organization.", + "type": "string" + }, + "id": { + "description": "Id of the Logz organization.", + "type": "string", + "readOnly": true + }, + "enterpriseAppId": { + "description": "The Id of the Enterprise App used for Single sign on.", + "type": "string" + } + } + }, + "UserInfo": { + "type": "object", + "properties": { + "firstName": { + "description": "First Name of the user", + "maxLength": 50, + "type": "string" + }, + "lastName": { + "description": "Last Name of the user", + "maxLength": 50, + "type": "string" + }, + "emailAddress": { + "description": "Email of the user used by Logz for contacting them if needed", + "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$", + "type": "string" + }, + "phoneNumber": { + "description": "Phone number of the user used by Logz for contacting them if needed", + "maxLength": 40, + "type": "string" + } + } + }, + "PlanData": { + "type": "object", + "properties": { + "usageType": { + "description": "different usage type like PAYG/COMMITTED. this could be enum", + "maxLength": 50, + "type": "string" + }, + "billingCycle": { + "description": "different billing cycles like MONTHLY/WEEKLY. this could be enum", + "maxLength": 50, + "type": "string" + }, + "planDetails": { + "description": "plan id as published by Logz", + "maxLength": 50, + "type": "string" + }, + "effectiveDate": { + "format": "date-time", + "description": "date when plan was applied", + "type": "string" + } + } + }, + "LiftrResourceCategories": { + "enum": [ + "Unknown", + "MonitorLogs" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "LiftrResourceCategories" + }, + "readOnly": true + }, + "MonitorProperties": { + "description": "Properties specific to the monitor resource.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "monitoringStatus": { + "$ref": "#/definitions/MonitoringStatus" + }, + "marketplaceSubscriptionStatus": { + "$ref": "#/definitions/MarketplaceSubscriptionStatus" + }, + "logzOrganizationProperties": { + "$ref": "#/definitions/LogzOrganizationProperties" + }, + "userInfo": { + "$ref": "#/definitions/UserInfo" + }, + "planData": { + "$ref": "#/definitions/PlanData" + }, + "liftrResourceCategory": { + "$ref": "#/definitions/LiftrResourceCategories" + }, + "liftrResourcePreference": { + "description": "The priority of the resource.", + "format": "int32", + "type": "integer", + "readOnly": true + } + } + }, + "ManagedIdentityTypes": { + "enum": [ + "SystemAssigned", + "UserAssigned" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "ManagedIdentityTypes" + } + }, + "IdentityProperties": { + "type": "object", + "properties": { + "principalId": { + "description": "The identity ID.", + "type": "string", + "readOnly": true + }, + "tenantId": { + "description": "The tenant ID of resource.", + "type": "string", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/ManagedIdentityTypes" + } + } + }, + "LogzMonitorResource": { + "required": [ + "location" + ], + "type": "object", + "x-ms-azure-resource": true, "properties": { - "sampleProperty": { + "id": { + "description": "ARM id of the monitor resource.", "type": "string", - "description": "Sample property of type string" + "readOnly": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "name": { + "description": "Name of the monitor resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the monitor resource.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/MonitorProperties" + }, + "identity": { + "$ref": "#/definitions/IdentityProperties" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "location": { + "type": "string" + } + } + }, + "LogzMonitorResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/LogzMonitorResource" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "MonitorUpdateProperties": { + "description": "The set of properties that can be update in a PATCH request to a monitor resource.", + "type": "object", + "properties": { + "monitoringStatus": { + "$ref": "#/definitions/MonitoringStatus" + } + } + }, + "LogzMonitorResourceUpdateParameters": { + "description": "The parameters for a PATCH request to a monitor resource.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/MonitorUpdateProperties" + }, + "tags": { + "description": "The new tags of the monitor resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "TagAction": { + "description": "Valid actions for a filtering tag. Exclusion takes priority over inclusion.", + "enum": [ + "Include", + "Exclude" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "TagAction" + } + }, + "FilteringTag": { + "description": "The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored.", + "type": "object", + "properties": { + "name": { + "description": "The name (also known as the key) of the tag.", + "type": "string" + }, + "value": { + "description": "The value of the tag.", + "type": "string" + }, + "action": { + "$ref": "#/definitions/TagAction" + } + } + }, + "LogRules": { + "description": "Set of rules for sending logs for the Monitor resource.", + "type": "object", + "properties": { + "sendAadLogs": { + "description": "Flag specifying if AAD logs should be sent for the Monitor resource.", + "type": "boolean" + }, + "sendSubscriptionLogs": { + "description": "Flag specifying if subscription logs should be sent for the Monitor resource.", + "type": "boolean" + }, + "sendActivityLogs": { + "description": "Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.", + "type": "boolean" + }, + "filteringTags": { + "description": "List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.", + "type": "array", + "items": { + "$ref": "#/definitions/FilteringTag" + } } } }, - "ErrorResponse": { - "description": "Error response.", + "MonitoringTagRulesProperties": { + "description": "Definition of the properties for a TagRules resource.", + "type": "object", "properties": { - "error": { - "$ref": "#/definitions/ErrorDefinition", - "description": "The error details." + "logRules": { + "$ref": "#/definitions/LogRules" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } }, - "ErrorDefinition": { - "description": "Error definition.", + "MonitoringTagRules": { + "description": "Capture logs and metrics of Azure resources based on ARM tags.", + "type": "object", + "x-ms-azure-resource": true, "properties": { - "code": { - "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "name": { + "description": "Name of the rule set.", + "type": "string", + "readOnly": true + }, + "id": { + "description": "The id of the rule set.", "type": "string", "readOnly": true }, - "message": { - "description": "Description of the error.", + "type": { + "description": "The type of the rule set.", "type": "string", "readOnly": true }, - "details": { - "description": "Internal error details.", + "properties": { + "$ref": "#/definitions/MonitoringTagRulesProperties" + } + } + }, + "MonitoringTagRulesListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", "type": "array", "items": { - "$ref": "#/definitions/ErrorDefinition" - }, + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "SingleSignOnStates": { + "description": "Various states of the SSO resource", + "enum": [ + "Initial", + "Enable", + "Disable", + "Existing" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "SingleSignOnStates" + } + }, + "LogzSingleSignOnProperties": { + "type": "object", + "properties": { + "singleSignOnState": { + "$ref": "#/definitions/SingleSignOnStates" + }, + "enterpriseAppId": { + "description": "The Id of the Enterprise App used for Single sign-on.", + "type": "string" + }, + "singleSignOnUrl": { + "description": "The login URL specific to this Logz Organization.", + "type": "string" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + } + } + }, + "LogzSingleSignOnResource": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "ARM id of the resource.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Name of the configuration.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the resource.", + "type": "string", "readOnly": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "properties": { + "$ref": "#/definitions/LogzSingleSignOnProperties" + } + } + }, + "LogzSingleSignOnResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/LogzSingleSignOnResource" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" } } } }, "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", + "MonitorNameParameter": { "in": "path", + "name": "monitorName", + "description": "Monitor resource name", "required": true, "type": "string", - "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" + "x-ms-parameter-location": "method" }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", + "SubAccountNameParameter": { "in": "path", + "name": "subAccountName", + "description": "Sub Account resource name", "required": true, "type": "string", - "description": "The name of the resource group.", "x-ms-parameter-location": "method" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to be used with the HTTP request." } } } From 5b0ca26508ab15ca0a7c3efc323e1dc0ae9fdc95 Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Mon, 8 Mar 2021 14:54:44 +0530 Subject: [PATCH 12/17] changing double preview to preview --- specification/logz/resource-manager/readme.go.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/logz/resource-manager/readme.go.md b/specification/logz/resource-manager/readme.go.md index 91bcf7629a49..b68ebff955ee 100644 --- a/specification/logz/resource-manager/readme.go.md +++ b/specification/logz/resource-manager/readme.go.md @@ -13,12 +13,12 @@ go: ``` yaml $(go) && $(multiapi) batch: - - tag: package-2020-10-01-preview-preview + - tag: package-2020-10-01-preview ``` ### Tag: package-2020-10-01-preview-preview and go -These settings apply only when `--tag=package-2020-10-01-preview-preview --go` is specified on the command line. +These settings apply only when `--tag=package-2020-10-01-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. ```yaml $(tag) == 'package-2020-10-01-preview-preview' && $(go) From 8514c809afe458e359be8e408c58eb00e9312e99 Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Mon, 8 Mar 2021 15:19:05 +0530 Subject: [PATCH 13/17] Fixing spell check --- custom-words.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/custom-words.txt b/custom-words.txt index fa51d74e9023..554ee026fabb 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2115,3 +2115,4 @@ FSLogix privatelinkservice natgateway defanged +Logz \ No newline at end of file From f1d282cd653823867c46124ed474f6384fdd2fa1 Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Mon, 8 Mar 2021 15:22:10 +0530 Subject: [PATCH 14/17] copying elastic readme and modifying --- specification/logz/resource-manager/readme.go.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/logz/resource-manager/readme.go.md b/specification/logz/resource-manager/readme.go.md index b68ebff955ee..8689a96f5422 100644 --- a/specification/logz/resource-manager/readme.go.md +++ b/specification/logz/resource-manager/readme.go.md @@ -16,11 +16,11 @@ batch: - tag: package-2020-10-01-preview ``` -### Tag: package-2020-10-01-preview-preview and go +### Tag: package-2020-10-01-preview and go These settings apply only when `--tag=package-2020-10-01-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -```yaml $(tag) == 'package-2020-10-01-preview-preview' && $(go) +```yaml $(tag) == 'package-2020-10-01-preview' && $(go) output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-10-01-preview/$(namespace) ``` From 77198eaf1b725421df4f285e3e4daf1d9610fc8e Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Mon, 8 Mar 2021 15:29:05 +0530 Subject: [PATCH 15/17] Added system data for tag rules --- .../examples/Monitors_ListApiKeys.json | 29 ------------------- .../preview/2020-10-01-preview/logz.json | 3 ++ 2 files changed, 3 insertions(+), 29 deletions(-) delete mode 100644 specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_ListApiKeys.json diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_ListApiKeys.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_ListApiKeys.json deleted file mode 100644 index 8e913c53410a..000000000000 --- a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/examples/Monitors_ListApiKeys.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "api-version": "2020-10-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "createdBy": "john@example.com", - "name": "", - "key": "1111111111111111aaaaaaaaaaaaaaaa", - "created": "2019-04-05 09:20:30" - }, - { - "createdBy": "jane@example.com", - "name": "", - "key": "2111111111111111aaaaaaaaaaaaaaaa", - "created": "2019-04-05 09:19:53" - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json index 6ce7b985a1f1..5d5fd2265eb3 100644 --- a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json @@ -1807,6 +1807,9 @@ "type": "string", "readOnly": true }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, "properties": { "$ref": "#/definitions/MonitoringTagRulesProperties" } From 060752e2708387fdc7b66f327fdeb64cef578bb9 Mon Sep 17 00:00:00 2001 From: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Date: Mon, 8 Mar 2021 16:30:33 +0530 Subject: [PATCH 16/17] changed orerations reuslt and systemd ata --- .../preview/2020-10-01-preview/logz.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json index 5d5fd2265eb3..a9fd5750fbd6 100644 --- a/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2020-10-01-preview/logz.json @@ -1430,8 +1430,16 @@ "description": "Operation name, i.e., {provider}/{resource}/{operation}.", "type": "string" }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, "display": { "$ref": "#/definitions/OperationDisplay" + }, + "origin": { + "description": "Origin of the operation", + "type": "string" } } }, @@ -1650,6 +1658,8 @@ "readOnly": true }, "systemData": { + "readOnly": true, + "description": "The system metadata relating to this resource", "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, "name": { @@ -1808,6 +1818,8 @@ "readOnly": true }, "systemData": { + "readOnly": true, + "description": "The system metadata relating to this resource", "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, "properties": { From c81bf9a60b61fe24a03cedbdf4dd391e025e33d9 Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Fri, 12 Mar 2021 17:38:45 +0800 Subject: [PATCH 17/17] fix python.md --- .../logz/resource-manager/readme.python.md | 23 ++----------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/specification/logz/resource-manager/readme.python.md b/specification/logz/resource-manager/readme.python.md index 4e196a065a83..014cd995b65e 100644 --- a/specification/logz/resource-manager/readme.python.md +++ b/specification/logz/resource-manager/readme.python.md @@ -3,39 +3,20 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(python) && !$(track2) -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - package-name: azure-mgmt-logz - no-namespace-folders: true - package-version: 1.0.0b1 -``` - -``` yaml $(python-mode) == 'update' && !$(track2) -python: - output-folder: $(python-sdks-folder)/logz/azure-mgmt-logz/azure/mgmt/logz -``` -``` yaml $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/logz/azure-mgmt-logz -``` - ``` yaml $(python) && $(track2) azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-logz no-namespace-folders: true +package-version: 1.0.0b1 ``` -``` yaml $(python-mode) == 'update' +``` yaml $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/logz/azure-mgmt-logz/azure/mgmt/logz ``` ``` yaml $(python-mode) == 'create' && $(track2) -package-version: 1.0.0b1 basic-setup-py: true output-folder: $(python-sdks-folder)/logz/azure-mgmt-logz ```