From d12191b28f14c0a6f38df5a7a2daf5fc1468dd89 Mon Sep 17 00:00:00 2001 From: Jing-song Date: Wed, 18 Dec 2024 17:01:04 +0800 Subject: [PATCH] html --- .../2021-05-01-preview.json | 315 +-- .../2021-05-01-preview.json | 1866 +---------------- .../2021-05-01-preview.xml | 6 +- 3 files changed, 5 insertions(+), 2182 deletions(-) diff --git a/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kaWFnbm9zdGljc2V0dGluZ3M=/2021-05-01-preview.json b/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kaWFnbm9zdGljc2V0dGluZ3M=/2021-05-01-preview.json index f24b96293..c06f616c8 100644 --- a/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kaWFnbm9zdGljc2V0dGluZ3M=/2021-05-01-preview.json +++ b/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kaWFnbm9zdGljc2V0dGluZ3M=/2021-05-01-preview.json @@ -1,314 +1 @@ -{ - "plane": "mgmt-plane", - "resources": [ - { - "id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings", - "version": "2021-05-01-preview", - "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3M=/V/MjAyMS0wNS0wMS1wcmV2aWV3" - } - ], - "commandGroups": [ - { - "name": "monitor diagnostic-settings", - "commands": [ - { - "name": "list", - "version": "2021-05-01-preview", - "resources": [ - { - "id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings", - "version": "2021-05-01-preview", - "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3M=/V/MjAyMS0wNS0wMS1wcmV2aWV3" - } - ], - "argGroups": [ - { - "name": "", - "args": [ - { - "type": "string", - "var": "$Path.resourceUri", - "options": [ - "resource" - ], - "required": true, - "group": "", - "help": { - "short": "Name or ID of the target resource." - } - } - ] - } - ], - "operations": [ - { - "operationId": "DiagnosticSettings_List", - "http": { - "path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings", - "request": { - "method": "get", - "path": { - "params": [ - { - "type": "string", - "name": "resourceUri", - "arg": "$Path.resourceUri", - "required": true, - "skipUrlEncoding": true - } - ] - }, - "query": { - "consts": [ - { - "readOnly": true, - "const": true, - "default": { - "value": "2021-05-01-preview" - }, - "type": "string", - "name": "api-version", - "required": true, - "format": { - "minLength": 1 - } - } - ] - } - }, - "responses": [ - { - "statusCode": [ - 200 - ], - "body": { - "json": { - "var": "$Instance", - "schema": { - "type": "object", - "props": [ - { - "type": "array", - "name": "value", - "item": { - "type": "object", - "props": [ - { - "readOnly": true, - "type": "ResourceId", - "name": "id", - "format": { - "template": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{}" - } - }, - { - "readOnly": true, - "type": "string", - "name": "name" - }, - { - "type": "object", - "name": "properties", - "props": [ - { - "type": "string", - "name": "eventHubAuthorizationRuleId" - }, - { - "type": "string", - "name": "eventHubName" - }, - { - "type": "string", - "name": "logAnalyticsDestinationType" - }, - { - "type": "array", - "name": "logs", - "item": { - "type": "object", - "props": [ - { - "type": "string", - "name": "category" - }, - { - "type": "string", - "name": "categoryGroup" - }, - { - "type": "boolean", - "name": "enabled", - "required": true - }, - { - "type": "@RetentionPolicy_read", - "name": "retentionPolicy" - } - ] - } - }, - { - "type": "string", - "name": "marketplacePartnerId" - }, - { - "type": "array", - "name": "metrics", - "item": { - "type": "object", - "props": [ - { - "type": "string", - "name": "category" - }, - { - "type": "boolean", - "name": "enabled", - "required": true - }, - { - "type": "object", - "name": "retentionPolicy", - "props": [ - { - "type": "integer32", - "name": "days", - "required": true, - "format": { - "minimum": 0 - } - }, - { - "type": "boolean", - "name": "enabled", - "required": true - } - ], - "cls": "RetentionPolicy_read" - }, - { - "type": "duration", - "name": "timeGrain" - } - ] - } - }, - { - "type": "string", - "name": "serviceBusRuleId" - }, - { - "type": "string", - "name": "storageAccountId" - }, - { - "type": "string", - "name": "workspaceId" - } - ], - "clientFlatten": true - }, - { - "readOnly": true, - "type": "object", - "name": "systemData", - "props": [ - { - "type": "dateTime", - "name": "createdAt" - }, - { - "type": "string", - "name": "createdBy" - }, - { - "type": "string", - "name": "createdByType", - "enum": { - "items": [ - { - "value": "Application" - }, - { - "value": "Key" - }, - { - "value": "ManagedIdentity" - }, - { - "value": "User" - } - ] - } - }, - { - "type": "dateTime", - "name": "lastModifiedAt" - }, - { - "type": "string", - "name": "lastModifiedBy" - }, - { - "type": "string", - "name": "lastModifiedByType", - "enum": { - "items": [ - { - "value": "Application" - }, - { - "value": "Key" - }, - { - "value": "ManagedIdentity" - }, - { - "value": "User" - } - ] - } - } - ] - }, - { - "readOnly": true, - "type": "string", - "name": "type" - } - ] - } - } - ] - } - } - } - }, - { - "isError": true, - "body": { - "json": { - "schema": { - "type": "@ODataV4Format" - } - } - } - } - ] - } - } - ], - "outputs": [ - { - "type": "array", - "ref": "$Instance.value", - "clientFlatten": true - } - ], - "confirmation": "" - } - ] - } - ] -} \ No newline at end of file +{"plane": "mgmt-plane", "resources": [{"id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings", "version": "2021-05-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3M=/V/MjAyMS0wNS0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "monitor diagnostic-settings", "commands": [{"name": "list", "version": "2021-05-01-preview", "resources": [{"id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings", "version": "2021-05-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3M=/V/MjAyMS0wNS0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.resourceUri", "options": ["resource"], "required": true, "group": "", "help": {"short": "Name or ID of the target resource."}}]}], "operations": [{"operationId": "DiagnosticSettings_List", "http": {"path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceUri", "arg": "$Path.resourceUri", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2021-05-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "eventHubAuthorizationRuleId"}, {"type": "string", "name": "eventHubName"}, {"type": "string", "name": "logAnalyticsDestinationType"}, {"type": "array", "name": "logs", "item": {"type": "object", "props": [{"type": "string", "name": "category"}, {"type": "string", "name": "categoryGroup"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "@RetentionPolicy_read", "name": "retentionPolicy"}]}}, {"type": "string", "name": "marketplacePartnerId"}, {"type": "array", "name": "metrics", "item": {"type": "object", "props": [{"type": "string", "name": "category"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "object", "name": "retentionPolicy", "props": [{"type": "integer32", "name": "days", "required": true, "format": {"minimum": 0}}, {"type": "boolean", "name": "enabled", "required": true}], "cls": "RetentionPolicy_read"}, {"type": "duration", "name": "timeGrain"}]}}, {"type": "string", "name": "serviceBusRuleId"}, {"type": "string", "name": "storageAccountId"}, {"type": "string", "name": "workspaceId"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kaWFnbm9zdGljc2V0dGluZ3Mve30=/2021-05-01-preview.json b/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kaWFnbm9zdGljc2V0dGluZ3Mve30=/2021-05-01-preview.json index 01cc0056e..617c7ab24 100644 --- a/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kaWFnbm9zdGljc2V0dGluZ3Mve30=/2021-05-01-preview.json +++ b/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kaWFnbm9zdGljc2V0dGluZ3Mve30=/2021-05-01-preview.json @@ -1,1865 +1 @@ -{ - "plane": "mgmt-plane", - "resources": [ - { - "id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings/{}", - "version": "2021-05-01-preview", - "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3Mve25hbWV9/V/MjAyMS0wNS0wMS1wcmV2aWV3" - } - ], - "commandGroups": [ - { - "name": "monitor diagnostic-settings", - "commands": [ - { - "name": "show", - "version": "2021-05-01-preview", - "resources": [ - { - "id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings/{}", - "version": "2021-05-01-preview", - "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3Mve25hbWV9/V/MjAyMS0wNS0wMS1wcmV2aWV3" - } - ], - "argGroups": [ - { - "name": "", - "args": [ - { - "type": "string", - "var": "$Path.name", - "options": [ - "n", - "name" - ], - "required": true, - "group": "", - "help": { - "short": "The name of the diagnostic setting. Required." - } - } - ] - }, - { - "name": "Target Resource", - "args": [ - { - "type": "string", - "var": "$Path.resourceUri", - "options": [ - "resource" - ], - "required": true, - "group": "Target Resource", - "help": { - "short": "Name or ID of the target resource." - } - } - ] - } - ], - "operations": [ - { - "operationId": "DiagnosticSettings_Get", - "http": { - "path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}", - "request": { - "method": "get", - "path": { - "params": [ - { - "type": "string", - "name": "name", - "arg": "$Path.name", - "required": true - }, - { - "type": "string", - "name": "resourceUri", - "arg": "$Path.resourceUri", - "required": true, - "skipUrlEncoding": true - } - ] - }, - "query": { - "consts": [ - { - "readOnly": true, - "const": true, - "default": { - "value": "2021-05-01-preview" - }, - "type": "string", - "name": "api-version", - "required": true, - "format": { - "minLength": 1 - } - } - ] - } - }, - "responses": [ - { - "statusCode": [ - 200 - ], - "body": { - "json": { - "var": "$Instance", - "schema": { - "type": "object", - "props": [ - { - "readOnly": true, - "type": "ResourceId", - "name": "id", - "format": { - "template": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{}" - } - }, - { - "readOnly": true, - "type": "string", - "name": "name" - }, - { - "type": "object", - "name": "properties", - "props": [ - { - "type": "string", - "name": "eventHubAuthorizationRuleId" - }, - { - "type": "string", - "name": "eventHubName" - }, - { - "type": "string", - "name": "logAnalyticsDestinationType" - }, - { - "type": "array", - "name": "logs", - "item": { - "type": "object", - "props": [ - { - "type": "string", - "name": "category" - }, - { - "type": "string", - "name": "categoryGroup" - }, - { - "type": "boolean", - "name": "enabled", - "required": true - }, - { - "type": "@RetentionPolicy_read", - "name": "retentionPolicy" - } - ] - } - }, - { - "type": "string", - "name": "marketplacePartnerId" - }, - { - "type": "array", - "name": "metrics", - "item": { - "type": "object", - "props": [ - { - "type": "string", - "name": "category" - }, - { - "type": "boolean", - "name": "enabled", - "required": true - }, - { - "type": "object", - "name": "retentionPolicy", - "props": [ - { - "type": "integer32", - "name": "days", - "required": true, - "format": { - "minimum": 0 - } - }, - { - "type": "boolean", - "name": "enabled", - "required": true - } - ], - "cls": "RetentionPolicy_read" - }, - { - "type": "duration", - "name": "timeGrain" - } - ] - } - }, - { - "type": "string", - "name": "serviceBusRuleId" - }, - { - "type": "string", - "name": "storageAccountId" - }, - { - "type": "string", - "name": "workspaceId" - } - ], - "clientFlatten": true - }, - { - "readOnly": true, - "type": "object", - "name": "systemData", - "props": [ - { - "type": "dateTime", - "name": "createdAt" - }, - { - "type": "string", - "name": "createdBy" - }, - { - "type": "string", - "name": "createdByType", - "enum": { - "items": [ - { - "value": "Application" - }, - { - "value": "Key" - }, - { - "value": "ManagedIdentity" - }, - { - "value": "User" - } - ] - } - }, - { - "type": "dateTime", - "name": "lastModifiedAt" - }, - { - "type": "string", - "name": "lastModifiedBy" - }, - { - "type": "string", - "name": "lastModifiedByType", - "enum": { - "items": [ - { - "value": "Application" - }, - { - "value": "Key" - }, - { - "value": "ManagedIdentity" - }, - { - "value": "User" - } - ] - } - } - ] - }, - { - "readOnly": true, - "type": "string", - "name": "type" - } - ] - } - } - } - }, - { - "isError": true, - "body": { - "json": { - "schema": { - "type": "@ODataV4Format" - } - } - } - } - ] - } - } - ], - "outputs": [ - { - "type": "object", - "ref": "$Instance", - "clientFlatten": true - } - ], - "confirmation": "" - }, - { - "name": "delete", - "version": "2021-05-01-preview", - "resources": [ - { - "id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings/{}", - "version": "2021-05-01-preview", - "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3Mve25hbWV9/V/MjAyMS0wNS0wMS1wcmV2aWV3" - } - ], - "argGroups": [ - { - "name": "", - "args": [ - { - "type": "string", - "var": "$Path.name", - "options": [ - "n", - "name" - ], - "required": true, - "group": "", - "help": { - "short": "The name of the diagnostic setting. Required." - } - } - ] - }, - { - "name": "Target Resource", - "args": [ - { - "type": "string", - "var": "$Path.resourceUri", - "options": [ - "resource" - ], - "required": true, - "group": "Target Resource", - "help": { - "short": "Name or ID of the target resource." - } - } - ] - } - ], - "operations": [ - { - "operationId": "DiagnosticSettings_Delete", - "http": { - "path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}", - "request": { - "method": "delete", - "path": { - "params": [ - { - "type": "string", - "name": "name", - "arg": "$Path.name", - "required": true - }, - { - "type": "string", - "name": "resourceUri", - "arg": "$Path.resourceUri", - "required": true, - "skipUrlEncoding": true - } - ] - }, - "query": { - "consts": [ - { - "readOnly": true, - "const": true, - "default": { - "value": "2021-05-01-preview" - }, - "type": "string", - "name": "api-version", - "required": true, - "format": { - "minLength": 1 - } - } - ] - } - }, - "responses": [ - { - "statusCode": [ - 200 - ] - }, - { - "statusCode": [ - 204 - ] - }, - { - "isError": true, - "body": { - "json": { - "schema": { - "type": "@ODataV4Format" - } - } - } - } - ] - } - } - ], - "confirmation": "" - }, - { - "name": "create", - "version": "2021-05-01-preview", - "resources": [ - { - "id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings/{}", - "version": "2021-05-01-preview", - "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3Mve25hbWV9/V/MjAyMS0wNS0wMS1wcmV2aWV3" - } - ], - "argGroups": [ - { - "name": "", - "args": [ - { - "type": "string", - "var": "$Path.name", - "options": [ - "n", - "name" - ], - "required": true, - "group": "", - "help": { - "short": "The name of the diagnostic setting. Required." - } - }, - { - "type": "string", - "var": "$parameters.properties.eventHubAuthorizationRuleId", - "options": [ - "event-hub-rule" - ], - "group": "", - "help": { - "short": "Name or ID of the event hub authorization rule." - } - }, - { - "type": "string", - "var": "$parameters.properties.eventHubName", - "options": [ - "event-hub" - ], - "group": "", - "help": { - "short": "Name or ID an event hub. If none is specified, the default event hub will be selected." - } - }, - { - "type": "string", - "var": "$parameters.properties.logAnalyticsDestinationType", - "options": [ - "log-analytics-destination-type" - ], - "group": "", - "help": { - "short": "A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: _. Possible values are: Dedicated and null (null is default.)" - } - }, - { - "type": "array", - "var": "$parameters.properties.logs", - "options": [ - "logs" - ], - "group": "", - "help": { - "short": "JSON encoded list of logs settings. Use '@{file}' to load from a file.For more information, visit: https://learn.microsoft.com/rest/api/monitor/diagnosticsettings/createorupdate#logsettings." - }, - "item": { - "type": "object", - "args": [ - { - "type": "string", - "var": "$parameters.properties.logs[].category", - "options": [ - "category" - ], - "help": { - "short": "Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation." - } - }, - { - "type": "string", - "var": "$parameters.properties.logs[].categoryGroup", - "options": [ - "category-group" - ], - "help": { - "short": "Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation." - } - }, - { - "type": "boolean", - "var": "$parameters.properties.logs[].enabled", - "options": [ - "enabled" - ], - "required": true, - "help": { - "short": "a value indicating whether this log is enabled." - } - }, - { - "type": "@RetentionPolicy_create", - "var": "$parameters.properties.logs[].retentionPolicy", - "options": [ - "retention-policy" - ], - "help": { - "short": "the retention policy for this log." - } - } - ] - } - }, - { - "type": "string", - "var": "$parameters.properties.marketplacePartnerId", - "options": [ - "marketplace-partner-id" - ], - "group": "", - "help": { - "short": "The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs." - } - }, - { - "type": "array", - "var": "$parameters.properties.metrics", - "options": [ - "metrics" - ], - "group": "", - "help": { - "short": "The list of metric settings." - }, - "item": { - "type": "object", - "args": [ - { - "type": "string", - "var": "$parameters.properties.metrics[].category", - "options": [ - "category" - ], - "help": { - "short": "Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation." - } - }, - { - "type": "boolean", - "var": "$parameters.properties.metrics[].enabled", - "options": [ - "enabled" - ], - "required": true, - "help": { - "short": "a value indicating whether this category is enabled." - } - }, - { - "type": "object", - "var": "$parameters.properties.metrics[].retentionPolicy", - "options": [ - "retention-policy" - ], - "help": { - "short": "the retention policy for this category." - }, - "args": [ - { - "type": "integer32", - "var": "@RetentionPolicy_create.days", - "options": [ - "days" - ], - "required": true, - "help": { - "short": "the number of days for the retention in days. A value of 0 will retain the events indefinitely." - }, - "format": { - "minimum": 0 - } - }, - { - "type": "boolean", - "var": "@RetentionPolicy_create.enabled", - "options": [ - "enabled" - ], - "required": true, - "help": { - "short": "a value indicating whether the retention policy is enabled." - } - } - ], - "cls": "RetentionPolicy_create" - }, - { - "type": "duration", - "var": "$parameters.properties.metrics[].timeGrain", - "options": [ - "time-grain" - ], - "help": { - "short": "the timegrain of the metric in ISO8601 format." - } - } - ] - } - }, - { - "type": "string", - "var": "$parameters.properties.serviceBusRuleId", - "options": [ - "service-bus-rule-id" - ], - "group": "", - "help": { - "short": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility." - } - }, - { - "type": "string", - "var": "$parameters.properties.storageAccountId", - "options": [ - "storage-account" - ], - "group": "", - "help": { - "short": "Name or ID of the storage account to send diagnostic logs to." - } - }, - { - "type": "string", - "var": "$parameters.properties.workspaceId", - "options": [ - "workspace" - ], - "group": "", - "help": { - "short": "Name or ID of the Log Analytics workspace to send diagnostic logs to." - } - } - ] - }, - { - "name": "Target Resource", - "args": [ - { - "type": "string", - "var": "$Path.resourceUri", - "options": [ - "resource" - ], - "required": true, - "group": "Target Resource", - "help": { - "short": "Name or ID of the target resource." - } - } - ] - } - ], - "operations": [ - { - "operationId": "DiagnosticSettings_CreateOrUpdate", - "http": { - "path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}", - "request": { - "method": "put", - "path": { - "params": [ - { - "type": "string", - "name": "name", - "arg": "$Path.name", - "required": true - }, - { - "type": "string", - "name": "resourceUri", - "arg": "$Path.resourceUri", - "required": true, - "skipUrlEncoding": true - } - ] - }, - "query": { - "consts": [ - { - "readOnly": true, - "const": true, - "default": { - "value": "2021-05-01-preview" - }, - "type": "string", - "name": "api-version", - "required": true, - "format": { - "minLength": 1 - } - } - ] - }, - "body": { - "json": { - "schema": { - "type": "object", - "name": "parameters", - "required": true, - "props": [ - { - "type": "object", - "name": "properties", - "props": [ - { - "type": "string", - "name": "eventHubAuthorizationRuleId", - "arg": "$parameters.properties.eventHubAuthorizationRuleId" - }, - { - "type": "string", - "name": "eventHubName", - "arg": "$parameters.properties.eventHubName" - }, - { - "type": "string", - "name": "logAnalyticsDestinationType", - "arg": "$parameters.properties.logAnalyticsDestinationType" - }, - { - "type": "array", - "name": "logs", - "arg": "$parameters.properties.logs", - "item": { - "type": "object", - "props": [ - { - "type": "string", - "name": "category", - "arg": "$parameters.properties.logs[].category" - }, - { - "type": "string", - "name": "categoryGroup", - "arg": "$parameters.properties.logs[].categoryGroup" - }, - { - "type": "boolean", - "name": "enabled", - "arg": "$parameters.properties.logs[].enabled", - "required": true - }, - { - "type": "@RetentionPolicy_create", - "name": "retentionPolicy", - "arg": "$parameters.properties.logs[].retentionPolicy" - } - ] - } - }, - { - "type": "string", - "name": "marketplacePartnerId", - "arg": "$parameters.properties.marketplacePartnerId" - }, - { - "type": "array", - "name": "metrics", - "arg": "$parameters.properties.metrics", - "item": { - "type": "object", - "props": [ - { - "type": "string", - "name": "category", - "arg": "$parameters.properties.metrics[].category" - }, - { - "type": "boolean", - "name": "enabled", - "arg": "$parameters.properties.metrics[].enabled", - "required": true - }, - { - "type": "object", - "name": "retentionPolicy", - "arg": "$parameters.properties.metrics[].retentionPolicy", - "props": [ - { - "type": "integer32", - "name": "days", - "arg": "@RetentionPolicy_create.days", - "required": true, - "format": { - "minimum": 0 - } - }, - { - "type": "boolean", - "name": "enabled", - "arg": "@RetentionPolicy_create.enabled", - "required": true - } - ], - "cls": "RetentionPolicy_create" - }, - { - "type": "duration", - "name": "timeGrain", - "arg": "$parameters.properties.metrics[].timeGrain" - } - ] - } - }, - { - "type": "string", - "name": "serviceBusRuleId", - "arg": "$parameters.properties.serviceBusRuleId" - }, - { - "type": "string", - "name": "storageAccountId", - "arg": "$parameters.properties.storageAccountId" - }, - { - "type": "string", - "name": "workspaceId", - "arg": "$parameters.properties.workspaceId" - } - ], - "clientFlatten": true - } - ], - "clientFlatten": true - } - } - } - }, - "responses": [ - { - "statusCode": [ - 200 - ], - "body": { - "json": { - "var": "$Instance", - "schema": { - "type": "object", - "props": [ - { - "readOnly": true, - "type": "ResourceId", - "name": "id", - "format": { - "template": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{}" - } - }, - { - "readOnly": true, - "type": "string", - "name": "name" - }, - { - "type": "object", - "name": "properties", - "props": [ - { - "type": "string", - "name": "eventHubAuthorizationRuleId" - }, - { - "type": "string", - "name": "eventHubName" - }, - { - "type": "string", - "name": "logAnalyticsDestinationType" - }, - { - "type": "array", - "name": "logs", - "item": { - "type": "object", - "props": [ - { - "type": "string", - "name": "category" - }, - { - "type": "string", - "name": "categoryGroup" - }, - { - "type": "boolean", - "name": "enabled", - "required": true - }, - { - "type": "@RetentionPolicy_read", - "name": "retentionPolicy" - } - ] - } - }, - { - "type": "string", - "name": "marketplacePartnerId" - }, - { - "type": "array", - "name": "metrics", - "item": { - "type": "object", - "props": [ - { - "type": "string", - "name": "category" - }, - { - "type": "boolean", - "name": "enabled", - "required": true - }, - { - "type": "object", - "name": "retentionPolicy", - "props": [ - { - "type": "integer32", - "name": "days", - "required": true, - "format": { - "minimum": 0 - } - }, - { - "type": "boolean", - "name": "enabled", - "required": true - } - ], - "cls": "RetentionPolicy_read" - }, - { - "type": "duration", - "name": "timeGrain" - } - ] - } - }, - { - "type": "string", - "name": "serviceBusRuleId" - }, - { - "type": "string", - "name": "storageAccountId" - }, - { - "type": "string", - "name": "workspaceId" - } - ], - "clientFlatten": true - }, - { - "readOnly": true, - "type": "object", - "name": "systemData", - "props": [ - { - "type": "dateTime", - "name": "createdAt" - }, - { - "type": "string", - "name": "createdBy" - }, - { - "type": "string", - "name": "createdByType", - "enum": { - "items": [ - { - "value": "Application" - }, - { - "value": "Key" - }, - { - "value": "ManagedIdentity" - }, - { - "value": "User" - } - ] - } - }, - { - "type": "dateTime", - "name": "lastModifiedAt" - }, - { - "type": "string", - "name": "lastModifiedBy" - }, - { - "type": "string", - "name": "lastModifiedByType", - "enum": { - "items": [ - { - "value": "Application" - }, - { - "value": "Key" - }, - { - "value": "ManagedIdentity" - }, - { - "value": "User" - } - ] - } - } - ] - }, - { - "readOnly": true, - "type": "string", - "name": "type" - } - ] - } - } - } - }, - { - "isError": true, - "body": { - "json": { - "schema": { - "type": "@ODataV4Format" - } - } - } - } - ] - } - } - ], - "outputs": [ - { - "type": "object", - "ref": "$Instance", - "clientFlatten": true - } - ], - "confirmation": "" - }, - { - "name": "update", - "version": "2021-05-01-preview", - "resources": [ - { - "id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings/{}", - "version": "2021-05-01-preview", - "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3Mve25hbWV9/V/MjAyMS0wNS0wMS1wcmV2aWV3" - } - ], - "argGroups": [ - { - "name": "", - "args": [ - { - "type": "string", - "var": "$Path.name", - "options": [ - "n", - "name" - ], - "required": true, - "group": "", - "help": { - "short": "The name of the diagnostic setting. Required." - } - }, - { - "type": "string", - "var": "$Path.resourceUri", - "options": [ - "resource" - ], - "required": true, - "group": "", - "help": { - "short": "Name or ID of the target resource." - } - } - ] - }, - { - "name": "Properties", - "args": [ - { - "nullable": true, - "type": "string", - "var": "$parameters.properties.eventHubAuthorizationRuleId", - "options": [ - "event-hub-rule" - ], - "group": "Properties", - "help": { - "short": "The resource Id for the event hub authorization rule." - } - }, - { - "nullable": true, - "type": "string", - "var": "$parameters.properties.eventHubName", - "options": [ - "event-hub" - ], - "group": "Properties", - "help": { - "short": "The name of the event hub. If none is specified, the default event hub will be selected." - } - }, - { - "nullable": true, - "type": "string", - "var": "$parameters.properties.logAnalyticsDestinationType", - "options": [ - "log-analytics-destination-type" - ], - "group": "Properties", - "help": { - "short": "A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: _. Possible values are: Dedicated and null (null is default.)" - } - }, - { - "nullable": true, - "type": "array", - "var": "$parameters.properties.logs", - "options": [ - "logs" - ], - "group": "Properties", - "help": { - "short": "The list of logs settings." - }, - "item": { - "nullable": true, - "type": "object", - "args": [ - { - "nullable": true, - "type": "string", - "var": "$parameters.properties.logs[].category", - "options": [ - "category" - ], - "help": { - "short": "Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation." - } - }, - { - "nullable": true, - "type": "string", - "var": "$parameters.properties.logs[].categoryGroup", - "options": [ - "category-group" - ], - "help": { - "short": "Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation." - } - }, - { - "type": "boolean", - "var": "$parameters.properties.logs[].enabled", - "options": [ - "enabled" - ], - "help": { - "short": "a value indicating whether this log is enabled." - } - }, - { - "nullable": true, - "type": "@RetentionPolicy_update", - "var": "$parameters.properties.logs[].retentionPolicy", - "options": [ - "retention-policy" - ], - "help": { - "short": "the retention policy for this log." - } - } - ] - } - }, - { - "nullable": true, - "type": "string", - "var": "$parameters.properties.marketplacePartnerId", - "options": [ - "marketplace-partner-id" - ], - "group": "Properties", - "help": { - "short": "The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs." - } - }, - { - "nullable": true, - "type": "array", - "var": "$parameters.properties.metrics", - "options": [ - "metrics" - ], - "group": "Properties", - "help": { - "short": "The list of metric settings." - }, - "item": { - "nullable": true, - "type": "object", - "args": [ - { - "nullable": true, - "type": "string", - "var": "$parameters.properties.metrics[].category", - "options": [ - "category" - ], - "help": { - "short": "Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation." - } - }, - { - "type": "boolean", - "var": "$parameters.properties.metrics[].enabled", - "options": [ - "enabled" - ], - "help": { - "short": "a value indicating whether this category is enabled." - } - }, - { - "nullable": true, - "type": "object", - "var": "$parameters.properties.metrics[].retentionPolicy", - "options": [ - "retention-policy" - ], - "help": { - "short": "the retention policy for this category." - }, - "args": [ - { - "type": "integer32", - "var": "@RetentionPolicy_update.days", - "options": [ - "days" - ], - "help": { - "short": "the number of days for the retention in days. A value of 0 will retain the events indefinitely." - }, - "format": { - "minimum": 0 - } - }, - { - "type": "boolean", - "var": "@RetentionPolicy_update.enabled", - "options": [ - "enabled" - ], - "help": { - "short": "a value indicating whether the retention policy is enabled." - } - } - ], - "cls": "RetentionPolicy_update" - }, - { - "nullable": true, - "type": "duration", - "var": "$parameters.properties.metrics[].timeGrain", - "options": [ - "time-grain" - ], - "help": { - "short": "the timegrain of the metric in ISO8601 format." - } - } - ] - } - }, - { - "nullable": true, - "type": "string", - "var": "$parameters.properties.serviceBusRuleId", - "options": [ - "service-bus-rule-id" - ], - "group": "Properties", - "help": { - "short": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility." - } - }, - { - "nullable": true, - "type": "string", - "var": "$parameters.properties.storageAccountId", - "options": [ - "storage-account-id" - ], - "group": "Properties", - "help": { - "short": "The resource ID of the storage account to which you would like to send Diagnostic Logs." - } - }, - { - "nullable": true, - "type": "string", - "var": "$parameters.properties.workspaceId", - "options": [ - "workspace-id" - ], - "group": "Properties", - "help": { - "short": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2" - } - } - ] - } - ], - "operations": [ - { - "operationId": "DiagnosticSettings_Get", - "http": { - "path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}", - "request": { - "method": "get", - "path": { - "params": [ - { - "type": "string", - "name": "name", - "arg": "$Path.name", - "required": true - }, - { - "type": "string", - "name": "resourceUri", - "arg": "$Path.resourceUri", - "required": true, - "skipUrlEncoding": true - } - ] - }, - "query": { - "consts": [ - { - "readOnly": true, - "const": true, - "default": { - "value": "2021-05-01-preview" - }, - "type": "string", - "name": "api-version", - "required": true, - "format": { - "minLength": 1 - } - } - ] - } - }, - "responses": [ - { - "statusCode": [ - 200 - ], - "body": { - "json": { - "var": "$Instance", - "schema": { - "type": "object", - "props": [ - { - "readOnly": true, - "type": "ResourceId", - "name": "id", - "format": { - "template": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{}" - } - }, - { - "readOnly": true, - "type": "string", - "name": "name" - }, - { - "type": "object", - "name": "properties", - "props": [ - { - "type": "string", - "name": "eventHubAuthorizationRuleId" - }, - { - "type": "string", - "name": "eventHubName" - }, - { - "type": "string", - "name": "logAnalyticsDestinationType" - }, - { - "type": "array", - "name": "logs", - "item": { - "type": "object", - "props": [ - { - "type": "string", - "name": "category" - }, - { - "type": "string", - "name": "categoryGroup" - }, - { - "type": "boolean", - "name": "enabled", - "required": true - }, - { - "type": "@RetentionPolicy_read", - "name": "retentionPolicy" - } - ] - } - }, - { - "type": "string", - "name": "marketplacePartnerId" - }, - { - "type": "array", - "name": "metrics", - "item": { - "type": "object", - "props": [ - { - "type": "string", - "name": "category" - }, - { - "type": "boolean", - "name": "enabled", - "required": true - }, - { - "type": "object", - "name": "retentionPolicy", - "props": [ - { - "type": "integer32", - "name": "days", - "required": true, - "format": { - "minimum": 0 - } - }, - { - "type": "boolean", - "name": "enabled", - "required": true - } - ], - "cls": "RetentionPolicy_read" - }, - { - "type": "duration", - "name": "timeGrain" - } - ] - } - }, - { - "type": "string", - "name": "serviceBusRuleId" - }, - { - "type": "string", - "name": "storageAccountId" - }, - { - "type": "string", - "name": "workspaceId" - } - ], - "clientFlatten": true - }, - { - "readOnly": true, - "type": "object", - "name": "systemData", - "props": [ - { - "type": "dateTime", - "name": "createdAt" - }, - { - "type": "string", - "name": "createdBy" - }, - { - "type": "string", - "name": "createdByType", - "enum": { - "items": [ - { - "value": "Application" - }, - { - "value": "Key" - }, - { - "value": "ManagedIdentity" - }, - { - "value": "User" - } - ] - } - }, - { - "type": "dateTime", - "name": "lastModifiedAt" - }, - { - "type": "string", - "name": "lastModifiedBy" - }, - { - "type": "string", - "name": "lastModifiedByType", - "enum": { - "items": [ - { - "value": "Application" - }, - { - "value": "Key" - }, - { - "value": "ManagedIdentity" - }, - { - "value": "User" - } - ] - } - } - ] - }, - { - "readOnly": true, - "type": "string", - "name": "type" - } - ], - "cls": "DiagnosticSettingsResource_read" - } - } - } - }, - { - "isError": true, - "body": { - "json": { - "schema": { - "type": "@ODataV4Format" - } - } - } - } - ] - } - }, - { - "instanceUpdate": { - "instance": "$Instance", - "json": { - "schema": { - "type": "object", - "name": "parameters", - "required": true, - "props": [ - { - "type": "object", - "name": "properties", - "props": [ - { - "type": "string", - "name": "eventHubAuthorizationRuleId", - "arg": "$parameters.properties.eventHubAuthorizationRuleId" - }, - { - "type": "string", - "name": "eventHubName", - "arg": "$parameters.properties.eventHubName" - }, - { - "type": "string", - "name": "logAnalyticsDestinationType", - "arg": "$parameters.properties.logAnalyticsDestinationType" - }, - { - "type": "array", - "name": "logs", - "arg": "$parameters.properties.logs", - "item": { - "type": "object", - "props": [ - { - "type": "string", - "name": "category", - "arg": "$parameters.properties.logs[].category" - }, - { - "type": "string", - "name": "categoryGroup", - "arg": "$parameters.properties.logs[].categoryGroup" - }, - { - "type": "boolean", - "name": "enabled", - "arg": "$parameters.properties.logs[].enabled", - "required": true - }, - { - "type": "@RetentionPolicy_update", - "name": "retentionPolicy", - "arg": "$parameters.properties.logs[].retentionPolicy" - } - ] - } - }, - { - "type": "string", - "name": "marketplacePartnerId", - "arg": "$parameters.properties.marketplacePartnerId" - }, - { - "type": "array", - "name": "metrics", - "arg": "$parameters.properties.metrics", - "item": { - "type": "object", - "props": [ - { - "type": "string", - "name": "category", - "arg": "$parameters.properties.metrics[].category" - }, - { - "type": "boolean", - "name": "enabled", - "arg": "$parameters.properties.metrics[].enabled", - "required": true - }, - { - "type": "object", - "name": "retentionPolicy", - "arg": "$parameters.properties.metrics[].retentionPolicy", - "props": [ - { - "type": "integer32", - "name": "days", - "arg": "@RetentionPolicy_update.days", - "required": true, - "format": { - "minimum": 0 - } - }, - { - "type": "boolean", - "name": "enabled", - "arg": "@RetentionPolicy_update.enabled", - "required": true - } - ], - "cls": "RetentionPolicy_update" - }, - { - "type": "duration", - "name": "timeGrain", - "arg": "$parameters.properties.metrics[].timeGrain" - } - ] - } - }, - { - "type": "string", - "name": "serviceBusRuleId", - "arg": "$parameters.properties.serviceBusRuleId" - }, - { - "type": "string", - "name": "storageAccountId", - "arg": "$parameters.properties.storageAccountId" - }, - { - "type": "string", - "name": "workspaceId", - "arg": "$parameters.properties.workspaceId" - } - ], - "clientFlatten": true - } - ], - "clientFlatten": true - } - } - } - }, - { - "operationId": "DiagnosticSettings_CreateOrUpdate", - "http": { - "path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}", - "request": { - "method": "put", - "path": { - "params": [ - { - "type": "string", - "name": "name", - "arg": "$Path.name", - "required": true - }, - { - "type": "string", - "name": "resourceUri", - "arg": "$Path.resourceUri", - "required": true, - "skipUrlEncoding": true - } - ] - }, - "query": { - "consts": [ - { - "readOnly": true, - "const": true, - "default": { - "value": "2021-05-01-preview" - }, - "type": "string", - "name": "api-version", - "required": true, - "format": { - "minLength": 1 - } - } - ] - }, - "body": { - "json": { - "ref": "$Instance" - } - } - }, - "responses": [ - { - "statusCode": [ - 200 - ], - "body": { - "json": { - "var": "$Instance", - "schema": { - "type": "@DiagnosticSettingsResource_read" - } - } - } - }, - { - "isError": true, - "body": { - "json": { - "schema": { - "type": "@ODataV4Format" - } - } - } - } - ] - } - } - ], - "outputs": [ - { - "type": "object", - "ref": "$Instance", - "clientFlatten": true - } - ], - "confirmation": "" - } - ] - } - ] -} \ No newline at end of file +{"plane": "mgmt-plane", "resources": [{"id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings/{}", "version": "2021-05-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3Mve25hbWV9/V/MjAyMS0wNS0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "monitor diagnostic-settings", "commands": [{"name": "show", "version": "2021-05-01-preview", "resources": [{"id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings/{}", "version": "2021-05-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3Mve25hbWV9/V/MjAyMS0wNS0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.name", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the diagnostic setting. Required."}}]}, {"name": "Target Resource", "args": [{"type": "string", "var": "$Path.resourceUri", "options": ["resource"], "required": true, "group": "Target Resource", "help": {"short": "Name or ID of the target resource."}}]}], "operations": [{"operationId": "DiagnosticSettings_Get", "http": {"path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "name", "arg": "$Path.name", "required": true}, {"type": "string", "name": "resourceUri", "arg": "$Path.resourceUri", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2021-05-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "eventHubAuthorizationRuleId"}, {"type": "string", "name": "eventHubName"}, {"type": "string", "name": "logAnalyticsDestinationType"}, {"type": "array", "name": "logs", "item": {"type": "object", "props": [{"type": "string", "name": "category"}, {"type": "string", "name": "categoryGroup"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "@RetentionPolicy_read", "name": "retentionPolicy"}]}}, {"type": "string", "name": "marketplacePartnerId"}, {"type": "array", "name": "metrics", "item": {"type": "object", "props": [{"type": "string", "name": "category"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "object", "name": "retentionPolicy", "props": [{"type": "integer32", "name": "days", "required": true, "format": {"minimum": 0}}, {"type": "boolean", "name": "enabled", "required": true}], "cls": "RetentionPolicy_read"}, {"type": "duration", "name": "timeGrain"}]}}, {"type": "string", "name": "serviceBusRuleId"}, {"type": "string", "name": "storageAccountId"}, {"type": "string", "name": "workspaceId"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2021-05-01-preview", "resources": [{"id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings/{}", "version": "2021-05-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3Mve25hbWV9/V/MjAyMS0wNS0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.name", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the diagnostic setting. Required."}}]}, {"name": "Target Resource", "args": [{"type": "string", "var": "$Path.resourceUri", "options": ["resource"], "required": true, "group": "Target Resource", "help": {"short": "Name or ID of the target resource."}}]}], "operations": [{"operationId": "DiagnosticSettings_Delete", "http": {"path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "name", "arg": "$Path.name", "required": true}, {"type": "string", "name": "resourceUri", "arg": "$Path.resourceUri", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2021-05-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2021-05-01-preview", "resources": [{"id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings/{}", "version": "2021-05-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3Mve25hbWV9/V/MjAyMS0wNS0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.name", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the diagnostic setting. Required."}}, {"type": "string", "var": "$parameters.properties.eventHubAuthorizationRuleId", "options": ["event-hub-rule"], "group": "", "help": {"short": "Name or ID of the event hub authorization rule."}}, {"type": "string", "var": "$parameters.properties.eventHubName", "options": ["event-hub"], "group": "", "help": {"short": "Name or ID an event hub. If none is specified, the default event hub will be selected."}}, {"type": "string", "var": "$parameters.properties.logAnalyticsDestinationType", "options": ["log-analytics-destination-type"], "group": "", "help": {"short": "A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: `_`. Possible values are: Dedicated and null (null is default.)"}}, {"type": "array", "var": "$parameters.properties.logs", "options": ["logs"], "group": "", "help": {"short": "JSON encoded list of logs settings. Use '@{file}' to load from a file.For more information, visit: https://learn.microsoft.com/rest/api/monitor/diagnosticsettings/createorupdate#logsettings."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.logs[].category", "options": ["category"], "help": {"short": "Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation."}}, {"type": "string", "var": "$parameters.properties.logs[].categoryGroup", "options": ["category-group"], "help": {"short": "Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation."}}, {"type": "boolean", "var": "$parameters.properties.logs[].enabled", "options": ["enabled"], "required": true, "help": {"short": "a value indicating whether this log is enabled."}}, {"type": "@RetentionPolicy_create", "var": "$parameters.properties.logs[].retentionPolicy", "options": ["retention-policy"], "help": {"short": "the retention policy for this log."}}]}}, {"type": "string", "var": "$parameters.properties.marketplacePartnerId", "options": ["marketplace-partner-id"], "group": "", "help": {"short": "The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs."}}, {"type": "array", "var": "$parameters.properties.metrics", "options": ["metrics"], "group": "", "help": {"short": "The list of metric settings."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.metrics[].category", "options": ["category"], "help": {"short": "Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation."}}, {"type": "boolean", "var": "$parameters.properties.metrics[].enabled", "options": ["enabled"], "required": true, "help": {"short": "a value indicating whether this category is enabled."}}, {"type": "object", "var": "$parameters.properties.metrics[].retentionPolicy", "options": ["retention-policy"], "help": {"short": "the retention policy for this category."}, "args": [{"type": "integer32", "var": "@RetentionPolicy_create.days", "options": ["days"], "required": true, "help": {"short": "the number of days for the retention in days. A value of 0 will retain the events indefinitely."}, "format": {"minimum": 0}}, {"type": "boolean", "var": "@RetentionPolicy_create.enabled", "options": ["enabled"], "required": true, "help": {"short": "a value indicating whether the retention policy is enabled."}}], "cls": "RetentionPolicy_create"}, {"type": "duration", "var": "$parameters.properties.metrics[].timeGrain", "options": ["time-grain"], "help": {"short": "the timegrain of the metric in ISO8601 format."}}]}}, {"type": "string", "var": "$parameters.properties.serviceBusRuleId", "options": ["service-bus-rule-id"], "group": "", "help": {"short": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility."}}, {"type": "string", "var": "$parameters.properties.storageAccountId", "options": ["storage-account"], "group": "", "help": {"short": "Name or ID of the storage account to send diagnostic logs to."}}, {"type": "string", "var": "$parameters.properties.workspaceId", "options": ["workspace"], "group": "", "help": {"short": "Name or ID of the Log Analytics workspace to send diagnostic logs to."}}]}, {"name": "Target Resource", "args": [{"type": "string", "var": "$Path.resourceUri", "options": ["resource"], "required": true, "group": "Target Resource", "help": {"short": "Name or ID of the target resource."}}]}], "operations": [{"operationId": "DiagnosticSettings_CreateOrUpdate", "http": {"path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "name", "arg": "$Path.name", "required": true}, {"type": "string", "name": "resourceUri", "arg": "$Path.resourceUri", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2021-05-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "string", "name": "eventHubAuthorizationRuleId", "arg": "$parameters.properties.eventHubAuthorizationRuleId"}, {"type": "string", "name": "eventHubName", "arg": "$parameters.properties.eventHubName"}, {"type": "string", "name": "logAnalyticsDestinationType", "arg": "$parameters.properties.logAnalyticsDestinationType"}, {"type": "array", "name": "logs", "arg": "$parameters.properties.logs", "item": {"type": "object", "props": [{"type": "string", "name": "category", "arg": "$parameters.properties.logs[].category"}, {"type": "string", "name": "categoryGroup", "arg": "$parameters.properties.logs[].categoryGroup"}, {"type": "boolean", "name": "enabled", "arg": "$parameters.properties.logs[].enabled", "required": true}, {"type": "@RetentionPolicy_create", "name": "retentionPolicy", "arg": "$parameters.properties.logs[].retentionPolicy"}]}}, {"type": "string", "name": "marketplacePartnerId", "arg": "$parameters.properties.marketplacePartnerId"}, {"type": "array", "name": "metrics", "arg": "$parameters.properties.metrics", "item": {"type": "object", "props": [{"type": "string", "name": "category", "arg": "$parameters.properties.metrics[].category"}, {"type": "boolean", "name": "enabled", "arg": "$parameters.properties.metrics[].enabled", "required": true}, {"type": "object", "name": "retentionPolicy", "arg": "$parameters.properties.metrics[].retentionPolicy", "props": [{"type": "integer32", "name": "days", "arg": "@RetentionPolicy_create.days", "required": true, "format": {"minimum": 0}}, {"type": "boolean", "name": "enabled", "arg": "@RetentionPolicy_create.enabled", "required": true}], "cls": "RetentionPolicy_create"}, {"type": "duration", "name": "timeGrain", "arg": "$parameters.properties.metrics[].timeGrain"}]}}, {"type": "string", "name": "serviceBusRuleId", "arg": "$parameters.properties.serviceBusRuleId"}, {"type": "string", "name": "storageAccountId", "arg": "$parameters.properties.storageAccountId"}, {"type": "string", "name": "workspaceId", "arg": "$parameters.properties.workspaceId"}], "clientFlatten": true}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "eventHubAuthorizationRuleId"}, {"type": "string", "name": "eventHubName"}, {"type": "string", "name": "logAnalyticsDestinationType"}, {"type": "array", "name": "logs", "item": {"type": "object", "props": [{"type": "string", "name": "category"}, {"type": "string", "name": "categoryGroup"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "@RetentionPolicy_read", "name": "retentionPolicy"}]}}, {"type": "string", "name": "marketplacePartnerId"}, {"type": "array", "name": "metrics", "item": {"type": "object", "props": [{"type": "string", "name": "category"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "object", "name": "retentionPolicy", "props": [{"type": "integer32", "name": "days", "required": true, "format": {"minimum": 0}}, {"type": "boolean", "name": "enabled", "required": true}], "cls": "RetentionPolicy_read"}, {"type": "duration", "name": "timeGrain"}]}}, {"type": "string", "name": "serviceBusRuleId"}, {"type": "string", "name": "storageAccountId"}, {"type": "string", "name": "workspaceId"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2021-05-01-preview", "resources": [{"id": "/{resourceuri}/providers/microsoft.insights/diagnosticsettings/{}", "version": "2021-05-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3tyZXNvdXJjZVVyaX0vcHJvdmlkZXJzL01pY3Jvc29mdC5JbnNpZ2h0cy9kaWFnbm9zdGljU2V0dGluZ3Mve25hbWV9/V/MjAyMS0wNS0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.name", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the diagnostic setting. Required."}}, {"type": "string", "var": "$Path.resourceUri", "options": ["resource"], "required": true, "group": "", "help": {"short": "Name or ID of the target resource."}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.eventHubAuthorizationRuleId", "options": ["event-hub-rule"], "group": "Properties", "help": {"short": "The resource Id for the event hub authorization rule."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.eventHubName", "options": ["event-hub"], "group": "Properties", "help": {"short": "The name of the event hub. If none is specified, the default event hub will be selected."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.logAnalyticsDestinationType", "options": ["log-analytics-destination-type"], "group": "Properties", "help": {"short": "A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: `_`. Possible values are: Dedicated and null (null is default.)"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.logs", "options": ["logs"], "group": "Properties", "help": {"short": "The list of logs settings."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.logs[].category", "options": ["category"], "help": {"short": "Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.logs[].categoryGroup", "options": ["category-group"], "help": {"short": "Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation."}}, {"type": "boolean", "var": "$parameters.properties.logs[].enabled", "options": ["enabled"], "help": {"short": "a value indicating whether this log is enabled."}}, {"nullable": true, "type": "@RetentionPolicy_update", "var": "$parameters.properties.logs[].retentionPolicy", "options": ["retention-policy"], "help": {"short": "the retention policy for this log."}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.marketplacePartnerId", "options": ["marketplace-partner-id"], "group": "Properties", "help": {"short": "The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.metrics", "options": ["metrics"], "group": "Properties", "help": {"short": "The list of metric settings."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.metrics[].category", "options": ["category"], "help": {"short": "Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation."}}, {"type": "boolean", "var": "$parameters.properties.metrics[].enabled", "options": ["enabled"], "help": {"short": "a value indicating whether this category is enabled."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.metrics[].retentionPolicy", "options": ["retention-policy"], "help": {"short": "the retention policy for this category."}, "args": [{"type": "integer32", "var": "@RetentionPolicy_update.days", "options": ["days"], "help": {"short": "the number of days for the retention in days. A value of 0 will retain the events indefinitely."}, "format": {"minimum": 0}}, {"type": "boolean", "var": "@RetentionPolicy_update.enabled", "options": ["enabled"], "help": {"short": "a value indicating whether the retention policy is enabled."}}], "cls": "RetentionPolicy_update"}, {"nullable": true, "type": "duration", "var": "$parameters.properties.metrics[].timeGrain", "options": ["time-grain"], "help": {"short": "the timegrain of the metric in ISO8601 format."}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.serviceBusRuleId", "options": ["service-bus-rule-id"], "group": "Properties", "help": {"short": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.storageAccountId", "options": ["storage-account-id"], "group": "Properties", "help": {"short": "The resource ID of the storage account to which you would like to send Diagnostic Logs."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.workspaceId", "options": ["workspace-id"], "group": "Properties", "help": {"short": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2"}}]}], "operations": [{"operationId": "DiagnosticSettings_Get", "http": {"path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "name", "arg": "$Path.name", "required": true}, {"type": "string", "name": "resourceUri", "arg": "$Path.resourceUri", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2021-05-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "eventHubAuthorizationRuleId"}, {"type": "string", "name": "eventHubName"}, {"type": "string", "name": "logAnalyticsDestinationType"}, {"type": "array", "name": "logs", "item": {"type": "object", "props": [{"type": "string", "name": "category"}, {"type": "string", "name": "categoryGroup"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "@RetentionPolicy_read", "name": "retentionPolicy"}]}}, {"type": "string", "name": "marketplacePartnerId"}, {"type": "array", "name": "metrics", "item": {"type": "object", "props": [{"type": "string", "name": "category"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "object", "name": "retentionPolicy", "props": [{"type": "integer32", "name": "days", "required": true, "format": {"minimum": 0}}, {"type": "boolean", "name": "enabled", "required": true}], "cls": "RetentionPolicy_read"}, {"type": "duration", "name": "timeGrain"}]}}, {"type": "string", "name": "serviceBusRuleId"}, {"type": "string", "name": "storageAccountId"}, {"type": "string", "name": "workspaceId"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "DiagnosticSettingsResource_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "string", "name": "eventHubAuthorizationRuleId", "arg": "$parameters.properties.eventHubAuthorizationRuleId"}, {"type": "string", "name": "eventHubName", "arg": "$parameters.properties.eventHubName"}, {"type": "string", "name": "logAnalyticsDestinationType", "arg": "$parameters.properties.logAnalyticsDestinationType"}, {"type": "array", "name": "logs", "arg": "$parameters.properties.logs", "item": {"type": "object", "props": [{"type": "string", "name": "category", "arg": "$parameters.properties.logs[].category"}, {"type": "string", "name": "categoryGroup", "arg": "$parameters.properties.logs[].categoryGroup"}, {"type": "boolean", "name": "enabled", "arg": "$parameters.properties.logs[].enabled", "required": true}, {"type": "@RetentionPolicy_update", "name": "retentionPolicy", "arg": "$parameters.properties.logs[].retentionPolicy"}]}}, {"type": "string", "name": "marketplacePartnerId", "arg": "$parameters.properties.marketplacePartnerId"}, {"type": "array", "name": "metrics", "arg": "$parameters.properties.metrics", "item": {"type": "object", "props": [{"type": "string", "name": "category", "arg": "$parameters.properties.metrics[].category"}, {"type": "boolean", "name": "enabled", "arg": "$parameters.properties.metrics[].enabled", "required": true}, {"type": "object", "name": "retentionPolicy", "arg": "$parameters.properties.metrics[].retentionPolicy", "props": [{"type": "integer32", "name": "days", "arg": "@RetentionPolicy_update.days", "required": true, "format": {"minimum": 0}}, {"type": "boolean", "name": "enabled", "arg": "@RetentionPolicy_update.enabled", "required": true}], "cls": "RetentionPolicy_update"}, {"type": "duration", "name": "timeGrain", "arg": "$parameters.properties.metrics[].timeGrain"}]}}, {"type": "string", "name": "serviceBusRuleId", "arg": "$parameters.properties.serviceBusRuleId"}, {"type": "string", "name": "storageAccountId", "arg": "$parameters.properties.storageAccountId"}, {"type": "string", "name": "workspaceId", "arg": "$parameters.properties.workspaceId"}], "clientFlatten": true}], "clientFlatten": true}}}}, {"operationId": "DiagnosticSettings_CreateOrUpdate", "http": {"path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "name", "arg": "$Path.name", "required": true}, {"type": "string", "name": "resourceUri", "arg": "$Path.resourceUri", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2021-05-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "@DiagnosticSettingsResource_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kaWFnbm9zdGljc2V0dGluZ3Mve30=/2021-05-01-preview.xml b/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kaWFnbm9zdGljc2V0dGluZ3Mve30=/2021-05-01-preview.xml index 89b6d577c..6791cdb20 100644 --- a/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kaWFnbm9zdGljc2V0dGluZ3Mve30=/2021-05-01-preview.xml +++ b/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kaWFnbm9zdGljc2V0dGluZ3Mve30=/2021-05-01-preview.xml @@ -155,7 +155,7 @@ - + @@ -360,7 +360,7 @@ - + @@ -505,7 +505,7 @@ - +