logzio.GrafanaFolder
Explore with Pulumi AI
# Grafana Folder Provider
Provides a Logz.io Grafana folder resource. This can be used to create and manage Grafana folders in Logz.io.
- Learn more about Logz.io’s Grafana folder API in Logz.io Docs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as logzio from "@pulumi/logzio";
const myFolder = new logzio.GrafanaFolder("myFolder", {title: "another_title"});
import pulumi
import pulumi_logzio as logzio
my_folder = logzio.GrafanaFolder("myFolder", title="another_title")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/logzio/logzio"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := logzio.NewGrafanaFolder(ctx, "myFolder", &logzio.GrafanaFolderArgs{
Title: pulumi.String("another_title"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Logzio = Pulumi.Logzio;
return await Deployment.RunAsync(() =>
{
var myFolder = new Logzio.GrafanaFolder("myFolder", new()
{
Title = "another_title",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.logzio.GrafanaFolder;
import com.pulumi.logzio.GrafanaFolderArgs;
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 myFolder = new GrafanaFolder("myFolder", GrafanaFolderArgs.builder()
.title("another_title")
.build());
}
}
resources:
myFolder:
type: logzio:GrafanaFolder
properties:
title: another_title
Create GrafanaFolder Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GrafanaFolder(name: string, args: GrafanaFolderArgs, opts?: CustomResourceOptions);
@overload
def GrafanaFolder(resource_name: str,
args: GrafanaFolderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GrafanaFolder(resource_name: str,
opts: Optional[ResourceOptions] = None,
title: Optional[str] = None,
grafana_folder_id: Optional[str] = None)
func NewGrafanaFolder(ctx *Context, name string, args GrafanaFolderArgs, opts ...ResourceOption) (*GrafanaFolder, error)
public GrafanaFolder(string name, GrafanaFolderArgs args, CustomResourceOptions? opts = null)
public GrafanaFolder(String name, GrafanaFolderArgs args)
public GrafanaFolder(String name, GrafanaFolderArgs args, CustomResourceOptions options)
type: logzio:GrafanaFolder
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 GrafanaFolderArgs
- 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 GrafanaFolderArgs
- 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 GrafanaFolderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GrafanaFolderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GrafanaFolderArgs
- 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 grafanaFolderResource = new Logzio.GrafanaFolder("grafanaFolderResource", new()
{
Title = "string",
GrafanaFolderId = "string",
});
example, err := logzio.NewGrafanaFolder(ctx, "grafanaFolderResource", &logzio.GrafanaFolderArgs{
Title: pulumi.String("string"),
GrafanaFolderId: pulumi.String("string"),
})
var grafanaFolderResource = new GrafanaFolder("grafanaFolderResource", GrafanaFolderArgs.builder()
.title("string")
.grafanaFolderId("string")
.build());
grafana_folder_resource = logzio.GrafanaFolder("grafanaFolderResource",
title="string",
grafana_folder_id="string")
const grafanaFolderResource = new logzio.GrafanaFolder("grafanaFolderResource", {
title: "string",
grafanaFolderId: "string",
});
type: logzio:GrafanaFolder
properties:
grafanaFolderId: string
title: string
GrafanaFolder Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The GrafanaFolder resource accepts the following input properties:
- Title string
- Grafana
Folder stringId
- Title string
- Grafana
Folder stringId
- title String
- grafana
Folder StringId
- title string
- grafana
Folder stringId
- title str
- grafana_
folder_ strid
- title String
- grafana
Folder StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the GrafanaFolder resource produces the following output properties:
Look up Existing GrafanaFolder Resource
Get an existing GrafanaFolder resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GrafanaFolderState, opts?: CustomResourceOptions): GrafanaFolder
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
folder_id: Optional[float] = None,
grafana_folder_id: Optional[str] = None,
title: Optional[str] = None,
uid: Optional[str] = None,
url: Optional[str] = None,
version: Optional[float] = None) -> GrafanaFolder
func GetGrafanaFolder(ctx *Context, name string, id IDInput, state *GrafanaFolderState, opts ...ResourceOption) (*GrafanaFolder, error)
public static GrafanaFolder Get(string name, Input<string> id, GrafanaFolderState? state, CustomResourceOptions? opts = null)
public static GrafanaFolder get(String name, Output<String> id, GrafanaFolderState state, CustomResourceOptions options)
resources: _: type: logzio:GrafanaFolder get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
Package Details
- Repository
- logzio logzio/terraform-provider-logzio
- License
- Notes
- This Pulumi package is based on the
logzio
Terraform Provider.