From cdad81ba208f5778a7a20f9a8725f7b00810381b Mon Sep 17 00:00:00 2001 From: Dudi Likvornik Date: Thu, 12 Nov 2020 12:01:45 +0200 Subject: [PATCH 1/7] Updating property name. --- .../stable/2020-10-01/Clusters.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json index c826a847e3b9..a02be9a25df2 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json @@ -489,8 +489,8 @@ "description": "The version of the key associated with the Log Analytics cluster.", "type": "string" }, - "rsaKeySize": { - "description": "Selected key minimum required key size.", + "keyRsaSize": { + "description": "Selected key minimum required size.", "type": "integer", "format": "int32", "x-ms-mutability": [ From cc6935dbde4b45754053043f2b35c7153bf96c48 Mon Sep 17 00:00:00 2001 From: Dudi Likvornik Date: Thu, 12 Nov 2020 12:06:19 +0200 Subject: [PATCH 2/7] example update. --- .../stable/2020-10-01/examples/ClustersUpdate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json index 186db9b99bba..fd44b5a58f93 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json @@ -14,7 +14,7 @@ "keyVaultUri": "https://aztest2170.vault.azure.net", "keyName": "aztest2170cert", "keyVersion": "654ft6c4e63845cbb50fd6fg51540429", - "rsaKeySize": 1024 + "keyRsaSize": 1024 } }, "sku": { From ea704b29e22e46f1ec9b5615103e372089ea07c2 Mon Sep 17 00:00:00 2001 From: Dudi Likvornik Date: Sun, 15 Nov 2020 22:42:03 +0200 Subject: [PATCH 3/7] Adding force cmk to workspace. --- .../stable/2020-10-01/Workspaces.json | 611 ++++++++++++++++++ .../WorkspacesAvailableServiceTiers.json | 30 + .../2020-10-01/examples/WorkspacesCreate.json | 65 ++ .../2020-10-01/examples/WorkspacesDelete.json | 13 + .../WorkspacesDeleteSavedSearches.json | 13 + .../WorkspacesDisableIntelligencePack.json | 12 + .../WorkspacesEnableIntelligencePack.json | 12 + .../examples/WorkspacesGatewaysDelete.json | 12 + .../2020-10-01/examples/WorkspacesGet.json | 46 ++ .../examples/WorkspacesGetSharedKeys.json | 16 + .../WorkspacesListByResourceGroup.json | 32 + .../WorkspacesListIntelligencePacks.json | 244 +++++++ .../WorkspacesListManagementGroups.json | 15 + .../examples/WorkspacesListUsages.json | 27 + .../2020-10-01/examples/WorkspacesPurge.json | 28 + .../examples/WorkspacesPurgeOperation.json | 16 + .../WorkspacesRegenerateSharedKeys.json | 16 + ...WorkspacesSavedSearchesCreateOrUpdate.json | 42 ++ .../examples/WorkspacesSavedSearchesGet.json | 26 + .../examples/WorkspacesSubscriptionList.json | 31 + .../2020-10-01/examples/WorkspacesUpdate.json | 34 + .../readme.azureresourceschema.md | 1 + .../resource-manager/readme.md | 1 + 23 files changed, 1343 insertions(+) create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesAvailableServiceTiers.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesCreate.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDelete.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDeleteSavedSearches.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDisableIntelligencePack.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesEnableIntelligencePack.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGatewaysDelete.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGet.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGetSharedKeys.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListByResourceGroup.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListIntelligencePacks.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListManagementGroups.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListUsages.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurge.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurgeOperation.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesRegenerateSharedKeys.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesCreateOrUpdate.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesGet.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSubscriptionList.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesUpdate.json diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json new file mode 100644 index 000000000000..59892d76ba55 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json @@ -0,0 +1,611 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Log Analytics", + "description": "Azure Log Analytics API reference", + "version": "2020-10-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/workspaces": { + "get": { + "tags": [ + "Workspaces" + ], + "x-ms-examples": { + "WorkspacesSubscriptionList": { + "$ref": "./examples/WorkspacesSubscriptionList.json" + } + }, + "operationId": "Workspaces_List", + "description": "Gets the workspaces in a subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/WorkspaceListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces": { + "get": { + "tags": [ + "Workspaces" + ], + "x-ms-examples": { + "WorkspacesGet": { + "$ref": "./examples/WorkspacesListByResourceGroup.json" + } + }, + "operationId": "Workspaces_ListByResourceGroup", + "description": "Gets workspaces in a resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/WorkspaceListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}": { + "put": { + "tags": [ + "Workspaces" + ], + "x-ms-examples": { + "WorkspacesCreate": { + "$ref": "./examples/WorkspacesCreate.json" + } + }, + "operationId": "Workspaces_CreateOrUpdate", + "description": "Create or update a workspace.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Workspace" + }, + "description": "The parameters required to create or update a workspace." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Workspace" + } + }, + "201": { + "description": "Created response definition.", + "schema": { + "$ref": "#/definitions/Workspace" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Workspaces" + ], + "x-ms-examples": { + "WorkspacesDelete": { + "$ref": "./examples/WorkspacesDelete.json" + } + }, + "operationId": "Workspaces_Delete", + "description": "Deletes a workspace resource. To recover the workspace, create it again with the same name, in the same subscription, resource group and location. The name is kept for 14 days and cannot be used for another workspace. To remove the workspace completely and release the name, use the force flag.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "force", + "in": "query", + "required": false, + "type": "boolean", + "description": "Deletes the workspace without the recovery option. A workspace that was deleted with this flag cannot be recovered." + } + ], + "responses": { + "200": { + "description": "OK response definition." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent response definition." + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Workspaces" + ], + "x-ms-examples": { + "WorkspaceGet": { + "$ref": "./examples/WorkspacesGet.json" + } + }, + "operationId": "Workspaces_Get", + "description": "Gets a workspace instance.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Workspace" + } + } + } + }, + "patch": { + "tags": [ + "Workspaces" + ], + "x-ms-examples": { + "WorkspacesPatch": { + "$ref": "./examples/WorkspacesUpdate.json" + } + }, + "operationId": "Workspaces_Update", + "description": "Updates a workspace.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WorkspacePatch" + }, + "description": "The parameters required to patch a workspace." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The existing workspace was successfully updated. Check provisioningStatus to see detailed status.", + "schema": { + "$ref": "#/definitions/Workspace" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces": { + "get": { + "tags": [ + "DeletedWorkspaces" + ], + "x-ms-examples": { + "WorkspacesSubscriptionList": { + "$ref": "./examples/WorkspacesSubscriptionList.json" + } + }, + "operationId": "DeletedWorkspaces_List", + "description": "Gets recently deleted workspaces in a subscription, available for recovery.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/WorkspaceListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces": { + "get": { + "tags": [ + "DeletedWorkspaces" + ], + "x-ms-examples": { + "WorkspacesGet": { + "$ref": "./examples/WorkspacesListByResourceGroup.json" + } + }, + "operationId": "DeletedWorkspaces_ListByResourceGroup", + "description": "Gets recently deleted workspaces in a resource group, available for recovery.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/WorkspaceListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + } + }, + "definitions": { + "WorkspaceSku": { + "properties": { + "name": { + "type": "string", + "description": "The name of the SKU.", + "enum": [ + "Free", + "Standard", + "Premium", + "PerNode", + "PerGB2018", + "Standalone", + "CapacityReservation" + ], + "x-ms-enum": { + "name": "WorkspaceSkuNameEnum", + "modelAsString": true + } + }, + "capacityReservationLevel": { + "type": "integer", + "format": "int32", + "description": "The capacity reservation level for this workspace, when CapacityReservation sku is selected." + }, + "maxCapacityReservationLevel": { + "type": "integer", + "format": "int32", + "description": "The maximum capacity reservation level available for this workspace, when CapacityReservation sku is selected.", + "readOnly": true + }, + "lastSkuUpdate": { + "type": "string", + "description": "The last time when the sku was updated.", + "readOnly": true + } + }, + "required": [ + "name" + ], + "description": "The SKU (tier) of a workspace." + }, + "WorkspaceCapping": { + "description": "The daily volume cap for ingestion.", + "properties": { + "dailyQuotaGb": { + "type": "number", + "format": "double", + "description": "The workspace daily quota for ingestion." + }, + "quotaNextResetTime": { + "type": "string", + "description": "The time when the quota will be rest.", + "readOnly": true + }, + "dataIngestionStatus": { + "type": "string", + "readOnly": true, + "description": "The status of data ingestion for this workspace.", + "enum": [ + "RespectQuota", + "ForceOn", + "ForceOff", + "OverQuota", + "SubscriptionSuspended", + "ApproachingQuota" + ], + "x-ms-enum": { + "name": "DataIngestionStatus", + "modelAsString": true, + "values": [ + { + "value": "RespectQuota", + "description": "Ingestion enabled following daily cap quota reset, or subscription enablement." + }, + { + "value": "ForceOn", + "description": "Ingestion started following service setting change." + }, + { + "value": "ForceOff", + "description": "Ingestion stopped following service setting change." + }, + { + "value": "OverQuota", + "description": "Reached daily cap quota, ingestion stopped." + }, + { + "value": "SubscriptionSuspended", + "description": "Ingestion stopped following suspended subscription." + }, + { + "value": "ApproachingQuota", + "description": "80% of daily cap quota reached." + } + ] + } + } + } + }, + "WorkspaceProperties": { + "properties": { + "provisioningState": { + "type": "string", + "description": "The provisioning state of the workspace.", + "enum": [ + "Creating", + "Succeeded", + "Failed", + "Canceled", + "Deleting", + "ProvisioningAccount", + "Updating" + ], + "x-ms-enum": { + "name": "WorkspaceEntityStatus", + "modelAsString": true + } + }, + "customerId": { + "type": "string", + "description": "This is a read-only property. Represents the ID associated with the workspace.", + "readOnly": true + }, + "sku": { + "$ref": "#/definitions/WorkspaceSku", + "description": "The SKU of the workspace." + }, + "retentionInDays": { + "type": "integer", + "format": "int32", + "minimum": 30, + "maximum": 730, + "description": "The workspace data retention in days, between 30 and 730." + }, + "workspaceCapping": { + "$ref": "#/definitions/WorkspaceCapping", + "description": "The daily volume cap for ingestion." + }, + "publicNetworkAccessForIngestion": { + "description": "The network access type for accessing Log Analytics ingestion.", + "$ref": "#/definitions/PublicNetworkAccessType" + }, + "publicNetworkAccessForQuery": { + "description": "The network access type for accessing Log Analytics query.", + "$ref": "#/definitions/PublicNetworkAccessType" + }, + "forceQueryCmk": { + "type": "boolean", + "description": "Indicates whether customer managed storage is mandatory for query management." + }, + "privateLinkScopedResources": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkScopedResource" + }, + "description": "List of linked private link scope resources." + } + }, + "description": "Workspace properties." + }, + "PrivateLinkScopedResource": { + "properties": { + "resourceId": { + "type": "string", + "description": "The full resource Id of the private link scope resource." + }, + "scopeId": { + "type": "string", + "description": "The private link scope unique Identifier." + } + }, + "description": "The private link scope resource reference." + }, + "Workspace": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/WorkspaceProperties", + "description": "Workspace properties." + }, + "eTag": { + "type": "string", + "description": "The ETag of the workspace." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "The top level Workspace resource container." + }, + "WorkspacePatch": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/WorkspaceProperties", + "description": "Workspace properties." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags. Optional." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "description": "The top level Workspace resource container." + }, + "WorkspaceListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Workspace" + }, + "description": "A list of workspaces." + } + }, + "description": "The list workspaces operation response." + }, + "PublicNetworkAccessType": { + "type": "string", + "description": "The network access type for operating on the Log Analytics Workspace. By default it is Enabled", + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "PublicNetworkAccessType", + "modelAsString": true, + "values": [ + { + "value": "Enabled", + "description": "Enables connectivity to Log Analytics through public DNS." + }, + { + "value": "Disabled", + "description": "Disables public connectivity to Log Analytics through public DNS." + } + ] + } + } + }, + "parameters": {} +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesAvailableServiceTiers.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesAvailableServiceTiers.json new file mode 100644 index 000000000000..159468ff3277 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesAvailableServiceTiers.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "resourceGroupName": "rg1", + "workspaceName": "workspace1", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": [ + { + "serviceTier": "PerNode", + "enabled": true, + "minimumRetention": 7, + "maximumRetention": 30, + "defaultRetention": 7 + }, + { + "serviceTier": "CapacityReservation", + "enabled": true, + "minimumRetention": 30, + "maximumRetention": 300, + "defaultRetention": 30, + "capacityReservationLevel": 200, + "lastSkuUpdate": "2020-02-04T08:55:03.871Z" + } + ] + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesCreate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesCreate.json new file mode 100644 index 000000000000..a866c2dcff7c --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesCreate.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "parameters": { + "properties": { + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30 + }, + "location": "australiasoutheast", + "tags": { + "tag1": "val1" + } + }, + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170", + "name": "AzTest2170", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "australiasoutheast", + "tags": { + "tag1": "val1" + }, + "properties": { + "customerId": "bc089d7b-485c-4aff-a71e-c00f362d8d2f", + "provisioningState": "Creating", + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170", + "name": "AzTest2170", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "australiasoutheast", + "tags": { + "tag1": "val1" + }, + "properties": { + "customerId": "bc089d7b-485c-4aff-a71e-c00f362d8d2f", + "provisioningState": "Creating", + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled" + } + } + }, + "202": {} + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDelete.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDelete.json new file mode 100644 index 000000000000..036cbf224db8 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": {}, + "204": {}, + "202": {} + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDeleteSavedSearches.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDeleteSavedSearches.json new file mode 100644 index 000000000000..b941e8afc4e3 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDeleteSavedSearches.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "resourceGroupName": "TestRG", + "workspaceName": "TestWS", + "savedSearchName": "SavedSearchName", + "api-version": "2020-10-01", + "savedSearchId": "00000000-0000-0000-0000-00000000000", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": {} + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDisableIntelligencePack.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDisableIntelligencePack.json new file mode 100644 index 000000000000..75c9e466569f --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDisableIntelligencePack.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "resourceGroupName": "rg1", + "workspaceName": "TestLinkWS", + "intelligencePackName": "ChangeTracking", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": {} + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesEnableIntelligencePack.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesEnableIntelligencePack.json new file mode 100644 index 000000000000..75c9e466569f --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesEnableIntelligencePack.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "resourceGroupName": "rg1", + "workspaceName": "TestLinkWS", + "intelligencePackName": "ChangeTracking", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": {} + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGatewaysDelete.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGatewaysDelete.json new file mode 100644 index 000000000000..b1a4aafaaaa5 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGatewaysDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "resourceGroupName": "OIAutoRest5123", + "workspaceName": "aztest5048", + "gatewayId": "00000000-0000-0000-0000-00000000000", + "api-version": "2020-10-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGet.json new file mode 100644 index 000000000000..33424f2aa6ca --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGet.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": [ + { + "properties": { + "customerId": "5b02755b-5bf4-430c-9487-45502a2a7e62", + "provisioningState": "Succeeded", + "sku": { + "name": "free" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled" + }, + "id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock", + "name": "TestResourceLock", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "eastus" + }, + { + "properties": { + "customerId": "4884a2fd-b08f-4aa6-bf16-5757df1093fe", + "provisioningState": "Succeeded", + "sku": { + "name": "free" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled" + }, + "id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/southukws", + "name": "SouthUKWS", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "East US" + } + ] + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGetSharedKeys.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGetSharedKeys.json new file mode 100644 index 000000000000..4c42cf6b0bd0 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGetSharedKeys.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "resourceGroupName": "rg1", + "workspaceName": "TestLinkWS", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": { + "primarySharedKey": "BozLY1JnZbxu0jWUQSY8iRPEM8ObmpP8rW+8bUl3+HpDJI+n689SxXgTgU7k1qdxo/WugRLxechxbolAfHM5uA==", + "secondarySharedKey": "7tDt5W0JBrCQKtQA3igfFltLSzJeyr9LmuT+B/ibzd8cdC1neZ1ePOQLBx5NUzc0q2VUIK0cLhWNyFvo/hT8Ww==" + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListByResourceGroup.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListByResourceGroup.json new file mode 100644 index 000000000000..36f65844a206 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListByResourceGroup.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": [ + { + "properties": { + "customerId": "bc089d7b-485c-4aff-a71e-c00f362d8d2f", + "provisioningState": "Succeeded", + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170", + "name": "AzTest2170", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "australiasoutheast", + "tags": { + "tag1": "val1" + } + } + ] + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListIntelligencePacks.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListIntelligencePacks.json new file mode 100644 index 000000000000..8ff8720b69b3 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListIntelligencePacks.json @@ -0,0 +1,244 @@ +{ + "parameters": { + "resourceGroupName": "rg1", + "workspaceName": "TestLinkWS", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": [ + { + "name": "CapacityPerformance", + "enabled": false, + "displayName": "Capacity and Performance" + }, + { + "name": "AzureWebAppsAnalytics", + "enabled": false, + "displayName": "Azure Web Apps Analytics (Preview)" + }, + { + "name": "Security", + "enabled": false, + "displayName": "Security and Audit" + }, + { + "name": "Updates", + "enabled": false, + "displayName": "Update Management" + }, + { + "name": "AntiMalware", + "enabled": false, + "displayName": "Antimalware Assessment" + }, + { + "name": "LogManagement", + "enabled": true, + "displayName": "Log Management" + }, + { + "name": "ChangeTracking", + "enabled": true, + "displayName": "Change Tracking" + }, + { + "name": "SQLAssessment", + "enabled": false, + "displayName": "SQL Assessment" + }, + { + "name": "SCOMAssessment", + "enabled": false, + "displayName": "System Center Operations Manager Assessment (Preview)" + }, + { + "name": "ServiceDesk", + "enabled": false, + "displayName": "IT Service Management Connector(Preview)" + }, + { + "name": "ADAssessment", + "enabled": false, + "displayName": "AD Assessment" + }, + { + "name": "AlertManagement", + "enabled": false, + "displayName": "Alert Management" + }, + { + "name": "AzureAutomation", + "enabled": false, + "displayName": "Azure Automation" + }, + { + "name": "WireData", + "enabled": false, + "displayName": "Wire Data" + }, + { + "name": "SiteRecovery", + "enabled": true, + "displayName": "Azure Site Recovery" + }, + { + "name": "Backup", + "enabled": false, + "displayName": "Backup" + }, + { + "name": "SurfaceHub", + "enabled": false, + "displayName": "Surface Hub" + }, + { + "name": "NetworkMonitoring", + "enabled": false, + "displayName": "Network Performance Monitor" + }, + { + "name": "Containers", + "enabled": false, + "displayName": "Container Monitoring Solution" + }, + { + "name": "ServiceMap", + "enabled": false, + "displayName": "Service Map" + }, + { + "name": "AzureNetworking", + "enabled": false, + "displayName": "Azure Networking Analytics (Deprecated)" + }, + { + "name": "ADReplication", + "enabled": false, + "displayName": "AD Replication Status" + }, + { + "name": "Office365", + "enabled": false, + "displayName": "Office 365 (Preview)" + }, + { + "name": "CompatibilityAssessment", + "enabled": false, + "displayName": "Upgrade Readiness" + }, + { + "name": "KeyVault", + "enabled": false, + "displayName": "Key Vault (Deprecated)" + }, + { + "name": "ServiceFabric", + "enabled": false, + "displayName": "Service Fabric" + }, + { + "name": "DnsAnalytics", + "enabled": false, + "displayName": "DNS Analytics (Preview)" + }, + { + "name": "ApplicationInsights", + "enabled": false, + "displayName": "Application Insights (Preview)" + }, + { + "name": "WireData2", + "enabled": false, + "displayName": "Wire Data 2.0" + }, + { + "name": "WaaSUpdateInsights", + "enabled": false, + "displayName": "Update Compliance (Preview)" + }, + { + "name": "AgentHealthAssessment", + "enabled": false, + "displayName": "Agent Health " + }, + { + "name": "AzureActivity", + "enabled": false, + "displayName": "Activity Log Analytics" + }, + { + "name": "HDInsight", + "enabled": false, + "displayName": "HDInsight HBase Monitoring (Preview)" + }, + { + "name": "HDInsightKafka", + "enabled": false, + "displayName": "HDInsight Kafka Monitoring" + }, + { + "name": "HDInsightSpark", + "enabled": false, + "displayName": "HDInsight Spark Monitoring" + }, + { + "name": "VMware", + "enabled": false, + "displayName": "VMware (Preview)" + }, + { + "name": "SecurityCenterFree", + "enabled": false, + "displayName": "Security Center Free � for Azure Resources only" + }, + { + "name": "LogicAppsManagement", + "enabled": false, + "displayName": "Logic Apps Management" + }, + { + "name": "LogicAppB2B", + "enabled": false, + "displayName": "Logic Apps B2B" + }, + { + "name": "AzureSQLAnalytics", + "enabled": false, + "displayName": "Azure SQL Analytics (Preview)" + }, + { + "name": "KeyVaultAnalytics", + "enabled": false, + "displayName": "Key Vault Analytics" + }, + { + "name": "AzureNSGAnalytics", + "enabled": false, + "displayName": "Azure Network Security Group Analytics" + }, + { + "name": "AzureAppGatewayAnalytics", + "enabled": false, + "displayName": "Azure Application Gateway Analytics" + }, + { + "name": "DeviceHealthProd", + "enabled": false, + "displayName": "Device Health (Preview)" + }, + { + "name": "WindowsDefenderATP", + "enabled": false, + "displayName": "Windows Defender ATP" + }, + { + "name": "ProcessInvestigator", + "enabled": false, + "displayName": "ProcessInvestigator" + } + ] + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListManagementGroups.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListManagementGroups.json new file mode 100644 index 000000000000..884653c48639 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListManagementGroups.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "resourceGroupName": "rg1", + "workspaceName": "TestLinkWS", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": { + "value": [] + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListUsages.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListUsages.json new file mode 100644 index 000000000000..e59cef295149 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListUsages.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "resourceGroupName": "rg1", + "workspaceName": "TestLinkWS", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": { + "value": "DataAnalyzed", + "localizedValue": "Data Analyzed" + }, + "unit": "Bytes", + "currentValue": 0.0, + "limit": 524288000.0, + "nextResetTime": "2017-10-03T00:00:00Z", + "quotaPeriod": "P1D" + } + ] + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurge.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurge.json new file mode 100644 index 000000000000..2dfe0907888e --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurge.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "resourceGroupName": "OIAutoRest5123", + "workspaceName": "aztest5048", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "body": { + "table": "Heartbeat", + "filters": [ + { + "column": "TimeGenerated", + "operator": ">", + "value": "2017-09-01T00:00:00" + } + ] + } + }, + "responses": { + "202": { + "headers": { + "x-ms-status-location": "https://management.azure.com/subscriptions/b96161de-b34a-480f-7343-59b099299283/resourceGroups/example/providers/microsoft.operationalinsights/workspaces/test/operations/purge-970318e7-b859-4edb-8903-83b1b54d0b74?api-version=2020-10-01" + }, + "body": { + "operationId": "7d7cf277-9113-4ab3-8359-d0364b74d01d" + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurgeOperation.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurgeOperation.json new file mode 100644 index 000000000000..caae9609bb49 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurgeOperation.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "resourceGroupName": "OIAutoRest5123", + "workspaceName": "aztest5048", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "purgeId": "purge-970318e7-b859-4edb-8903-83b1b54d0b74" + }, + "responses": { + "200": { + "body": { + "status": "completed" + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesRegenerateSharedKeys.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesRegenerateSharedKeys.json new file mode 100644 index 000000000000..abb84b5c298d --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesRegenerateSharedKeys.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "resourceGroupName": "rg1", + "workspaceName": "workspace1", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": { + "primarySharedKey": "BozLY1JnZbxu0jWUQSY8iRPEM8ObmpP8rW+8bUl3+HpDJI+n689SxXgTgU7k1qdxo/WugRLxechxbolAfHM5uA==", + "secondarySharedKey": "7tDt5W0JBrCQKtQA3igfFltLSzJeyr9LmuT+B/ibzd8cdC1neZ1ePOQLBx5NUzc0q2VUIK0cLhWNyFvo/hT8Ww==" + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesCreateOrUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesCreateOrUpdate.json new file mode 100644 index 000000000000..5ff2e48226fa --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesCreateOrUpdate.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "resourceGroupName": "TestRG", + "workspaceName": "TestWS", + "savedSearchName": "SavedSearchName", + "parameters": { + "properties": { + "category": "Saved Search Test Category", + "displayName": "Create or Update Saved Search Test", + "version": 2, + "functionAlias": "heartbeat_func", + "functionParameters": "a:int=1", + "query": "Heartbeat | summarize Count() by Computer | take a", + "tags": [ + { + "name": "Group", + "value": "Computer" + } + ] + } + }, + "api-version": "2020-10-01", + "savedSearchId": "00000000-0000-0000-0000-00000000000", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/AtlantisDemo/savedSearches/test-new-saved-search-id-2015", + "etag": "W/\"datetime'2017-10-02T23%3A15%3A41.0709875Z'\"", + "properties": { + "category": "Saved Search Test Category", + "displayName": "Create or Update Saved Search Test", + "functionAlias": "heartbeat_func", + "functionParameters": "a:int=1", + "query": "Heartbeat | summarize Count() by Computer | take a", + "version": 2 + } + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesGet.json new file mode 100644 index 000000000000..7c2980cfb229 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "resourceGroupName": "TestRG", + "workspaceName": "TestWS", + "savedSearchName": "SavedSearchName", + "api-version": "2020-10-01", + "savedSearchId": "00000000-0000-0000-0000-00000000000", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/AtlantisDemo/savedSearches/test-new-saved-search-id-2015", + "etag": "W/\"datetime'2017-10-02T23%3A15%3A41.0709875Z'\"", + "properties": { + "category": " Saved Search Test Category", + "displayName": "Create or Update Saved Search Test", + "functionAlias": "heartbeat_func", + "functionParameters": "a:int=1", + "query": "* | measure Count() by Computer | take a", + "version": 1 + } + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSubscriptionList.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSubscriptionList.json new file mode 100644 index 000000000000..e3a520ff693f --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSubscriptionList.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": [ + { + "properties": { + "customerId": "bc089d7b-485c-4aff-a71e-c00f362d8d2f", + "provisioningState": "Succeeded", + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170", + "name": "AzTest2170", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "australiasoutheast", + "tags": { + "tag1": "val1" + } + } + ] + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesUpdate.json new file mode 100644 index 000000000000..bd0a11267e9e --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesUpdate.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "parameters": { + "properties": { + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30 + } + }, + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": { + "properties": { + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled" + }, + "location": "australiasoutheast", + "tags": { + "tag1": "val1" + } + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/readme.azureresourceschema.md b/specification/operationalinsights/resource-manager/readme.azureresourceschema.md index 23723e41df5e..bccbbe033234 100644 --- a/specification/operationalinsights/resource-manager/readme.azureresourceschema.md +++ b/specification/operationalinsights/resource-manager/readme.azureresourceschema.md @@ -55,6 +55,7 @@ output-folder: $(azureresourceschema-folder)/schemas input-file: - Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json - Microsoft.OperationalInsights/stable/2020-10-01/Operations.json + - Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json ``` diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index 34124ff87b8d..a4e43207604d 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -99,6 +99,7 @@ These settings apply only when `--tag=package-2020-10` is specified on the comma input-file: - Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json - Microsoft.OperationalInsights/stable/2020-10-01/Operations.json +- Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json ``` ### Tag: package-2020-08 From 14bc10242f30ce48f2f3c61abe44a1f458e959f9 Mon Sep 17 00:00:00 2001 From: Dudi Likvornik Date: Sun, 15 Nov 2020 22:56:09 +0200 Subject: [PATCH 4/7] Adding default error response. --- .../stable/2020-10-01/Workspaces.json | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json index 59892d76ba55..5a8d36ef411f 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json @@ -60,6 +60,12 @@ "schema": { "$ref": "#/definitions/WorkspaceListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkspaceErrorResponse" + } } }, "x-ms-pageable": { @@ -96,6 +102,12 @@ "schema": { "$ref": "#/definitions/WorkspaceListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkspaceErrorResponse" + } } }, "x-ms-pageable": { @@ -153,6 +165,12 @@ }, "202": { "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkspaceErrorResponse" + } } }, "x-ms-long-running-operation": true @@ -198,6 +216,12 @@ }, "204": { "description": "NoContent response definition." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkspaceErrorResponse" + } } }, "x-ms-long-running-operation": true @@ -233,6 +257,12 @@ "schema": { "$ref": "#/definitions/Workspace" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkspaceErrorResponse" + } } } }, @@ -276,6 +306,12 @@ "schema": { "$ref": "#/definitions/Workspace" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkspaceErrorResponse" + } } } } @@ -306,6 +342,12 @@ "schema": { "$ref": "#/definitions/WorkspaceListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkspaceErrorResponse" + } } }, "x-ms-pageable": { @@ -342,6 +384,12 @@ "schema": { "$ref": "#/definitions/WorkspaceListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkspaceErrorResponse" + } } }, "x-ms-pageable": { @@ -450,6 +498,16 @@ } } }, + "WorkspaceErrorResponse": { + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "error": { + "description": "The details of the error.", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + }, "WorkspaceProperties": { "properties": { "provisioningState": { From ef5901bb47b0d4274fec98fb349b3d75c5d65577 Mon Sep 17 00:00:00 2001 From: Dudi Likvornik Date: Sun, 15 Nov 2020 23:00:47 +0200 Subject: [PATCH 5/7] Removing redundant examples. --- .../WorkspacesAvailableServiceTiers.json | 30 --- .../WorkspacesDeleteSavedSearches.json | 13 - .../WorkspacesDisableIntelligencePack.json | 12 - .../WorkspacesEnableIntelligencePack.json | 12 - .../examples/WorkspacesGatewaysDelete.json | 12 - .../examples/WorkspacesGetSharedKeys.json | 16 -- .../WorkspacesListIntelligencePacks.json | 244 ------------------ .../WorkspacesListManagementGroups.json | 15 -- .../examples/WorkspacesListUsages.json | 27 -- .../2020-10-01/examples/WorkspacesPurge.json | 28 -- .../examples/WorkspacesPurgeOperation.json | 16 -- .../WorkspacesRegenerateSharedKeys.json | 16 -- ...WorkspacesSavedSearchesCreateOrUpdate.json | 42 --- .../examples/WorkspacesSavedSearchesGet.json | 26 -- 14 files changed, 509 deletions(-) delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesAvailableServiceTiers.json delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDeleteSavedSearches.json delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDisableIntelligencePack.json delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesEnableIntelligencePack.json delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGatewaysDelete.json delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGetSharedKeys.json delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListIntelligencePacks.json delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListManagementGroups.json delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListUsages.json delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurge.json delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurgeOperation.json delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesRegenerateSharedKeys.json delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesCreateOrUpdate.json delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesGet.json diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesAvailableServiceTiers.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesAvailableServiceTiers.json deleted file mode 100644 index 159468ff3277..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesAvailableServiceTiers.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "rg1", - "workspaceName": "workspace1", - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, - "responses": { - "200": { - "body": [ - { - "serviceTier": "PerNode", - "enabled": true, - "minimumRetention": 7, - "maximumRetention": 30, - "defaultRetention": 7 - }, - { - "serviceTier": "CapacityReservation", - "enabled": true, - "minimumRetention": 30, - "maximumRetention": 300, - "defaultRetention": 30, - "capacityReservationLevel": 200, - "lastSkuUpdate": "2020-02-04T08:55:03.871Z" - } - ] - } - } -} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDeleteSavedSearches.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDeleteSavedSearches.json deleted file mode 100644 index b941e8afc4e3..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDeleteSavedSearches.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "TestRG", - "workspaceName": "TestWS", - "savedSearchName": "SavedSearchName", - "api-version": "2020-10-01", - "savedSearchId": "00000000-0000-0000-0000-00000000000", - "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, - "responses": { - "200": {} - } -} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDisableIntelligencePack.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDisableIntelligencePack.json deleted file mode 100644 index 75c9e466569f..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesDisableIntelligencePack.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "rg1", - "workspaceName": "TestLinkWS", - "intelligencePackName": "ChangeTracking", - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, - "responses": { - "200": {} - } -} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesEnableIntelligencePack.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesEnableIntelligencePack.json deleted file mode 100644 index 75c9e466569f..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesEnableIntelligencePack.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "rg1", - "workspaceName": "TestLinkWS", - "intelligencePackName": "ChangeTracking", - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, - "responses": { - "200": {} - } -} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGatewaysDelete.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGatewaysDelete.json deleted file mode 100644 index b1a4aafaaaa5..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGatewaysDelete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-00000000000", - "resourceGroupName": "OIAutoRest5123", - "workspaceName": "aztest5048", - "gatewayId": "00000000-0000-0000-0000-00000000000", - "api-version": "2020-10-01" - }, - "responses": { - "200": {} - } -} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGetSharedKeys.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGetSharedKeys.json deleted file mode 100644 index 4c42cf6b0bd0..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesGetSharedKeys.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "rg1", - "workspaceName": "TestLinkWS", - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, - "responses": { - "200": { - "body": { - "primarySharedKey": "BozLY1JnZbxu0jWUQSY8iRPEM8ObmpP8rW+8bUl3+HpDJI+n689SxXgTgU7k1qdxo/WugRLxechxbolAfHM5uA==", - "secondarySharedKey": "7tDt5W0JBrCQKtQA3igfFltLSzJeyr9LmuT+B/ibzd8cdC1neZ1ePOQLBx5NUzc0q2VUIK0cLhWNyFvo/hT8Ww==" - } - } - } -} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListIntelligencePacks.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListIntelligencePacks.json deleted file mode 100644 index 8ff8720b69b3..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListIntelligencePacks.json +++ /dev/null @@ -1,244 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "rg1", - "workspaceName": "TestLinkWS", - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, - "responses": { - "200": { - "body": [ - { - "name": "CapacityPerformance", - "enabled": false, - "displayName": "Capacity and Performance" - }, - { - "name": "AzureWebAppsAnalytics", - "enabled": false, - "displayName": "Azure Web Apps Analytics (Preview)" - }, - { - "name": "Security", - "enabled": false, - "displayName": "Security and Audit" - }, - { - "name": "Updates", - "enabled": false, - "displayName": "Update Management" - }, - { - "name": "AntiMalware", - "enabled": false, - "displayName": "Antimalware Assessment" - }, - { - "name": "LogManagement", - "enabled": true, - "displayName": "Log Management" - }, - { - "name": "ChangeTracking", - "enabled": true, - "displayName": "Change Tracking" - }, - { - "name": "SQLAssessment", - "enabled": false, - "displayName": "SQL Assessment" - }, - { - "name": "SCOMAssessment", - "enabled": false, - "displayName": "System Center Operations Manager Assessment (Preview)" - }, - { - "name": "ServiceDesk", - "enabled": false, - "displayName": "IT Service Management Connector(Preview)" - }, - { - "name": "ADAssessment", - "enabled": false, - "displayName": "AD Assessment" - }, - { - "name": "AlertManagement", - "enabled": false, - "displayName": "Alert Management" - }, - { - "name": "AzureAutomation", - "enabled": false, - "displayName": "Azure Automation" - }, - { - "name": "WireData", - "enabled": false, - "displayName": "Wire Data" - }, - { - "name": "SiteRecovery", - "enabled": true, - "displayName": "Azure Site Recovery" - }, - { - "name": "Backup", - "enabled": false, - "displayName": "Backup" - }, - { - "name": "SurfaceHub", - "enabled": false, - "displayName": "Surface Hub" - }, - { - "name": "NetworkMonitoring", - "enabled": false, - "displayName": "Network Performance Monitor" - }, - { - "name": "Containers", - "enabled": false, - "displayName": "Container Monitoring Solution" - }, - { - "name": "ServiceMap", - "enabled": false, - "displayName": "Service Map" - }, - { - "name": "AzureNetworking", - "enabled": false, - "displayName": "Azure Networking Analytics (Deprecated)" - }, - { - "name": "ADReplication", - "enabled": false, - "displayName": "AD Replication Status" - }, - { - "name": "Office365", - "enabled": false, - "displayName": "Office 365 (Preview)" - }, - { - "name": "CompatibilityAssessment", - "enabled": false, - "displayName": "Upgrade Readiness" - }, - { - "name": "KeyVault", - "enabled": false, - "displayName": "Key Vault (Deprecated)" - }, - { - "name": "ServiceFabric", - "enabled": false, - "displayName": "Service Fabric" - }, - { - "name": "DnsAnalytics", - "enabled": false, - "displayName": "DNS Analytics (Preview)" - }, - { - "name": "ApplicationInsights", - "enabled": false, - "displayName": "Application Insights (Preview)" - }, - { - "name": "WireData2", - "enabled": false, - "displayName": "Wire Data 2.0" - }, - { - "name": "WaaSUpdateInsights", - "enabled": false, - "displayName": "Update Compliance (Preview)" - }, - { - "name": "AgentHealthAssessment", - "enabled": false, - "displayName": "Agent Health " - }, - { - "name": "AzureActivity", - "enabled": false, - "displayName": "Activity Log Analytics" - }, - { - "name": "HDInsight", - "enabled": false, - "displayName": "HDInsight HBase Monitoring (Preview)" - }, - { - "name": "HDInsightKafka", - "enabled": false, - "displayName": "HDInsight Kafka Monitoring" - }, - { - "name": "HDInsightSpark", - "enabled": false, - "displayName": "HDInsight Spark Monitoring" - }, - { - "name": "VMware", - "enabled": false, - "displayName": "VMware (Preview)" - }, - { - "name": "SecurityCenterFree", - "enabled": false, - "displayName": "Security Center Free � for Azure Resources only" - }, - { - "name": "LogicAppsManagement", - "enabled": false, - "displayName": "Logic Apps Management" - }, - { - "name": "LogicAppB2B", - "enabled": false, - "displayName": "Logic Apps B2B" - }, - { - "name": "AzureSQLAnalytics", - "enabled": false, - "displayName": "Azure SQL Analytics (Preview)" - }, - { - "name": "KeyVaultAnalytics", - "enabled": false, - "displayName": "Key Vault Analytics" - }, - { - "name": "AzureNSGAnalytics", - "enabled": false, - "displayName": "Azure Network Security Group Analytics" - }, - { - "name": "AzureAppGatewayAnalytics", - "enabled": false, - "displayName": "Azure Application Gateway Analytics" - }, - { - "name": "DeviceHealthProd", - "enabled": false, - "displayName": "Device Health (Preview)" - }, - { - "name": "WindowsDefenderATP", - "enabled": false, - "displayName": "Windows Defender ATP" - }, - { - "name": "ProcessInvestigator", - "enabled": false, - "displayName": "ProcessInvestigator" - } - ] - } - } -} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListManagementGroups.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListManagementGroups.json deleted file mode 100644 index 884653c48639..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListManagementGroups.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "rg1", - "workspaceName": "TestLinkWS", - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, - "responses": { - "200": { - "body": { - "value": [] - } - } - } -} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListUsages.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListUsages.json deleted file mode 100644 index e59cef295149..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesListUsages.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "rg1", - "workspaceName": "TestLinkWS", - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": { - "value": "DataAnalyzed", - "localizedValue": "Data Analyzed" - }, - "unit": "Bytes", - "currentValue": 0.0, - "limit": 524288000.0, - "nextResetTime": "2017-10-03T00:00:00Z", - "quotaPeriod": "P1D" - } - ] - } - } - } -} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurge.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurge.json deleted file mode 100644 index 2dfe0907888e..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurge.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "OIAutoRest5123", - "workspaceName": "aztest5048", - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000", - "body": { - "table": "Heartbeat", - "filters": [ - { - "column": "TimeGenerated", - "operator": ">", - "value": "2017-09-01T00:00:00" - } - ] - } - }, - "responses": { - "202": { - "headers": { - "x-ms-status-location": "https://management.azure.com/subscriptions/b96161de-b34a-480f-7343-59b099299283/resourceGroups/example/providers/microsoft.operationalinsights/workspaces/test/operations/purge-970318e7-b859-4edb-8903-83b1b54d0b74?api-version=2020-10-01" - }, - "body": { - "operationId": "7d7cf277-9113-4ab3-8359-d0364b74d01d" - } - } - } -} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurgeOperation.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurgeOperation.json deleted file mode 100644 index caae9609bb49..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesPurgeOperation.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "OIAutoRest5123", - "workspaceName": "aztest5048", - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000", - "purgeId": "purge-970318e7-b859-4edb-8903-83b1b54d0b74" - }, - "responses": { - "200": { - "body": { - "status": "completed" - } - } - } -} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesRegenerateSharedKeys.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesRegenerateSharedKeys.json deleted file mode 100644 index abb84b5c298d..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesRegenerateSharedKeys.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "rg1", - "workspaceName": "workspace1", - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, - "responses": { - "200": { - "body": { - "primarySharedKey": "BozLY1JnZbxu0jWUQSY8iRPEM8ObmpP8rW+8bUl3+HpDJI+n689SxXgTgU7k1qdxo/WugRLxechxbolAfHM5uA==", - "secondarySharedKey": "7tDt5W0JBrCQKtQA3igfFltLSzJeyr9LmuT+B/ibzd8cdC1neZ1ePOQLBx5NUzc0q2VUIK0cLhWNyFvo/hT8Ww==" - } - } - } -} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesCreateOrUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesCreateOrUpdate.json deleted file mode 100644 index 5ff2e48226fa..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesCreateOrUpdate.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "TestRG", - "workspaceName": "TestWS", - "savedSearchName": "SavedSearchName", - "parameters": { - "properties": { - "category": "Saved Search Test Category", - "displayName": "Create or Update Saved Search Test", - "version": 2, - "functionAlias": "heartbeat_func", - "functionParameters": "a:int=1", - "query": "Heartbeat | summarize Count() by Computer | take a", - "tags": [ - { - "name": "Group", - "value": "Computer" - } - ] - } - }, - "api-version": "2020-10-01", - "savedSearchId": "00000000-0000-0000-0000-00000000000", - "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, - "responses": { - "200": { - "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/AtlantisDemo/savedSearches/test-new-saved-search-id-2015", - "etag": "W/\"datetime'2017-10-02T23%3A15%3A41.0709875Z'\"", - "properties": { - "category": "Saved Search Test Category", - "displayName": "Create or Update Saved Search Test", - "functionAlias": "heartbeat_func", - "functionParameters": "a:int=1", - "query": "Heartbeat | summarize Count() by Computer | take a", - "version": 2 - } - } - } - } -} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesGet.json deleted file mode 100644 index 7c2980cfb229..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesSavedSearchesGet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "TestRG", - "workspaceName": "TestWS", - "savedSearchName": "SavedSearchName", - "api-version": "2020-10-01", - "savedSearchId": "00000000-0000-0000-0000-00000000000", - "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, - "responses": { - "200": { - "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/AtlantisDemo/savedSearches/test-new-saved-search-id-2015", - "etag": "W/\"datetime'2017-10-02T23%3A15%3A41.0709875Z'\"", - "properties": { - "category": " Saved Search Test Category", - "displayName": "Create or Update Saved Search Test", - "functionAlias": "heartbeat_func", - "functionParameters": "a:int=1", - "query": "* | measure Count() by Computer | take a", - "version": 1 - } - } - } - } -} From 3a4d255511b2aedd33049b6bef976b2e56a43a69 Mon Sep 17 00:00:00 2001 From: Dudi Likvornik Date: Mon, 16 Nov 2020 16:42:01 +0200 Subject: [PATCH 6/7] adding workspace capping to example per code review request. --- .../stable/2020-10-01/examples/WorkspacesUpdate.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesUpdate.json index bd0a11267e9e..37a38e7101de 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/WorkspacesUpdate.json @@ -7,7 +7,10 @@ "sku": { "name": "PerGB2018" }, - "retentionInDays": 30 + "retentionInDays": 30, + "workspaceCapping": { + "dailyQuotaGb": -1 + } } }, "api-version": "2020-10-01", @@ -22,7 +25,12 @@ }, "retentionInDays": 30, "publicNetworkAccessForQuery": "Enabled", - "publicNetworkAccessForIngestion": "Enabled" + "publicNetworkAccessForIngestion": "Enabled", + "workspaceCapping": { + "dailyQuotaGb": -1, + "quotaNextResetTime": "Mon, 16 Nov 2020 15:00:00 GMT", + "dataIngestionStatus": "RespectQuota" + } }, "location": "australiasoutheast", "tags": { From 02f6511d7e980ed7e91d0adb183ee92bff265234 Mon Sep 17 00:00:00 2001 From: Dudi Likvornik Date: Tue, 17 Nov 2020 11:30:45 +0200 Subject: [PATCH 7/7] Per review request. --- specification/operationalinsights/resource-manager/readme.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index a4e43207604d..bfb16710d35e 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -148,8 +148,6 @@ swagger-to-sdk: - repo: azure-sdk-for-node - repo: azure-sdk-for-ruby - repo: azure-sdk-for-java - after_scripts: - - bundle install && rake arm:regen_all_profiles['azure_mgmt_operational_insights'] - repo: azure-resource-manager-schemas after_scripts: - node sdkauto_afterscript.js operationalinsights/resource-manager