DataUiViews
# Resource: splunk.DataUiViews
Create and manage splunk dashboards/views.
Example Usage
using Pulumi;
using Splunk = Pulumi.Splunk;
class MyStack : Stack
{
public MyStack()
{
var dashboard = new Splunk.DataUiViews("dashboard", new Splunk.DataUiViewsArgs
{
Acl = new Splunk.Inputs.DataUiViewsAclArgs
{
App = "search",
Owner = "admin",
},
EaiData = @" <dashboard>
<label>
Terraform Test Dashboard
</label>
</dashboard>
",
});
}
}
package main
import (
"fmt"
"github.com/pulumi/pulumi-splunk/sdk/go/splunk"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := splunk.NewDataUiViews(ctx, "dashboard", &splunk.DataUiViewsArgs{
Acl: &splunk.DataUiViewsAclArgs{
App: pulumi.String("search"),
Owner: pulumi.String("admin"),
},
EaiData: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v", " <dashboard>\n", " <label> \n", " Terraform Test Dashboard\n", " </label>\n", " </dashboard>\n", " \n")),
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_splunk as splunk
dashboard = splunk.DataUiViews("dashboard",
acl=splunk.DataUiViewsAclArgs(
app="search",
owner="admin",
),
eai_data=""" <dashboard>
<label>
Terraform Test Dashboard
</label>
</dashboard>
""")
import * as pulumi from "@pulumi/pulumi";
import * as splunk from "@pulumi/splunk";
const dashboard = new splunk.DataUiViews("dashboard", {
acl: {
app: "search",
owner: "admin",
},
eaiData: ` <dashboard>
<label>
Terraform Test Dashboard
</label>
</dashboard>
`,
});
Create a DataUiViews Resource
new DataUiViews(name: string, args: DataUiViewsArgs, opts?: CustomResourceOptions);
def DataUiViews(resource_name: str, opts: Optional[ResourceOptions] = None, acl: Optional[DataUiViewsAclArgs] = None, eai_data: Optional[str] = None, name: Optional[str] = None)
func NewDataUiViews(ctx *Context, name string, args DataUiViewsArgs, opts ...ResourceOption) (*DataUiViews, error)
public DataUiViews(string name, DataUiViewsArgs args, CustomResourceOptions? opts = null)
- name string
- The unique name of the resource.
- args DataUiViewsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DataUiViewsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataUiViewsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
DataUiViews Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The DataUiViews resource accepts the following input properties:
- Eai
Data string Dashboard XML definition.
- Acl
Data
Ui Views Acl Args - Name string
Dashboard name. *
eai:data
- (Required) Dashboard XML definition.
- Eai
Data string Dashboard XML definition.
- Acl
Data
Ui Views Acl - Name string
Dashboard name. *
eai:data
- (Required) Dashboard XML definition.
- eai
Data string Dashboard XML definition.
- acl
Data
Ui Views Acl - name string
Dashboard name. *
eai:data
- (Required) Dashboard XML definition.
- eai_
data str Dashboard XML definition.
- acl
Data
Ui Views Acl Args - name str
Dashboard name. *
eai:data
- (Required) Dashboard XML definition.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataUiViews resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing DataUiViews Resource
Get an existing DataUiViews 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?: DataUiViewsState, opts?: CustomResourceOptions): DataUiViews
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, acl: Optional[DataUiViewsAclArgs] = None, eai_data: Optional[str] = None, name: Optional[str] = None) -> DataUiViews
func GetDataUiViews(ctx *Context, name string, id IDInput, state *DataUiViewsState, opts ...ResourceOption) (*DataUiViews, error)
public static DataUiViews Get(string name, Input<string> id, DataUiViewsState? state, CustomResourceOptions? opts = null)
- 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.
The following state arguments are supported:
- Acl
Data
Ui Views Acl Args - Eai
Data string Dashboard XML definition.
- Name string
Dashboard name. *
eai:data
- (Required) Dashboard XML definition.
- Acl
Data
Ui Views Acl - Eai
Data string Dashboard XML definition.
- Name string
Dashboard name. *
eai:data
- (Required) Dashboard XML definition.
- acl
Data
Ui Views Acl - eai
Data string Dashboard XML definition.
- name string
Dashboard name. *
eai:data
- (Required) Dashboard XML definition.
- acl
Data
Ui Views Acl Args - eai_
data str Dashboard XML definition.
- name str
Dashboard name. *
eai:data
- (Required) Dashboard XML definition.
Supporting Types
DataUiViewsAcl
Package Details
- Repository
- https://github.com/pulumi/pulumi-splunk
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
splunk
Terraform Provider.