Splunk

The Splunk provider for Pulumi can be used to provision any of the cloud resources available in Splunk. The Splunk provider must be configured with credentials to deploy and update resources in Splunk.

See the full API documentation for complete details of the available Splunk provider APIs.

Setup

The Splunk provider supports several options for providing access to Splunk credentials. See the Splunk setup page for details.

Example

const splunk = require("@pulumi/splunk")

const adminSamlGroup = new splunk.AdminSamlGroups("demo-ts-group", {
  roles: ["admin", "power"]
});
import * as splunk from "@pulumi/splunk";

const adminSamlGroup = new splunk.AdminSamlGroups("demo-ts-group", {
  roles: ["admin", "power"]
});

import pulumi_splunk as splunk

saml_group = splunk.AdminSamlGroups("demo-py-group", roles=[
  "admin",
  "power",
])
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi-splunk/sdk/go/splunk"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		group, err := splunk.NewAdminSamlGroups(ctx, "demo", &splunk.AdminSamlGroupsArgs{
            Roles: pulumi.StringArray{
                pulumi.String("admin"),
                pulumi.String("power"),
            }
		})
		if err != nil {
			return err
		}

		return nil
	})
}
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Splunk;

class Program
{
    static Task Main() =>
        Deployment.Run(() => {
            var group = new AdminSamlGroups("saml-group", new AdminSamlGroupsArgs
            {
                Roles =
                {
                  "admin",
                  "power",
                }
            });
        });
}

Libraries

The following packages are available in packager managers:

The Splunk provider is open source and available in the pulumi/pulumi-splunk repo.