Workspace Args
data class WorkspaceArgs(val eTag: Output<String>? = null, val features: Output<WorkspaceFeaturesArgs>? = null, val forceCmkForQuery: Output<Boolean>? = null, val location: Output<String>? = null, val provisioningState: Output<Either<String, WorkspaceEntityStatus>>? = null, val publicNetworkAccessForIngestion: Output<Either<String, PublicNetworkAccessType>>? = null, val publicNetworkAccessForQuery: Output<Either<String, PublicNetworkAccessType>>? = null, val resourceGroupName: Output<String>? = null, val retentionInDays: Output<Int>? = null, val sku: Output<WorkspaceSkuArgs>? = null, val tags: Output<Map<String, String>>? = null, val workspaceCapping: Output<WorkspaceCappingArgs>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<WorkspaceArgs>
The top level Workspace resource container. API Version: 2020-10-01.
Example Usage
WorkspacesCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workspace = new AzureNative.OperationalInsights.Workspace("workspace", new()
{
Location = "australiasoutheast",
ResourceGroupName = "oiautorest6685",
RetentionInDays = 30,
Sku = new AzureNative.OperationalInsights.Inputs.WorkspaceSkuArgs
{
Name = "PerGB2018",
},
Tags =
{
{ "tag1", "val1" },
},
WorkspaceName = "oiautorest6685",
});
});
Content copied to clipboard
package main
import (
operationalinsights "github.com/pulumi/pulumi-azure-native-sdk/operationalinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := operationalinsights.NewWorkspace(ctx, "workspace", &operationalinsights.WorkspaceArgs{
Location: pulumi.String("australiasoutheast"),
ResourceGroupName: pulumi.String("oiautorest6685"),
RetentionInDays: pulumi.Int(30),
Sku: &operationalinsights.WorkspaceSkuArgs{
Name: pulumi.String("PerGB2018"),
},
Tags: pulumi.StringMap{
"tag1": pulumi.String("val1"),
},
WorkspaceName: pulumi.String("oiautorest6685"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.operationalinsights.Workspace;
import com.pulumi.azurenative.operationalinsights.WorkspaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var workspace = new Workspace("workspace", WorkspaceArgs.builder()
.location("australiasoutheast")
.resourceGroupName("oiautorest6685")
.retentionInDays(30)
.sku(Map.of("name", "PerGB2018"))
.tags(Map.of("tag1", "val1"))
.workspaceName("oiautorest6685")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:operationalinsights:Workspace AzTest2170 /subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(eTag: Output<String>? = null, features: Output<WorkspaceFeaturesArgs>? = null, forceCmkForQuery: Output<Boolean>? = null, location: Output<String>? = null, provisioningState: Output<Either<String, WorkspaceEntityStatus>>? = null, publicNetworkAccessForIngestion: Output<Either<String, PublicNetworkAccessType>>? = null, publicNetworkAccessForQuery: Output<Either<String, PublicNetworkAccessType>>? = null, resourceGroupName: Output<String>? = null, retentionInDays: Output<Int>? = null, sku: Output<WorkspaceSkuArgs>? = null, tags: Output<Map<String, String>>? = null, workspaceCapping: Output<WorkspaceCappingArgs>? = null, workspaceName: Output<String>? = null)
Properties
Link copied to clipboard
Workspace features.
Link copied to clipboard
Indicates whether customer managed storage is mandatory for query management.
Link copied to clipboard
The provisioning state of the workspace.
Link copied to clipboard
The network access type for accessing Log Analytics ingestion.
Link copied to clipboard
The network access type for accessing Log Analytics query.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details.
Link copied to clipboard
The SKU of the workspace.
Link copied to clipboard
The daily volume cap for ingestion.
Link copied to clipboard
The name of the workspace.