deleted_workspaces
Creates, updates, deletes, gets or lists a deleted_workspaces resource.
Overview
| Name | deleted_workspaces |
| Type | Resource |
| Id | azure.log_analytics.deleted_workspaces |
Fields
The following fields are returned by SELECT queries:
- list_by_resource_group
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
createdDate | string (date-time) | Workspace creation date. |
customerId | string | This is a read-only property. Represents the ID associated with the workspace. |
defaultDataCollectionRuleResourceId | string | 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}. |
etag | string | The etag of the workspace. |
failover | object | workspace failover properties. |
features | object | Workspace features. |
forceCmkForQuery | boolean | Indicates whether customer managed storage is mandatory for query management. |
identity | object | The identity of the resource. |
location | string | The geo-location where the resource lives. Required. |
modifiedDate | string (date-time) | Workspace modification date. |
privateLinkScopedResources | array | List of linked private link scope resources. |
provisioningState | string | The provisioning state of the workspace. Known values are: "Creating", "Succeeded", "Failed", "Canceled", "Deleting", "ProvisioningAccount", and "Updating". (Creating, Succeeded, Failed, Canceled, Deleting, ProvisioningAccount, Updating) |
publicNetworkAccessForIngestion | string | The network access type for accessing Log Analytics ingestion. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". (Enabled, Disabled, SecuredByPerimeter) |
publicNetworkAccessForQuery | string | The network access type for accessing Log Analytics query. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". (Enabled, Disabled, SecuredByPerimeter) |
replication | object | workspace replication properties. |
retentionInDays | integer | The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details. |
sku | object | The SKU of the workspace. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
workspaceCapping | object | The daily volume cap for ingestion. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
createdDate | string (date-time) | Workspace creation date. |
customerId | string | This is a read-only property. Represents the ID associated with the workspace. |
defaultDataCollectionRuleResourceId | string | 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}. |
etag | string | The etag of the workspace. |
failover | object | workspace failover properties. |
features | object | Workspace features. |
forceCmkForQuery | boolean | Indicates whether customer managed storage is mandatory for query management. |
identity | object | The identity of the resource. |
location | string | The geo-location where the resource lives. Required. |
modifiedDate | string (date-time) | Workspace modification date. |
privateLinkScopedResources | array | List of linked private link scope resources. |
provisioningState | string | The provisioning state of the workspace. Known values are: "Creating", "Succeeded", "Failed", "Canceled", "Deleting", "ProvisioningAccount", and "Updating". (Creating, Succeeded, Failed, Canceled, Deleting, ProvisioningAccount, Updating) |
publicNetworkAccessForIngestion | string | The network access type for accessing Log Analytics ingestion. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". (Enabled, Disabled, SecuredByPerimeter) |
publicNetworkAccessForQuery | string | The network access type for accessing Log Analytics query. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". (Enabled, Disabled, SecuredByPerimeter) |
replication | object | workspace replication properties. |
retentionInDays | integer | The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details. |
sku | object | The SKU of the workspace. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
workspaceCapping | object | The daily volume cap for ingestion. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_resource_group | select | resource_group_name, subscription_id | Gets recently deleted workspaces in a resource group, available for recovery. | |
list | select | subscription_id | Gets recently deleted workspaces in a subscription, available for recovery. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- list_by_resource_group
- list
Gets recently deleted workspaces in a resource group, available for recovery.
SELECT
id,
name,
createdDate,
customerId,
defaultDataCollectionRuleResourceId,
etag,
failover,
features,
forceCmkForQuery,
identity,
location,
modifiedDate,
privateLinkScopedResources,
provisioningState,
publicNetworkAccessForIngestion,
publicNetworkAccessForQuery,
replication,
retentionInDays,
sku,
systemData,
tags,
type,
workspaceCapping
FROM azure.log_analytics.deleted_workspaces
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets recently deleted workspaces in a subscription, available for recovery.
SELECT
id,
name,
createdDate,
customerId,
defaultDataCollectionRuleResourceId,
etag,
failover,
features,
forceCmkForQuery,
identity,
location,
modifiedDate,
privateLinkScopedResources,
provisioningState,
publicNetworkAccessForIngestion,
publicNetworkAccessForQuery,
replication,
retentionInDays,
sku,
systemData,
tags,
type,
workspaceCapping
FROM azure.log_analytics.deleted_workspaces
WHERE subscription_id = '{{ subscription_id }}' -- required
;