diff --git a/schemas/2021-12-01-preview/Microsoft.OperationalInsights.json b/schemas/2021-12-01-preview/Microsoft.OperationalInsights.json new file mode 100644 index 0000000000..7b45e53f22 --- /dev/null +++ b/schemas/2021-12-01-preview/Microsoft.OperationalInsights.json @@ -0,0 +1,649 @@ +{ + "id": "https://schema.management.azure.com/schemas/2021-12-01-preview/Microsoft.OperationalInsights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.OperationalInsights", + "description": "Microsoft OperationalInsights Resource Types", + "resourceDefinitions": { + "workspaces": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-12-01-preview" + ] + }, + "eTag": { + "type": "string", + "description": "The ETag of the workspace." + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "minLength": 4, + "maxLength": 63 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the workspace." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/WorkspaceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Workspace properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/workspaces_tables_childResource" + } + ] + } + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.OperationalInsights/workspaces" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.OperationalInsights/workspaces" + }, + "workspaces_tables": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-12-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the table." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/TableProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Table properties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.OperationalInsights/workspaces/tables" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.OperationalInsights/workspaces/tables" + } + }, + "definitions": { + "Column": { + "type": "object", + "properties": { + "dataTypeHint": { + "oneOf": [ + { + "type": "string", + "enum": [ + "uri", + "guid", + "armPath", + "ip" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Column data type logical hint." + }, + "description": { + "type": "string", + "description": "Column description." + }, + "displayName": { + "type": "string", + "description": "Column display name." + }, + "name": { + "type": "string", + "description": "Column name." + }, + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "string", + "int", + "long", + "real", + "boolean", + "dateTime", + "guid", + "dynamic" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Column data type." + } + }, + "description": "Table column." + }, + "RestoredLogs": { + "type": "object", + "properties": { + "endRestoreTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp to end the restore by (UTC)." + }, + "startRestoreTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp to start the restore from (UTC)." + } + }, + "description": "Restore parameters." + }, + "ResultStatistics": { + "type": "object", + "properties": {}, + "description": "Search job execution statistics." + }, + "Schema": { + "type": "object", + "properties": { + "columns": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Column" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of table custom columns." + }, + "description": { + "type": "string", + "description": "Table description." + }, + "displayName": { + "type": "string", + "description": "Table display name." + }, + "name": { + "type": "string", + "description": "Table name." + } + }, + "description": "Table's schema." + }, + "SearchResults": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Search results table's Description." + }, + "endSearchTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp to end the search by (UTC)" + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Limit the search job to return up to specified number of rows." + }, + "query": { + "type": "string", + "description": "Search job query." + }, + "startSearchTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp to start the search from (UTC)" + } + }, + "description": "Parameters of the search job that initiated this table." + }, + "TableProperties": { + "type": "object", + "properties": { + "plan": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Basic", + "Analytics" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The table plan." + }, + "restoredLogs": { + "oneOf": [ + { + "$ref": "#/definitions/RestoredLogs" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Restore parameters." + }, + "resultStatistics": { + "oneOf": [ + { + "$ref": "#/definitions/ResultStatistics" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Search job execution statistics." + }, + "retentionInDays": { + "oneOf": [ + { + "type": "integer", + "minimum": 4, + "maximum": 730 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The data table data retention in days, between 4 and 730. Setting this property to null will default to the workspace retention." + }, + "schema": { + "oneOf": [ + { + "$ref": "#/definitions/Schema" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Table's schema." + }, + "searchResults": { + "oneOf": [ + { + "$ref": "#/definitions/SearchResults" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Parameters of the search job that initiated this table." + }, + "totalRetentionInDays": { + "oneOf": [ + { + "type": "integer", + "minimum": 4, + "maximum": 2555 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The table data total retention in days, between 4 and 2555. Setting this property to null will default to table retention." + } + }, + "description": "Table properties." + }, + "WorkspaceCapping": { + "type": "object", + "properties": { + "dailyQuotaGb": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The workspace daily quota for ingestion." + } + }, + "description": "The daily volume cap for ingestion." + }, + "WorkspaceFeatures": { + "type": "object", + "properties": { + "additionalProperties": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": {} + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Unmatched properties from the message are deserialized this collection" + }, + "clusterResourceId": { + "type": "string", + "description": "Dedicated LA cluster resourceId that is linked to the workspaces." + }, + "disableLocalAuth": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Disable Non-AAD based Auth." + }, + "enableDataExport": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Flag that indicate if data should be exported." + }, + "enableLogAccessUsingOnlyResourcePermissions": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Flag that indicate which permission to use - resource or workspace or both." + }, + "immediatePurgeDataOn30Days": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Flag that describes if we want to remove the data after 30 days." + } + }, + "description": "Workspace features." + }, + "WorkspaceProperties": { + "type": "object", + "properties": { + "defaultDataCollectionRuleResourceId": { + "type": "string", + "description": "The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}." + }, + "features": { + "oneOf": [ + { + "$ref": "#/definitions/WorkspaceFeatures" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Workspace features." + }, + "forceCmkForQuery": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether customer managed storage is mandatory for query management." + }, + "provisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Creating", + "Succeeded", + "Failed", + "Canceled", + "Deleting", + "ProvisioningAccount", + "Updating" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The provisioning state of the workspace." + }, + "publicNetworkAccessForIngestion": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The network access type for accessing Log Analytics ingestion." + }, + "publicNetworkAccessForQuery": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The network access type for accessing Log Analytics query." + }, + "retentionInDays": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details." + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/WorkspaceSku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The SKU (tier) of a workspace." + }, + "workspaceCapping": { + "oneOf": [ + { + "$ref": "#/definitions/WorkspaceCapping" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The daily volume cap for ingestion." + } + }, + "description": "Workspace properties." + }, + "WorkspaceSku": { + "type": "object", + "properties": { + "capacityReservationLevel": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected." + }, + "name": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Free", + "Standard", + "Premium", + "PerNode", + "PerGB2018", + "Standalone", + "CapacityReservation", + "LACluster" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the SKU." + } + }, + "required": [ + "name" + ], + "description": "The SKU (tier) of a workspace." + }, + "workspaces_tables_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-12-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the table." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/TableProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Table properties." + }, + "type": { + "type": "string", + "enum": [ + "tables" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.OperationalInsights/workspaces/tables" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 8a2171201c..ca42a63403 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -10165,6 +10165,12 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.OperationalInsights.json#/resourceDefinitions/workspaces_tables" }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-12-01-preview/Microsoft.OperationalInsights.json#/resourceDefinitions/workspaces" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-12-01-preview/Microsoft.OperationalInsights.json#/resourceDefinitions/workspaces_tables" + }, { "$ref": "https://schema.management.azure.com/schemas/2021-04-04-preview/Microsoft.Orbital.json#/resourceDefinitions/contactProfiles" },