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 3693313e61f9..2123c23aa81b 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 @@ -84,6 +84,11 @@ "produces": [ "application/json" ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], "responses": { "200": { "description": "Success", diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MainAccount_VMHosts_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MainAccount_VMHosts_List.json new file mode 100644 index 000000000000..9e0c7e84b2eb --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MainAccount_VMHosts_List.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2022-01-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/providers/Microsoft.Compute/virtualMachines/virtual1", + "agentVersion": "1.0.0beta" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MainAccount_VMHosts_Payload.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MainAccount_VMHosts_Payload.json new file mode 100644 index 000000000000..eb33690adad8 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MainAccount_VMHosts_Payload.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "apiKey": "00000000-0000-0000-0000-000000000000", + "region": "West US 2" + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MainAccount_VMHosts_Update.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MainAccount_VMHosts_Update.json new file mode 100644 index 000000000000..ce4cd47c8415 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MainAccount_VMHosts_Update.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "requestBody": { + "state": "Install", + "vmResources": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtual1", + "agentVersion": "1.0.0beta" + } + ] + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtual1", + "agentVersion": "1.0.0beta" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MainAccount_listUserRoles.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MainAccount_listUserRoles.json new file mode 100644 index 000000000000..b5ef8244210c --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MainAccount_listUserRoles.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "role": "Admin" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSourceTagRules_CreateOrUpdate.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSourceTagRules_CreateOrUpdate.json new file mode 100644 index 000000000000..c9af2f54e493 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSourceTagRules_CreateOrUpdate.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "metricsSourceName": "MetricsSource1", + "ruleSetName": "default", + "requestBody": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/metricsSource/MetricsSource1/tagRules/default", + "type": "Microsoft.Logz/monitors/tagRules", + "properties": { + "sendMetrics": true, + "metricRules": [ + { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "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/metricsSource/MetricsSource1/tagRules/default", + "type": "Microsoft.Logz/monitors/tagRules", + "properties": { + "sendMetrics": true, + "metricRules": [ + { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + } + ] + } + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSourceTagRules_Delete.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSourceTagRules_Delete.json new file mode 100644 index 000000000000..691df52ad55c --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSourceTagRules_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "metricsSourceName": "MetricsSource1", + "ruleSetName": "default" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSourceTagRules_Get.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSourceTagRules_Get.json new file mode 100644 index 000000000000..8a7a2e8ee581 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSourceTagRules_Get.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "metricsSourceName": "MetricsSource1", + "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": { + "sendMetrics": true, + "metricRules": [ + { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + } + ] + } + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSourceTagRules_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSourceTagRules_List.json new file mode 100644 index 000000000000..16d745f4e5f9 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSourceTagRules_List.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "metricsSourceName": "MetricsSource1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/metricsSource/metricsSource1/tagRules/default", + "type": "Microsoft.Logz/monitors/tagRules", + "properties": { + "sendMetrics": true, + "metricRules": [ + { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "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/2022-01-01-preview/examples/MetricsSource_Create.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSource_Create.json new file mode 100644 index 000000000000..934e66e12232 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSource_Create.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "metricsSourceName": "MetricsSource1", + "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/metricsSource/MetricsSource1", + "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/metricsSource/MetricsSource1", + "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/2022-01-01-preview/examples/MetricsSource_Delete.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSource_Delete.json new file mode 100644 index 000000000000..e1d37d82583c --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSource_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "metricsSourceName": "someName", + "monitorName": "myMonitor" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSource_Get.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSource_Get.json new file mode 100644 index 000000000000..b517d2dcd9db --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSource_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "metricsSourceName": "MetricsSource1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/metricsSource/metricsSource1", + "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/2022-01-01-preview/examples/MetricsSource_ListByResourceGroup.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSource_ListByResourceGroup.json new file mode 100644 index 000000000000..8f1d0f87e7c9 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSource_ListByResourceGroup.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "metricsSourceName": "metricsacname" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/metricsSource", + "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/2022-01-01-preview/examples/MetricsSource_Update.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSource_Update.json new file mode 100644 index 000000000000..88c6e533f1a2 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MetricsSource_Update.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "metricsSourceName": "MetricsSource1", + "requestBody": { + "properties": { + "monitoringStatus": "Enabled" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/metricsSource/MetricsSource1", + "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/2022-01-01-preview/examples/MonitoredResources_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MonitoredResources_List.json new file mode 100644 index 000000000000..ee7e5fdb648d --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/MonitoredResources_List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/Monitors_Create.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Monitors_Create.json new file mode 100644 index 000000000000..e8a2dad9ff8b --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Monitors_Create.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/Monitors_Delete.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Monitors_Delete.json new file mode 100644 index 000000000000..656e98f098ba --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Monitors_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/Monitors_Get.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Monitors_Get.json new file mode 100644 index 000000000000..f819450f08ac --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Monitors_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/Monitors_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Monitors_List.json new file mode 100644 index 000000000000..d08a751bb405 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Monitors_List.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/Monitors_ListByResourceGroup.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Monitors_ListByResourceGroup.json new file mode 100644 index 000000000000..92bb2b5a0760 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Monitors_ListByResourceGroup.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/Monitors_Update.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Monitors_Update.json new file mode 100644 index 000000000000..c5faf8a25fda --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Monitors_Update.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/Operations_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..193ac89df9f3 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/Operations_List.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SingleSignOnConfigurations_CreateOrUpdate.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SingleSignOnConfigurations_CreateOrUpdate.json new file mode 100644 index 000000000000..665c5bf983be --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SingleSignOnConfigurations_CreateOrUpdate.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SingleSignOnConfigurations_Get.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SingleSignOnConfigurations_Get.json new file mode 100644 index 000000000000..57de743fbd61 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SingleSignOnConfigurations_Get.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SingleSignOnConfigurations_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SingleSignOnConfigurations_List.json new file mode 100644 index 000000000000..50e960406df1 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SingleSignOnConfigurations_List.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SubAccountTagRules_CreateOrUpdate.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccountTagRules_CreateOrUpdate.json new file mode 100644 index 000000000000..574628d043c0 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccountTagRules_CreateOrUpdate.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SubAccountTagRules_Delete.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccountTagRules_Delete.json new file mode 100644 index 000000000000..f91bbd544eb2 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccountTagRules_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SubAccountTagRules_Get.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccountTagRules_Get.json new file mode 100644 index 000000000000..8ced91705aeb --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccountTagRules_Get.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SubAccountTagRules_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccountTagRules_List.json new file mode 100644 index 000000000000..954741edca77 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccountTagRules_List.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SubAccount_Create.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_Create.json new file mode 100644 index 000000000000..15d46b1a64c9 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_Create.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SubAccount_Delete.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_Delete.json new file mode 100644 index 000000000000..c575d87cd143 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SubAccount_Get.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_Get.json new file mode 100644 index 000000000000..fe012371f310 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SubAccount_ListByResourceGroup.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_ListByResourceGroup.json new file mode 100644 index 000000000000..cc2941ab3193 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_ListByResourceGroup.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SubAccount_MonitoredResources_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_MonitoredResources_List.json new file mode 100644 index 000000000000..6cd33401fbde --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_MonitoredResources_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SubAccount_Update.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_Update.json new file mode 100644 index 000000000000..e91094ebcc2c --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_Update.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/SubAccount_VMHosts_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_VMHosts_List.json new file mode 100644 index 000000000000..ddaf8dabe5b2 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_VMHosts_List.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2022-01-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/providers/Microsoft.Compute/virtualMachines/virtual1", + "agentVersion": "1.0.0beta" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_VMHosts_Payload.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_VMHosts_Payload.json new file mode 100644 index 000000000000..f0d4b97cf7a7 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_VMHosts_Payload.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "subAccountName": "SubAccount1" + }, + "responses": { + "200": { + "body": { + "apiKey": "00000000-0000-0000-0000-000000000000", + "region": "West US 2" + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_VMHosts_Update.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_VMHosts_Update.json new file mode 100644 index 000000000000..7560a0ca1918 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/SubAccount_VMHosts_Update.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2022-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "subAccountName": "SubAccount1", + "requestBody": { + "state": "Install", + "vmResources": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtual1", + "agentVersion": "1.0.0beta" + } + ] + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtual1", + "agentVersion": "1.0.0beta" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/TagRules_CreateOrUpdate.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/TagRules_CreateOrUpdate.json new file mode 100644 index 000000000000..46b9898a085d --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/TagRules_CreateOrUpdate.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/TagRules_Delete.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/TagRules_Delete.json new file mode 100644 index 000000000000..5147a5b2572b --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/TagRules_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/TagRules_Get.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/TagRules_Get.json new file mode 100644 index 000000000000..cb90cbc32f7a --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/TagRules_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/examples/TagRules_List.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/TagRules_List.json new file mode 100644 index 000000000000..0519218a1996 --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/examples/TagRules_List.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2022-01-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/2022-01-01-preview/logz.json b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/logz.json new file mode 100644 index 000000000000..27e06bfbc93d --- /dev/null +++ b/specification/logz/resource-manager/Microsoft.Logz/preview/2022-01-01-preview/logz.json @@ -0,0 +1,3127 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.Logz", + "version": "2022-01-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "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/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" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "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. This create operation can take upto 10 minutes to complete.", + "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. This delete operation can take upto 10 minutes to complete.", + "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": [ + "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. This operation can take upto 10 minutes to complete.", + "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. This create operation can take upto 10 minutes to complete.", + "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. This delete operation can take upto 10 minutes to complete.", + "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": { + "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" + } + } + }, + "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": "../../../../../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/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": { + "SubAccount_MonitoredResources_List": { + "$ref": "./examples/SubAccount_MonitoredResources_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/vmHostPayload": { + "post": { + "tags": [ + "VM_Host" + ], + "summary": "Returns the payload that needs to be passed as a request for installing Logz.io agent on a VM.", + "operationId": "SubAccount_VMHostPayload", + "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/VMExtensionPayload" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SubAccount_VMHosts_Payload": { + "$ref": "./examples/SubAccount_VMHosts_Payload.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/vmHostUpdate": { + "post": { + "tags": [ + "VM_Host" + ], + "summary": "Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.", + "operationId": "SubAccount_ListVmHostUpdate", + "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" + }, + { + "in": "body", + "name": "body", + "description": "Request body to update the collection for agent installed in the given monitor.", + "schema": { + "$ref": "#/definitions/VMHostUpdateRequest" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/VMResourcesListResponse" + } + }, + "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_VMHosts_Update": { + "$ref": "./examples/SubAccount_VMHosts_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/listVMHosts": { + "post": { + "tags": [ + "VM_Host" + ], + "summary": "List the compute resources currently being monitored by the Logz sub account resource.", + "operationId": "SubAccount_ListVMHosts", + "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/VMResourcesListResponse" + } + }, + "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_VMHosts_List": { + "$ref": "./examples/SubAccount_VMHosts_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/metricsSource": { + "get": { + "tags": [ + "MetricsSource" + ], + "summary": "List the metrics accounts under a given monitor resource.", + "operationId": "MetricsSource_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": { + "MetricsSource_List": { + "$ref": "./examples/MetricsSource_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/metricsSource/{metricsSourceName}": { + "put": { + "tags": [ + "MetricsSource" + ], + "summary": "Create metrics account under a given monitor resource. This create operation can take upto 10 minutes to complete.", + "operationId": "MetricsSource_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/MetricsSourceNameParameter" + }, + { + "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": { + "metricsSource_Create": { + "$ref": "./examples/MetricsSource_Create.json" + } + } + }, + "get": { + "tags": [ + "MetricsSource" + ], + "summary": "Get a metrics account under a given monitor resource.", + "operationId": "MetricsSource_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/MetricsSourceNameParameter" + }, + { + "$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": { + "MetricsSource_Get": { + "$ref": "./examples/MetricsSource_Get.json" + } + } + }, + "delete": { + "tags": [ + "MetricsSource" + ], + "summary": "Delete a metrics account resource.", + "operationId": "MetricsSource_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/MetricsSourceNameParameter" + }, + { + "$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": { + "MetricsSource_Delete": { + "$ref": "./examples/MetricsSource_Delete.json" + } + } + }, + "patch": { + "tags": [ + "MetricsSource" + ], + "summary": "Update a metrics resource.", + "operationId": "MetricsSource_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/MetricsSourceNameParameter" + }, + { + "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": { + "MetricsSource_Update": { + "$ref": "./examples/MetricsSource_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/metricsSource/{metricsSourceName}/tagRules": { + "get": { + "tags": [ + "TagRules" + ], + "summary": "List the tag rules for a given metrics resource.", + "operationId": "MetricsSourceTagRules_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/MetricsSourceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MetricsTagRulesListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "MetricsSourceTagRules_List": { + "$ref": "./examples/MetricsSourceTagRules_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/metricsSource/{metricsSourceName}/tagRules/{ruleSetName}": { + "put": { + "tags": [ + "TagRules" + ], + "summary": "Create or update a tag rule set for a given metrics resource.", + "operationId": "MetricsSourceTagRules_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/MetricsSourceNameParameter" + }, + { + "in": "path", + "name": "ruleSetName", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/MetricsTagRules" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MetricsTagRules" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MetricsSourceTagRules_CreateOrUpdate": { + "$ref": "./examples/MetricsSourceTagRules_CreateOrUpdate.json" + } + } + }, + "get": { + "tags": [ + "TagRules" + ], + "summary": "Get a tag rule set for a given metrics resource.", + "operationId": "MetricsSourceTagRules_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/MetricsSourceNameParameter" + }, + { + "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/MetricsTagRules" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MetricsAccountTagRules_Get": { + "$ref": "./examples/MetricsSourceTagRules_Get.json" + } + } + }, + "delete": { + "tags": [ + "TagRules" + ], + "summary": "Delete a tag rule set for a given metrics resource.", + "operationId": "MetricsSourceTagRules_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/MetricsSourceNameParameter" + }, + { + "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/MetricsSourceTagRules_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/vmHostPayload": { + "post": { + "tags": [ + "VM_Host" + ], + "summary": "Returns the payload that needs to be passed in the request body for installing Logz.io agent on a VM.", + "operationId": "Monitor_VMHostPayload", + "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/VMExtensionPayload" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MainAccount_VMHosts_Payload": { + "$ref": "./examples/MainAccount_VMHosts_Payload.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/vmHostUpdate": { + "post": { + "tags": [ + "VM_Host" + ], + "summary": "Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.", + "operationId": "Monitor_ListVmHostUpdate", + "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" + }, + { + "in": "body", + "name": "body", + "description": "Request body to update the collection for agent installed in the given monitor.", + "schema": { + "$ref": "#/definitions/VMHostUpdateRequest" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/VMResourcesListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "MainAccount_VMHosts_Update": { + "$ref": "./examples/MainAccount_VMHosts_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/listVMHosts": { + "post": { + "tags": [ + "VM_Host" + ], + "summary": "List the compute resources currently being monitored by the Logz main account resource.", + "operationId": "Monitor_ListVMHosts", + "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/VMResourcesListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "MainAccount_VMHosts_List": { + "$ref": "./examples/MainAccount_VMHosts_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/listUserRoles": { + "post": { + "tags": [ + "Monitors" + ], + "summary": "List the user's roles configured on Logz.io side for the account corresponding to the monitor resource.", + "operationId": "Monitors_ListUserRoles", + "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" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/UserRoleRequest" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/UserRoleListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "MainAccount_VMHosts_Update": { + "$ref": "./examples/MainAccount_listUserRoles.json" + } + } + } + } + }, + "definitions": { + "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" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "display": { + "$ref": "#/definitions/OperationDisplay" + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + } + } + }, + "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" + ], + "description": "Flag specifying if the resource provisioning state as tracked by ARM.", + "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", + "default": "Enabled", + "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", + "default": "Active", + "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" + }, + "singleSignOnUrl": { + "description": "The login URL specific to this Logz Organization.", + "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", + "x-ms-mutability": [ + "create", + "read" + ] + } + } + }, + "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": { + "id": { + "description": "ARM id of the monitor resource.", + "type": "string", + "readOnly": true + }, + "systemData": { + "readOnly": true, + "description": "The system metadata relating to this resource", + "$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" + } + } + }, + "LogzMetricsResource": { + "required": [ + "location" + ], + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "ARM id of the metrics resource.", + "type": "string", + "readOnly": true + }, + "systemData": { + "readOnly": true, + "description": "The system metadata relating to this resource", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "name": { + "description": "Name of the metrics resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the metrics 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" + } + } + }, + "LogzMetricsResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/LogzMetricsResource" + } + }, + "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" + } + } + } + }, + "LogzMetricsResourceUpdateParameters": { + "description": "The parameters for a PATCH request to a metrics resource.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/MonitorUpdateProperties" + }, + "tags": { + "description": "The new tags of the metrics 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" + } + } + } + }, + "MetricRules": { + "description": "Set of rules for sending metrics for the Monitor resource.", + "type": "object", + "properties": { + "subscriptionId": { + "description": "Subscription Id for which filtering tags are applicable", + "type": "string" + }, + "filteringTags": { + "description": "List of filtering tags to be used for capturing metrics. 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" + }, + "x-ms-identifiers": [] + } + } + }, + "MonitoringTagRulesProperties": { + "description": "Definition of the properties for a TagRules resource.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "logRules": { + "$ref": "#/definitions/LogRules" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + } + }, + "MetricsTagRulesProperties": { + "description": "Definition of the properties for a TagRules resource.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "sendMetrics": { + "description": "Flag specifying if metrics from Azure resources should be sent for the Monitor resource.", + "type": "boolean" + }, + "metricRules": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricRules" + }, + "x-ms-identifiers": [] + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + } + }, + "MonitoringTagRules": { + "description": "Capture logs and metrics of Azure resources based on ARM tags.", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "name": { + "description": "Name of the rule set.", + "type": "string", + "readOnly": true + }, + "id": { + "description": "The id of the rule set.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the rule set.", + "type": "string", + "readOnly": true + }, + "systemData": { + "readOnly": true, + "description": "The system metadata relating to this resource", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "properties": { + "$ref": "#/definitions/MonitoringTagRulesProperties" + } + } + }, + "MetricsTagRules": { + "description": "Capture metrics of Azure resources based on ARM tags.", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "name": { + "description": "Name of the rule set.", + "type": "string", + "readOnly": true + }, + "id": { + "description": "The id of the rule set.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the rule set.", + "type": "string", + "readOnly": true + }, + "systemData": { + "readOnly": true, + "description": "The system metadata relating to this resource", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "properties": { + "$ref": "#/definitions/MetricsTagRulesProperties" + } + } + }, + "MonitoringTagRulesListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "MetricsTagRulesListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/MetricsTagRules" + } + }, + "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" + } + } + }, + "VMExtensionPayload": { + "description": "Response of payload to be passed while installing VM agent.", + "type": "object", + "properties": { + "apiKey": { + "description": "API Key corresponding to the resource.", + "type": "string", + "x-ms-secret": true + }, + "region": { + "description": "Logz.io region where the resource has been created.", + "type": "string" + } + } + }, + "VMHostUpdateState": { + "description": "Various states of the updating vm extension on resource", + "enum": [ + "Install", + "Delete" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "VMHostUpdateStates" + } + }, + "VMResources": { + "description": "VM Resource Ids", + "type": "object", + "properties": { + "id": { + "description": "Request of a list vm host update operation.", + "type": "string" + }, + "agentVersion": { + "description": "Version of the Logz agent installed on the VM.", + "type": "string" + } + } + }, + "VMHostUpdateRequest": { + "description": "Request of a list VM Host Update Operation.", + "type": "object", + "properties": { + "vmResourceIds": { + "description": "Request of a list vm host update operation.", + "type": "array", + "items": { + "$ref": "#/definitions/VMResources" + } + }, + "state": { + "description": "Specifies the state of the operation - install/ delete.", + "$ref": "#/definitions/VMHostUpdateState" + } + } + }, + "VMResourcesListResponse": { + "description": "Response of a list VM Host Update Operation.", + "type": "object", + "properties": { + "value": { + "description": "Response of a list vm host update operation.", + "type": "array", + "items": { + "$ref": "#/definitions/VMResources" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "UserRoleRequest": { + "description": "Request for checking user's role for Logz.io account.", + "type": "object", + "properties": { + "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" + } + } + }, + "UserRole": { + "description": "User roles on configured in Logz.io account.", + "enum": [ + "None", + "User", + "Admin" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "UserRole" + } + }, + "UserRoleResponse": { + "description": "Response for checking user's role for Logz.io account.", + "type": "object", + "properties": { + "role": { + "$ref": "#/definitions/UserRole" + } + } + }, + "UserRoleListResponse": { + "description": "Response for list of user's role for Logz.io account.", + "type": "object", + "properties": { + "value": { + "description": "List of user roles for Logz.io account.", + "type": "array", + "items": { + "$ref": "#/definitions/UserRoleResponse" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + } + }, + "parameters": { + "MonitorNameParameter": { + "in": "path", + "name": "monitorName", + "description": "Monitor resource name", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "SubAccountNameParameter": { + "in": "path", + "name": "subAccountName", + "description": "Sub Account resource name", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "MetricsSourceNameParameter": { + "in": "path", + "name": "metricsSourceName", + "description": "Metrics Account resource name", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/logz/resource-manager/Microsoft.Logz/stable/2020-10-01/logz.json b/specification/logz/resource-manager/Microsoft.Logz/stable/2020-10-01/logz.json index 4bbd299b05ac..b23a156c7cf7 100644 --- a/specification/logz/resource-manager/Microsoft.Logz/stable/2020-10-01/logz.json +++ b/specification/logz/resource-manager/Microsoft.Logz/stable/2020-10-01/logz.json @@ -84,6 +84,11 @@ "produces": [ "application/json" ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], "responses": { "200": { "description": "Success", diff --git a/specification/logz/resource-manager/readme.md b/specification/logz/resource-manager/readme.md index 136bbb34190d..05b74ac37a5b 100644 --- a/specification/logz/resource-manager/readme.md +++ b/specification/logz/resource-manager/readme.md @@ -30,6 +30,17 @@ openapi-subtype: rpaas tag: package-2020-10-01 ``` +### Tag: package-2022-01-01-preview + +These settings apply only when `--tag=package-2022-01-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2022-01-01-preview' +input-file: + - Microsoft.Logz/preview/2022-01-01-preview/logz.json +``` + +--- + ### Tag: package-2020-10-01-preview These settings apply only when `--tag=package-2020-10-01-preview` is specified on the command line. @@ -72,6 +83,12 @@ swagger-to-sdk: ## Suppression ``` directive: + - suppress: SECRET_PROPERTY + from: + - Microsoft.Logz/preview/2022-01-01-preview/logz.json + where: + - $.definitions.VMExtensionPayload.properties.apiKey + reason: Secrets are OK to return in a POST response. - suppress: SECRET_PROPERTY from: - Microsoft.Logz/preview/2020-10-01-preview/logz.json