Interface Workspace
public interface Workspace
An immutable client-side representation of Workspace.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe entirety of the Workspace definition.static interfaceThe Workspace definition stages.static interfaceThe template for Workspace update.static interfaceThe Workspace update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets the createdDate property: Workspace creation date.Gets the customerId property: This is a read-only property.Gets the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use for this workspace.etag()Gets the etag property: The etag of the workspace.voidfailback()Deactivates failover for the specified workspace.voidfailback(com.azure.core.util.Context context) Deactivates failover for the specified workspace.failover()Gets the failover property: workspace failover properties.features()Gets the features property: Workspace features.Gets the forceCmkForQuery property: Indicates whether customer managed storage is mandatory for query management.id()Gets the id property: Fully qualified resource Id for the resource.identity()Gets the identity property: The identity of the resource.Gets the inner com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceInner object.location()Gets the location property: The geo-location where the resource lives.Gets the modifiedDate property: Workspace modification date.name()Gets the name property: The name of the resource.Gets the privateLinkScopedResources property: List of linked private link scope resources.Gets the provisioningState property: The provisioning state of the workspace.Gets the publicNetworkAccessForIngestion property: The network access type for accessing Log Analytics ingestion.Gets the publicNetworkAccessForQuery property: The network access type for accessing Log Analytics query.refresh()Refreshes the resource to sync with Azure.refresh(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.com.azure.core.management.Regionregion()Gets the region of the resource.Gets the name of the resource region.Gets the replication property: workspace replication properties.Gets the name of the resource group.Gets the retentionInDays property: The workspace data retention in days.sku()Gets the sku property: The SKU of the workspace.com.azure.core.management.SystemDataGets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.tags()Gets the tags property: Resource tags.type()Gets the type property: The type of the resource.update()Begins update for the Workspace resource.Gets the workspaceCapping property: The daily volume cap for ingestion.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
-
type
-
location
String location()Gets the location property: The geo-location where the resource lives.- Returns:
- the location value.
-
tags
-
identity
Identity identity()Gets the identity property: The identity of the resource.- Returns:
- the identity value.
-
etag
-
systemData
com.azure.core.management.SystemData systemData()Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
provisioningState
WorkspaceEntityStatus provisioningState()Gets the provisioningState property: The provisioning state of the workspace.- Returns:
- the provisioningState value.
-
customerId
String customerId()Gets the customerId property: This is a read-only property. Represents the ID associated with the workspace.- Returns:
- the customerId value.
-
sku
-
retentionInDays
Integer retentionInDays()Gets the retentionInDays property: The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details.- Returns:
- the retentionInDays value.
-
workspaceCapping
WorkspaceCapping workspaceCapping()Gets the workspaceCapping property: The daily volume cap for ingestion.- Returns:
- the workspaceCapping value.
-
createdDate
OffsetDateTime createdDate()Gets the createdDate property: Workspace creation date.- Returns:
- the createdDate value.
-
modifiedDate
OffsetDateTime modifiedDate()Gets the modifiedDate property: Workspace modification date.- Returns:
- the modifiedDate value.
-
publicNetworkAccessForIngestion
PublicNetworkAccessType publicNetworkAccessForIngestion()Gets the publicNetworkAccessForIngestion property: The network access type for accessing Log Analytics ingestion.- Returns:
- the publicNetworkAccessForIngestion value.
-
publicNetworkAccessForQuery
PublicNetworkAccessType publicNetworkAccessForQuery()Gets the publicNetworkAccessForQuery property: The network access type for accessing Log Analytics query.- Returns:
- the publicNetworkAccessForQuery value.
-
forceCmkForQuery
Boolean forceCmkForQuery()Gets the forceCmkForQuery property: Indicates whether customer managed storage is mandatory for query management.- Returns:
- the forceCmkForQuery value.
-
privateLinkScopedResources
List<PrivateLinkScopedResource> privateLinkScopedResources()Gets the privateLinkScopedResources property: List of linked private link scope resources.- Returns:
- the privateLinkScopedResources value.
-
features
WorkspaceFeatures features()Gets the features property: Workspace features.- Returns:
- the features value.
-
defaultDataCollectionRuleResourceId
String defaultDataCollectionRuleResourceId()Gets the defaultDataCollectionRuleResourceId property: 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}.- Returns:
- the defaultDataCollectionRuleResourceId value.
-
replication
WorkspaceReplicationProperties replication()Gets the replication property: workspace replication properties.- Returns:
- the replication value.
-
failover
WorkspaceFailoverProperties failover()Gets the failover property: workspace failover properties.- Returns:
- the failover value.
-
region
com.azure.core.management.Region region()Gets the region of the resource.- Returns:
- the region of the resource.
-
regionName
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
WorkspaceInner innerModel()Gets the inner com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceInner object.- Returns:
- the inner object.
-
update
Workspace.Update update()Begins update for the Workspace resource.- Returns:
- the stage of resource update.
-
refresh
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context- The context to associate with this operation.- Returns:
- the refreshed resource.
-
failback
void failback()Deactivates failover for the specified workspace. The failback operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be checked using the operationId returned in the response.- Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
failback
void failback(com.azure.core.util.Context context) Deactivates failover for the specified workspace. The failback operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be checked using the operationId returned in the response.- Parameters:
context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-