Share via


Workspace Class

Definition

The top level Workspace resource container.

[Microsoft.Rest.Serialization.JsonTransformation]
public class Workspace : Microsoft.Azure.Management.OperationalInsights.Models.TrackedResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type Workspace = class
    inherit TrackedResource
Public Class Workspace
Inherits TrackedResource
Inheritance
Attributes

Constructors

Workspace()

Initializes a new instance of the Workspace class.

Workspace(String, String, String, String, IDictionary<String, String>, String, String, WorkspaceSku, Nullable<Int32>, WorkspaceCapping, String, String, String, String, Nullable<Boolean>, IList<PrivateLinkScopedResource>, WorkspaceFeatures, String, SystemData, String)

Initializes a new instance of the Workspace class.

Properties

CreatedDate

Gets workspace creation date.

CustomerId

Gets this is a read-only property. Represents the ID associated with the workspace.

DefaultDataCollectionRuleResourceId

Gets or sets 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

Gets or sets the ETag of the workspace.

Features

Gets or sets workspace features.

ForceCmkForQuery

Gets or sets indicates whether customer managed storage is mandatory for query management.

Id

Gets fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

(Inherited from Resource)
Location

Gets or sets the geo-location where the resource lives

(Inherited from TrackedResource)
ModifiedDate

Gets workspace modification date.

Name

Gets the name of the resource

(Inherited from Resource)
PrivateLinkScopedResources

Gets list of linked private link scope resources.

ProvisioningState

Gets the provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating'

PublicNetworkAccessForIngestion

Gets or sets the network access type for accessing Log Analytics ingestion. Possible values include: 'Enabled', 'Disabled'

PublicNetworkAccessForQuery

Gets or sets the network access type for accessing Log Analytics query. Possible values include: 'Enabled', 'Disabled'

RetentionInDays

Gets or sets the workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details.

Sku

Gets or sets the SKU of the workspace.

SystemData
Tags

Gets or sets resource tags.

(Inherited from TrackedResource)
Type

Gets the type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

(Inherited from Resource)
WorkspaceCapping

Gets or sets the daily volume cap for ingestion.

Methods

Validate()

Validate the object.

Applies to