azure-native.insights.WorkbookTemplate
Explore with Pulumi AI
An Application Insights workbook template definition. API Version: 2019-10-17-preview.
Example Usage
WorkbookTemplateAdd
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workbookTemplate = new AzureNative.Insights.WorkbookTemplate("workbookTemplate", new()
{
Author = "Contoso",
Galleries = new[]
{
new AzureNative.Insights.Inputs.WorkbookTemplateGalleryArgs
{
Category = "Failures",
Name = "Simple Template",
Order = 100,
ResourceType = "microsoft.insights/components",
Type = "tsg",
},
},
Location = "west us",
Priority = 1,
ResourceGroupName = "my-resource-group",
ResourceName = "testtemplate2",
TemplateData = null,
});
});
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.NewWorkbookTemplate(ctx, "workbookTemplate", &insights.WorkbookTemplateArgs{
Author: pulumi.String("Contoso"),
Galleries: []insights.WorkbookTemplateGalleryArgs{
{
Category: pulumi.String("Failures"),
Name: pulumi.String("Simple Template"),
Order: pulumi.Int(100),
ResourceType: pulumi.String("microsoft.insights/components"),
Type: pulumi.String("tsg"),
},
},
Location: pulumi.String("west us"),
Priority: pulumi.Int(1),
ResourceGroupName: pulumi.String("my-resource-group"),
ResourceName: pulumi.String("testtemplate2"),
TemplateData: nil,
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.WorkbookTemplate;
import com.pulumi.azurenative.insights.WorkbookTemplateArgs;
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 workbookTemplate = new WorkbookTemplate("workbookTemplate", WorkbookTemplateArgs.builder()
.author("Contoso")
.galleries(Map.ofEntries(
Map.entry("category", "Failures"),
Map.entry("name", "Simple Template"),
Map.entry("order", 100),
Map.entry("resourceType", "microsoft.insights/components"),
Map.entry("type", "tsg")
))
.location("west us")
.priority(1)
.resourceGroupName("my-resource-group")
.resourceName("testtemplate2")
.templateData()
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
workbook_template = azure_native.insights.WorkbookTemplate("workbookTemplate",
author="Contoso",
galleries=[azure_native.insights.WorkbookTemplateGalleryArgs(
category="Failures",
name="Simple Template",
order=100,
resource_type="microsoft.insights/components",
type="tsg",
)],
location="west us",
priority=1,
resource_group_name="my-resource-group",
resource_name_="testtemplate2",
template_data={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const workbookTemplate = new azure_native.insights.WorkbookTemplate("workbookTemplate", {
author: "Contoso",
galleries: [{
category: "Failures",
name: "Simple Template",
order: 100,
resourceType: "microsoft.insights/components",
type: "tsg",
}],
location: "west us",
priority: 1,
resourceGroupName: "my-resource-group",
resourceName: "testtemplate2",
templateData: {},
});
resources:
workbookTemplate:
type: azure-native:insights:WorkbookTemplate
properties:
author: Contoso
galleries:
- category: Failures
name: Simple Template
order: 100
resourceType: microsoft.insights/components
type: tsg
location: west us
priority: 1
resourceGroupName: my-resource-group
resourceName: testtemplate2
templateData: {}
Create WorkbookTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkbookTemplate(name: string, args: WorkbookTemplateArgs, opts?: CustomResourceOptions);
@overload
def WorkbookTemplate(resource_name: str,
args: WorkbookTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WorkbookTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
galleries: Optional[Sequence[WorkbookTemplateGalleryArgs]] = None,
resource_group_name: Optional[str] = None,
template_data: Optional[Any] = None,
author: Optional[str] = None,
localized: Optional[Mapping[str, Sequence[WorkbookTemplateLocalizedGalleryArgs]]] = None,
location: Optional[str] = None,
priority: Optional[int] = None,
resource_name_: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewWorkbookTemplate(ctx *Context, name string, args WorkbookTemplateArgs, opts ...ResourceOption) (*WorkbookTemplate, error)
public WorkbookTemplate(string name, WorkbookTemplateArgs args, CustomResourceOptions? opts = null)
public WorkbookTemplate(String name, WorkbookTemplateArgs args)
public WorkbookTemplate(String name, WorkbookTemplateArgs args, CustomResourceOptions options)
type: azure-native:insights:WorkbookTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WorkbookTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WorkbookTemplateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkbookTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkbookTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkbookTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var workbookTemplateResource = new AzureNative.Insights.WorkbookTemplate("workbookTemplateResource", new()
{
Galleries = new[]
{
{
{ "category", "string" },
{ "name", "string" },
{ "order", 0 },
{ "resourceType", "string" },
{ "type", "string" },
},
},
ResourceGroupName = "string",
TemplateData = "any",
Author = "string",
Localized =
{
{ "string", new[]
{
{
{ "galleries", new[]
{
{
{ "category", "string" },
{ "name", "string" },
{ "order", 0 },
{ "resourceType", "string" },
{ "type", "string" },
},
} },
{ "templateData", "any" },
},
} },
},
Location = "string",
Priority = 0,
ResourceName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := insights.NewWorkbookTemplate(ctx, "workbookTemplateResource", &insights.WorkbookTemplateArgs{
Galleries: []map[string]interface{}{
map[string]interface{}{
"category": "string",
"name": "string",
"order": 0,
"resourceType": "string",
"type": "string",
},
},
ResourceGroupName: "string",
TemplateData: "any",
Author: "string",
Localized: map[string]interface{}{
"string": []map[string]interface{}{
map[string]interface{}{
"galleries": []map[string]interface{}{
map[string]interface{}{
"category": "string",
"name": "string",
"order": 0,
"resourceType": "string",
"type": "string",
},
},
"templateData": "any",
},
},
},
Location: "string",
Priority: 0,
ResourceName: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var workbookTemplateResource = new WorkbookTemplate("workbookTemplateResource", WorkbookTemplateArgs.builder()
.galleries(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.resourceGroupName("string")
.templateData("any")
.author("string")
.localized(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.priority(0)
.resourceName("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
workbook_template_resource = azure_native.insights.WorkbookTemplate("workbookTemplateResource",
galleries=[{
category: string,
name: string,
order: 0,
resourceType: string,
type: string,
}],
resource_group_name=string,
template_data=any,
author=string,
localized={
string: [{
galleries: [{
category: string,
name: string,
order: 0,
resourceType: string,
type: string,
}],
templateData: any,
}],
},
location=string,
priority=0,
resource_name_=string,
tags={
string: string,
})
const workbookTemplateResource = new azure_native.insights.WorkbookTemplate("workbookTemplateResource", {
galleries: [{
category: "string",
name: "string",
order: 0,
resourceType: "string",
type: "string",
}],
resourceGroupName: "string",
templateData: "any",
author: "string",
localized: {
string: [{
galleries: [{
category: "string",
name: "string",
order: 0,
resourceType: "string",
type: "string",
}],
templateData: "any",
}],
},
location: "string",
priority: 0,
resourceName: "string",
tags: {
string: "string",
},
});
type: azure-native:insights:WorkbookTemplate
properties:
author: string
galleries:
- category: string
name: string
order: 0
resourceType: string
type: string
localized:
string:
- galleries:
- category: string
name: string
order: 0
resourceType: string
type: string
templateData: any
location: string
priority: 0
resourceGroupName: string
resourceName: string
tags:
string: string
templateData: any
WorkbookTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The WorkbookTemplate resource accepts the following input properties:
- Galleries
List<Pulumi.
Azure Native. Insights. Inputs. Workbook Template Gallery> - Workbook galleries supported by the template.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Template
Data object - Valid JSON object containing workbook template payload.
- string
- Information about the author of the workbook template.
- Localized
Dictionary<string, Immutable
Array<Pulumi. Azure Native. Insights. Inputs. Workbook Template Localized Gallery Args>> - Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal.
- Location string
- Resource location
- Priority int
- Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode.
- Resource
Name string - The name of the Application Insights component resource.
- Dictionary<string, string>
- Resource tags
- Galleries
[]Workbook
Template Gallery Args - Workbook galleries supported by the template.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Template
Data interface{} - Valid JSON object containing workbook template payload.
- string
- Information about the author of the workbook template.
- Localized
map[string][]Workbook
Template Localized Gallery Args - Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal.
- Location string
- Resource location
- Priority int
- Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode.
- Resource
Name string - The name of the Application Insights component resource.
- map[string]string
- Resource tags
- galleries
List<Workbook
Template Gallery> - Workbook galleries supported by the template.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- template
Data Object - Valid JSON object containing workbook template payload.
- String
- Information about the author of the workbook template.
- localized
Map<String,List<Workbook
Template Localized Gallery Args>> - Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal.
- location String
- Resource location
- priority Integer
- Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode.
- resource
Name String - The name of the Application Insights component resource.
- Map<String,String>
- Resource tags
- galleries
Workbook
Template Gallery[] - Workbook galleries supported by the template.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- template
Data any - Valid JSON object containing workbook template payload.
- string
- Information about the author of the workbook template.
- localized
{[key: string]: Workbook
Template Localized Gallery Args[]} - Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal.
- location string
- Resource location
- priority number
- Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode.
- resource
Name string - The name of the Application Insights component resource.
- {[key: string]: string}
- Resource tags
- galleries
Sequence[Workbook
Template Gallery Args] - Workbook galleries supported by the template.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- template_
data Any - Valid JSON object containing workbook template payload.
- str
- Information about the author of the workbook template.
- localized
Mapping[str, Sequence[Workbook
Template Localized Gallery Args]] - Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal.
- location str
- Resource location
- priority int
- Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode.
- resource_
name str - The name of the Application Insights component resource.
- Mapping[str, str]
- Resource tags
- galleries List<Property Map>
- Workbook galleries supported by the template.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- template
Data Any - Valid JSON object containing workbook template payload.
- String
- Information about the author of the workbook template.
- localized Map<List<Property Map>>
- Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal.
- location String
- Resource location
- priority Number
- Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode.
- resource
Name String - The name of the Application Insights component resource.
- Map<String>
- Resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkbookTemplate resource produces the following output properties:
Supporting Types
WorkbookTemplateGallery, WorkbookTemplateGalleryArgs
- Category string
- Category for the gallery.
- Name string
- Name of the workbook template in the gallery.
- Order int
- Order of the template within the gallery.
- Resource
Type string - Azure resource type supported by the gallery.
- Type string
- Type of workbook supported by the workbook template.
- Category string
- Category for the gallery.
- Name string
- Name of the workbook template in the gallery.
- Order int
- Order of the template within the gallery.
- Resource
Type string - Azure resource type supported by the gallery.
- Type string
- Type of workbook supported by the workbook template.
- category String
- Category for the gallery.
- name String
- Name of the workbook template in the gallery.
- order Integer
- Order of the template within the gallery.
- resource
Type String - Azure resource type supported by the gallery.
- type String
- Type of workbook supported by the workbook template.
- category string
- Category for the gallery.
- name string
- Name of the workbook template in the gallery.
- order number
- Order of the template within the gallery.
- resource
Type string - Azure resource type supported by the gallery.
- type string
- Type of workbook supported by the workbook template.
- category str
- Category for the gallery.
- name str
- Name of the workbook template in the gallery.
- order int
- Order of the template within the gallery.
- resource_
type str - Azure resource type supported by the gallery.
- type str
- Type of workbook supported by the workbook template.
- category String
- Category for the gallery.
- name String
- Name of the workbook template in the gallery.
- order Number
- Order of the template within the gallery.
- resource
Type String - Azure resource type supported by the gallery.
- type String
- Type of workbook supported by the workbook template.
WorkbookTemplateGalleryResponse, WorkbookTemplateGalleryResponseArgs
- Category string
- Category for the gallery.
- Name string
- Name of the workbook template in the gallery.
- Order int
- Order of the template within the gallery.
- Resource
Type string - Azure resource type supported by the gallery.
- Type string
- Type of workbook supported by the workbook template.
- Category string
- Category for the gallery.
- Name string
- Name of the workbook template in the gallery.
- Order int
- Order of the template within the gallery.
- Resource
Type string - Azure resource type supported by the gallery.
- Type string
- Type of workbook supported by the workbook template.
- category String
- Category for the gallery.
- name String
- Name of the workbook template in the gallery.
- order Integer
- Order of the template within the gallery.
- resource
Type String - Azure resource type supported by the gallery.
- type String
- Type of workbook supported by the workbook template.
- category string
- Category for the gallery.
- name string
- Name of the workbook template in the gallery.
- order number
- Order of the template within the gallery.
- resource
Type string - Azure resource type supported by the gallery.
- type string
- Type of workbook supported by the workbook template.
- category str
- Category for the gallery.
- name str
- Name of the workbook template in the gallery.
- order int
- Order of the template within the gallery.
- resource_
type str - Azure resource type supported by the gallery.
- type str
- Type of workbook supported by the workbook template.
- category String
- Category for the gallery.
- name String
- Name of the workbook template in the gallery.
- order Number
- Order of the template within the gallery.
- resource
Type String - Azure resource type supported by the gallery.
- type String
- Type of workbook supported by the workbook template.
WorkbookTemplateLocalizedGallery, WorkbookTemplateLocalizedGalleryArgs
- Galleries
List<Pulumi.
Azure Native. Insights. Inputs. Workbook Template Gallery> - Workbook galleries supported by the template.
- Template
Data object - Valid JSON object containing workbook template payload.
- Galleries
[]Workbook
Template Gallery - Workbook galleries supported by the template.
- Template
Data interface{} - Valid JSON object containing workbook template payload.
- galleries
List<Workbook
Template Gallery> - Workbook galleries supported by the template.
- template
Data Object - Valid JSON object containing workbook template payload.
- galleries
Workbook
Template Gallery[] - Workbook galleries supported by the template.
- template
Data any - Valid JSON object containing workbook template payload.
- galleries
Sequence[Workbook
Template Gallery] - Workbook galleries supported by the template.
- template_
data Any - Valid JSON object containing workbook template payload.
- galleries List<Property Map>
- Workbook galleries supported by the template.
- template
Data Any - Valid JSON object containing workbook template payload.
WorkbookTemplateLocalizedGalleryResponse, WorkbookTemplateLocalizedGalleryResponseArgs
- Galleries
List<Pulumi.
Azure Native. Insights. Inputs. Workbook Template Gallery Response> - Workbook galleries supported by the template.
- Template
Data object - Valid JSON object containing workbook template payload.
- Galleries
[]Workbook
Template Gallery Response - Workbook galleries supported by the template.
- Template
Data interface{} - Valid JSON object containing workbook template payload.
- galleries
List<Workbook
Template Gallery Response> - Workbook galleries supported by the template.
- template
Data Object - Valid JSON object containing workbook template payload.
- galleries
Workbook
Template Gallery Response[] - Workbook galleries supported by the template.
- template
Data any - Valid JSON object containing workbook template payload.
- galleries
Sequence[Workbook
Template Gallery Response] - Workbook galleries supported by the template.
- template_
data Any - Valid JSON object containing workbook template payload.
- galleries List<Property Map>
- Workbook galleries supported by the template.
- template
Data Any - Valid JSON object containing workbook template payload.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:insights:WorkbookTemplate testtemplate2 /subscriptions/50359d91-7b9d-4823-85af-eb298a61ba95/resourceGroups/testrg/providers/microsoft.insights/workbooktemplates/testtemplate2
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0