WorkbookTemplateArgs

data class WorkbookTemplateArgs(val author: Output<String>? = null, val galleries: Output<List<WorkbookTemplateGalleryArgs>>? = null, val localized: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val priority: Output<Int>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val templateData: Output<String>? = null) : ConvertibleToJava<WorkbookTemplateArgs>

Manages an Application Insights Workbook Template.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appinsights.WorkbookTemplate;
import com.pulumi.azure.appinsights.WorkbookTemplateArgs;
import com.pulumi.azure.appinsights.inputs.WorkbookTemplateGalleryArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleWorkbookTemplate = new WorkbookTemplate("exampleWorkbookTemplate", WorkbookTemplateArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location("West Europe")
.author("test author")
.priority(1)
.galleries(WorkbookTemplateGalleryArgs.builder()
.category("workbook")
.name("test")
.order(100)
.resourceType("microsoft.insights/components")
.type("tsg")
.build())
.templateData(serializeJson(
jsonObject(
jsonProperty("version", "Notebook/1.0"),
jsonProperty("items", jsonArray(jsonObject(
jsonProperty("type", 1),
jsonProperty("content", jsonObject(
jsonProperty("json", """
## New workbook
---
Welcome to your new workbook. """)
)),
jsonProperty("name", "text - 2")
))),
jsonProperty("styleSettings", jsonObject(
)),
jsonProperty("$schema", "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json")
)))
.localized(serializeJson(
jsonObject(
jsonProperty("ar", jsonArray(jsonObject(
jsonProperty("galleries", jsonArray(jsonObject(
jsonProperty("name", "test"),
jsonProperty("category", "Failures"),
jsonProperty("type", "tsg"),
jsonProperty("resourceType", "microsoft.insights/components"),
jsonProperty("order", 100)
))),
jsonProperty("templateData", jsonObject(
jsonProperty("version", "Notebook/1.0"),
jsonProperty("items", jsonArray(jsonObject(
jsonProperty("type", 1),
jsonProperty("content", jsonObject(
jsonProperty("json", """
## New workbook
---
Welcome to your new workbook. """)
)),
jsonProperty("name", "text - 2")
))),
jsonProperty("styleSettings", jsonObject(
)),
jsonProperty("$schema", "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json")
))
)))
)))
.tags(Map.of("key", "value"))
.build());
}
}

Import

Application Insights Workbook Template can be imported using the resource id, e.g.

$ pulumi import azure:appinsights/workbookTemplate:WorkbookTemplate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Insights/workbookTemplates/resource1

Constructors

Link copied to clipboard
fun WorkbookTemplateArgs(author: Output<String>? = null, galleries: Output<List<WorkbookTemplateGalleryArgs>>? = null, localized: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, priority: Output<Int>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, templateData: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): WorkbookTemplateArgs

Properties

Link copied to clipboard
val author: Output<String>? = null

Information about the author of the workbook template.

Link copied to clipboard

A galleries block as defined below.

Link copied to clipboard
val localized: Output<String>? = null

Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal.

Link copied to clipboard
val location: Output<String>? = null

Specifies the Azure Region where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name which should be used for this Application Insights Workbook Template. Changing this forces a new Application Insights Workbook Template to be created.

Link copied to clipboard
val priority: Output<Int>? = null

Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to 0.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to the Application Insights Workbook Template.

Link copied to clipboard
val templateData: Output<String>? = null

Valid JSON object containing workbook template payload.