Workbook Args
data class WorkbookArgs(val category: Output<String>? = null, val displayName: Output<String>? = null, val id: Output<String>? = null, val identity: Output<WorkbookManagedIdentityArgs>? = null, val kind: Output<Either<String, Kind>>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val serializedData: Output<String>? = null, val sourceId: Output<String>? = null, val storageUri: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val type: Output<String>? = null, val version: Output<String>? = null) : ConvertibleToJava<WorkbookArgs>
An Application Insights workbook definition. API Version: 2020-10-20.
Example Usage
WorkbookManagedAdd
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workbook = new AzureNative.Insights.Workbook("workbook", new()
{
Category = "workbook",
DisplayName = "tttt",
Id = "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/e378d137-1243-4256-b5c4-ad2a937cae79",
Identity = new AzureNative.Insights.Inputs.WorkbookManagedIdentityArgs
{
Type = "UserAssigned",
},
Kind = "shared",
Location = "westus",
Name = "e378d137-1243-4256-b5c4-ad2a937cae79",
ResourceGroupName = "my-resource-group",
ResourceName = "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
SerializedData = "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup\"]}",
SourceId = "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup",
StorageUri = "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer",
Tags =
{
{ "hidden-title", "tttt" },
},
Version = "Notebook/1.0",
});
});
Content copied to clipboard
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewWorkbook(ctx, "workbook", &insights.WorkbookArgs{
Category: pulumi.String("workbook"),
DisplayName: pulumi.String("tttt"),
Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/e378d137-1243-4256-b5c4-ad2a937cae79"),
Identity: &insights.WorkbookManagedIdentityArgs{
Type: pulumi.String("UserAssigned"),
},
Kind: pulumi.String("shared"),
Location: pulumi.String("westus"),
Name: pulumi.String("e378d137-1243-4256-b5c4-ad2a937cae79"),
ResourceGroupName: pulumi.String("my-resource-group"),
ResourceName: pulumi.String("deadb33f-5e0d-4064-8ebb-1a4ed0313eb2"),
SerializedData: pulumi.String("{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup\"]}"),
SourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup"),
StorageUri: pulumi.String("/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer"),
Tags: pulumi.StringMap{
"hidden-title": pulumi.String("tttt"),
},
Version: pulumi.String("Notebook/1.0"),
})
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.insights.Workbook;
import com.pulumi.azurenative.insights.WorkbookArgs;
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 workbook = new Workbook("workbook", WorkbookArgs.builder()
.category("workbook")
.displayName("tttt")
.id("/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/e378d137-1243-4256-b5c4-ad2a937cae79")
.identity(Map.of("type", "UserAssigned"))
.kind("shared")
.location("westus")
.name("e378d137-1243-4256-b5c4-ad2a937cae79")
.resourceGroupName("my-resource-group")
.resourceName("deadb33f-5e0d-4064-8ebb-1a4ed0313eb2")
.serializedData("{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup\"]}")
.sourceId("/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup")
.storageUri("/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer")
.tags(Map.of("hidden-title", "tttt"))
.version("Notebook/1.0")
.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:insights:Workbook e378d137-1243-4256-b5c4-ad2a937cae79 /subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/72377f0c-b7e7-4044-a882-471bcbd9696e
Content copied to clipboard
Constructors
Link copied to clipboard
fun WorkbookArgs(category: Output<String>? = null, displayName: Output<String>? = null, id: Output<String>? = null, identity: Output<WorkbookManagedIdentityArgs>? = null, kind: Output<Either<String, Kind>>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, serializedData: Output<String>? = null, sourceId: Output<String>? = null, storageUri: Output<String>? = null, tags: Output<Map<String, String>>? = null, type: Output<String>? = null, version: Output<String>? = null)