published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Resource for creating a Splunk connector.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
// Example 1: Username/Password Authentication (New Block Format)
const usernamePassword = new harness.platform.SplunkConnector("username_password", {
identifier: "splunk_userpass",
name: "Splunk Username/Password",
description: "Splunk connector with username/password authentication",
tags: ["env:production"],
url: "https://splunk.company.com:8089",
delegateSelectors: ["harness-delegate"],
accountId: "splunk_account_id",
usernamePassword: {
username: "splunk_user",
passwordRef: "account.splunk_password",
},
});
// Example 2: Bearer Token Authentication
const bearerToken = new harness.platform.SplunkConnector("bearer_token", {
identifier: "splunk_bearer",
name: "Splunk Bearer Token",
description: "Splunk connector with bearer token authentication",
tags: ["env:production"],
url: "https://splunk.company.com:8089",
delegateSelectors: ["harness-delegate"],
accountId: "splunk_account_id",
bearerToken: {
bearerTokenRef: "account.splunk_bearer_token",
},
});
// Example 3: HEC Token Authentication
const hecToken = new harness.platform.SplunkConnector("hec_token", {
identifier: "splunk_hec",
name: "Splunk HEC Token",
description: "Splunk connector with HEC token authentication",
tags: ["env:production"],
url: "https://splunk.company.com:8088",
delegateSelectors: ["harness-delegate"],
accountId: "splunk_account_id",
hecToken: {
hecTokenRef: "account.splunk_hec_token",
},
});
// Example 4: No Authentication
const noAuth = new harness.platform.SplunkConnector("no_auth", {
identifier: "splunk_no_auth",
name: "Splunk No Auth",
description: "Splunk connector without authentication",
tags: ["env:development"],
url: "https://splunk-dev.company.com:8089",
delegateSelectors: ["harness-delegate"],
accountId: "splunk_account_id",
noAuthentication: {},
});
// Example 5: Legacy Format (Deprecated but still supported)
const legacy = new harness.platform.SplunkConnector("legacy", {
identifier: "splunk_legacy",
name: "Splunk Legacy",
description: "Splunk connector using deprecated flat schema",
tags: ["deprecated"],
url: "https://splunk.company.com:8089",
delegateSelectors: ["harness-delegate"],
accountId: "splunk_account_id",
username: "username",
passwordRef: "account.secret_id",
});
import pulumi
import pulumi_harness as harness
# Example 1: Username/Password Authentication (New Block Format)
username_password = harness.platform.SplunkConnector("username_password",
identifier="splunk_userpass",
name="Splunk Username/Password",
description="Splunk connector with username/password authentication",
tags=["env:production"],
url="https://splunk.company.com:8089",
delegate_selectors=["harness-delegate"],
account_id="splunk_account_id",
username_password={
"username": "splunk_user",
"password_ref": "account.splunk_password",
})
# Example 2: Bearer Token Authentication
bearer_token = harness.platform.SplunkConnector("bearer_token",
identifier="splunk_bearer",
name="Splunk Bearer Token",
description="Splunk connector with bearer token authentication",
tags=["env:production"],
url="https://splunk.company.com:8089",
delegate_selectors=["harness-delegate"],
account_id="splunk_account_id",
bearer_token={
"bearer_token_ref": "account.splunk_bearer_token",
})
# Example 3: HEC Token Authentication
hec_token = harness.platform.SplunkConnector("hec_token",
identifier="splunk_hec",
name="Splunk HEC Token",
description="Splunk connector with HEC token authentication",
tags=["env:production"],
url="https://splunk.company.com:8088",
delegate_selectors=["harness-delegate"],
account_id="splunk_account_id",
hec_token={
"hec_token_ref": "account.splunk_hec_token",
})
# Example 4: No Authentication
no_auth = harness.platform.SplunkConnector("no_auth",
identifier="splunk_no_auth",
name="Splunk No Auth",
description="Splunk connector without authentication",
tags=["env:development"],
url="https://splunk-dev.company.com:8089",
delegate_selectors=["harness-delegate"],
account_id="splunk_account_id",
no_authentication={})
# Example 5: Legacy Format (Deprecated but still supported)
legacy = harness.platform.SplunkConnector("legacy",
identifier="splunk_legacy",
name="Splunk Legacy",
description="Splunk connector using deprecated flat schema",
tags=["deprecated"],
url="https://splunk.company.com:8089",
delegate_selectors=["harness-delegate"],
account_id="splunk_account_id",
username="username",
password_ref="account.secret_id")
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Example 1: Username/Password Authentication (New Block Format)
_, err := platform.NewSplunkConnector(ctx, "username_password", &platform.SplunkConnectorArgs{
Identifier: pulumi.String("splunk_userpass"),
Name: pulumi.String("Splunk Username/Password"),
Description: pulumi.String("Splunk connector with username/password authentication"),
Tags: pulumi.StringArray{
pulumi.String("env:production"),
},
Url: pulumi.String("https://splunk.company.com:8089"),
DelegateSelectors: pulumi.StringArray{
pulumi.String("harness-delegate"),
},
AccountId: pulumi.String("splunk_account_id"),
UsernamePassword: &platform.SplunkConnectorUsernamePasswordArgs{
Username: pulumi.String("splunk_user"),
PasswordRef: pulumi.String("account.splunk_password"),
},
})
if err != nil {
return err
}
// Example 2: Bearer Token Authentication
_, err = platform.NewSplunkConnector(ctx, "bearer_token", &platform.SplunkConnectorArgs{
Identifier: pulumi.String("splunk_bearer"),
Name: pulumi.String("Splunk Bearer Token"),
Description: pulumi.String("Splunk connector with bearer token authentication"),
Tags: pulumi.StringArray{
pulumi.String("env:production"),
},
Url: pulumi.String("https://splunk.company.com:8089"),
DelegateSelectors: pulumi.StringArray{
pulumi.String("harness-delegate"),
},
AccountId: pulumi.String("splunk_account_id"),
BearerToken: &platform.SplunkConnectorBearerTokenArgs{
BearerTokenRef: pulumi.String("account.splunk_bearer_token"),
},
})
if err != nil {
return err
}
// Example 3: HEC Token Authentication
_, err = platform.NewSplunkConnector(ctx, "hec_token", &platform.SplunkConnectorArgs{
Identifier: pulumi.String("splunk_hec"),
Name: pulumi.String("Splunk HEC Token"),
Description: pulumi.String("Splunk connector with HEC token authentication"),
Tags: pulumi.StringArray{
pulumi.String("env:production"),
},
Url: pulumi.String("https://splunk.company.com:8088"),
DelegateSelectors: pulumi.StringArray{
pulumi.String("harness-delegate"),
},
AccountId: pulumi.String("splunk_account_id"),
HecToken: &platform.SplunkConnectorHecTokenArgs{
HecTokenRef: pulumi.String("account.splunk_hec_token"),
},
})
if err != nil {
return err
}
// Example 4: No Authentication
_, err = platform.NewSplunkConnector(ctx, "no_auth", &platform.SplunkConnectorArgs{
Identifier: pulumi.String("splunk_no_auth"),
Name: pulumi.String("Splunk No Auth"),
Description: pulumi.String("Splunk connector without authentication"),
Tags: pulumi.StringArray{
pulumi.String("env:development"),
},
Url: pulumi.String("https://splunk-dev.company.com:8089"),
DelegateSelectors: pulumi.StringArray{
pulumi.String("harness-delegate"),
},
AccountId: pulumi.String("splunk_account_id"),
NoAuthentication: &platform.SplunkConnectorNoAuthenticationArgs{},
})
if err != nil {
return err
}
// Example 5: Legacy Format (Deprecated but still supported)
_, err = platform.NewSplunkConnector(ctx, "legacy", &platform.SplunkConnectorArgs{
Identifier: pulumi.String("splunk_legacy"),
Name: pulumi.String("Splunk Legacy"),
Description: pulumi.String("Splunk connector using deprecated flat schema"),
Tags: pulumi.StringArray{
pulumi.String("deprecated"),
},
Url: pulumi.String("https://splunk.company.com:8089"),
DelegateSelectors: pulumi.StringArray{
pulumi.String("harness-delegate"),
},
AccountId: pulumi.String("splunk_account_id"),
Username: pulumi.String("username"),
PasswordRef: pulumi.String("account.secret_id"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
// Example 1: Username/Password Authentication (New Block Format)
var usernamePassword = new Harness.Platform.SplunkConnector("username_password", new()
{
Identifier = "splunk_userpass",
Name = "Splunk Username/Password",
Description = "Splunk connector with username/password authentication",
Tags = new[]
{
"env:production",
},
Url = "https://splunk.company.com:8089",
DelegateSelectors = new[]
{
"harness-delegate",
},
AccountId = "splunk_account_id",
UsernamePassword = new Harness.Platform.Inputs.SplunkConnectorUsernamePasswordArgs
{
Username = "splunk_user",
PasswordRef = "account.splunk_password",
},
});
// Example 2: Bearer Token Authentication
var bearerToken = new Harness.Platform.SplunkConnector("bearer_token", new()
{
Identifier = "splunk_bearer",
Name = "Splunk Bearer Token",
Description = "Splunk connector with bearer token authentication",
Tags = new[]
{
"env:production",
},
Url = "https://splunk.company.com:8089",
DelegateSelectors = new[]
{
"harness-delegate",
},
AccountId = "splunk_account_id",
BearerToken = new Harness.Platform.Inputs.SplunkConnectorBearerTokenArgs
{
BearerTokenRef = "account.splunk_bearer_token",
},
});
// Example 3: HEC Token Authentication
var hecToken = new Harness.Platform.SplunkConnector("hec_token", new()
{
Identifier = "splunk_hec",
Name = "Splunk HEC Token",
Description = "Splunk connector with HEC token authentication",
Tags = new[]
{
"env:production",
},
Url = "https://splunk.company.com:8088",
DelegateSelectors = new[]
{
"harness-delegate",
},
AccountId = "splunk_account_id",
HecToken = new Harness.Platform.Inputs.SplunkConnectorHecTokenArgs
{
HecTokenRef = "account.splunk_hec_token",
},
});
// Example 4: No Authentication
var noAuth = new Harness.Platform.SplunkConnector("no_auth", new()
{
Identifier = "splunk_no_auth",
Name = "Splunk No Auth",
Description = "Splunk connector without authentication",
Tags = new[]
{
"env:development",
},
Url = "https://splunk-dev.company.com:8089",
DelegateSelectors = new[]
{
"harness-delegate",
},
AccountId = "splunk_account_id",
NoAuthentication = null,
});
// Example 5: Legacy Format (Deprecated but still supported)
var legacy = new Harness.Platform.SplunkConnector("legacy", new()
{
Identifier = "splunk_legacy",
Name = "Splunk Legacy",
Description = "Splunk connector using deprecated flat schema",
Tags = new[]
{
"deprecated",
},
Url = "https://splunk.company.com:8089",
DelegateSelectors = new[]
{
"harness-delegate",
},
AccountId = "splunk_account_id",
Username = "username",
PasswordRef = "account.secret_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.SplunkConnector;
import com.pulumi.harness.platform.SplunkConnectorArgs;
import com.pulumi.harness.platform.inputs.SplunkConnectorUsernamePasswordArgs;
import com.pulumi.harness.platform.inputs.SplunkConnectorBearerTokenArgs;
import com.pulumi.harness.platform.inputs.SplunkConnectorHecTokenArgs;
import com.pulumi.harness.platform.inputs.SplunkConnectorNoAuthenticationArgs;
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) {
// Example 1: Username/Password Authentication (New Block Format)
var usernamePassword = new SplunkConnector("usernamePassword", SplunkConnectorArgs.builder()
.identifier("splunk_userpass")
.name("Splunk Username/Password")
.description("Splunk connector with username/password authentication")
.tags("env:production")
.url("https://splunk.company.com:8089")
.delegateSelectors("harness-delegate")
.accountId("splunk_account_id")
.usernamePassword(SplunkConnectorUsernamePasswordArgs.builder()
.username("splunk_user")
.passwordRef("account.splunk_password")
.build())
.build());
// Example 2: Bearer Token Authentication
var bearerToken = new SplunkConnector("bearerToken", SplunkConnectorArgs.builder()
.identifier("splunk_bearer")
.name("Splunk Bearer Token")
.description("Splunk connector with bearer token authentication")
.tags("env:production")
.url("https://splunk.company.com:8089")
.delegateSelectors("harness-delegate")
.accountId("splunk_account_id")
.bearerToken(SplunkConnectorBearerTokenArgs.builder()
.bearerTokenRef("account.splunk_bearer_token")
.build())
.build());
// Example 3: HEC Token Authentication
var hecToken = new SplunkConnector("hecToken", SplunkConnectorArgs.builder()
.identifier("splunk_hec")
.name("Splunk HEC Token")
.description("Splunk connector with HEC token authentication")
.tags("env:production")
.url("https://splunk.company.com:8088")
.delegateSelectors("harness-delegate")
.accountId("splunk_account_id")
.hecToken(SplunkConnectorHecTokenArgs.builder()
.hecTokenRef("account.splunk_hec_token")
.build())
.build());
// Example 4: No Authentication
var noAuth = new SplunkConnector("noAuth", SplunkConnectorArgs.builder()
.identifier("splunk_no_auth")
.name("Splunk No Auth")
.description("Splunk connector without authentication")
.tags("env:development")
.url("https://splunk-dev.company.com:8089")
.delegateSelectors("harness-delegate")
.accountId("splunk_account_id")
.noAuthentication(SplunkConnectorNoAuthenticationArgs.builder()
.build())
.build());
// Example 5: Legacy Format (Deprecated but still supported)
var legacy = new SplunkConnector("legacy", SplunkConnectorArgs.builder()
.identifier("splunk_legacy")
.name("Splunk Legacy")
.description("Splunk connector using deprecated flat schema")
.tags("deprecated")
.url("https://splunk.company.com:8089")
.delegateSelectors("harness-delegate")
.accountId("splunk_account_id")
.username("username")
.passwordRef("account.secret_id")
.build());
}
}
resources:
# Example 1: Username/Password Authentication (New Block Format)
usernamePassword:
type: harness:platform:SplunkConnector
name: username_password
properties:
identifier: splunk_userpass
name: Splunk Username/Password
description: Splunk connector with username/password authentication
tags:
- env:production
url: https://splunk.company.com:8089
delegateSelectors:
- harness-delegate
accountId: splunk_account_id
usernamePassword:
username: splunk_user
passwordRef: account.splunk_password
# Example 2: Bearer Token Authentication
bearerToken:
type: harness:platform:SplunkConnector
name: bearer_token
properties:
identifier: splunk_bearer
name: Splunk Bearer Token
description: Splunk connector with bearer token authentication
tags:
- env:production
url: https://splunk.company.com:8089
delegateSelectors:
- harness-delegate
accountId: splunk_account_id
bearerToken:
bearerTokenRef: account.splunk_bearer_token
# Example 3: HEC Token Authentication
hecToken:
type: harness:platform:SplunkConnector
name: hec_token
properties:
identifier: splunk_hec
name: Splunk HEC Token
description: Splunk connector with HEC token authentication
tags:
- env:production
url: https://splunk.company.com:8088
delegateSelectors:
- harness-delegate
accountId: splunk_account_id
hecToken:
hecTokenRef: account.splunk_hec_token
# Example 4: No Authentication
noAuth:
type: harness:platform:SplunkConnector
name: no_auth
properties:
identifier: splunk_no_auth
name: Splunk No Auth
description: Splunk connector without authentication
tags:
- env:development
url: https://splunk-dev.company.com:8089
delegateSelectors:
- harness-delegate
accountId: splunk_account_id
noAuthentication: {}
# Example 5: Legacy Format (Deprecated but still supported)
legacy:
type: harness:platform:SplunkConnector
properties:
identifier: splunk_legacy
name: Splunk Legacy
description: Splunk connector using deprecated flat schema
tags:
- deprecated
url: https://splunk.company.com:8089
delegateSelectors:
- harness-delegate
accountId: splunk_account_id
username: username
passwordRef: account.secret_id
Create SplunkConnector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SplunkConnector(name: string, args: SplunkConnectorArgs, opts?: CustomResourceOptions);@overload
def SplunkConnector(resource_name: str,
args: SplunkConnectorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SplunkConnector(resource_name: str,
opts: Optional[ResourceOptions] = None,
identifier: Optional[str] = None,
url: Optional[str] = None,
account_id: Optional[str] = None,
name: Optional[str] = None,
hec_token: Optional[SplunkConnectorHecTokenArgs] = None,
description: Optional[str] = None,
delegate_selectors: Optional[Sequence[str]] = None,
no_authentication: Optional[SplunkConnectorNoAuthenticationArgs] = None,
org_id: Optional[str] = None,
password_ref: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
bearer_token: Optional[SplunkConnectorBearerTokenArgs] = None,
username: Optional[str] = None,
username_password: Optional[SplunkConnectorUsernamePasswordArgs] = None)func NewSplunkConnector(ctx *Context, name string, args SplunkConnectorArgs, opts ...ResourceOption) (*SplunkConnector, error)public SplunkConnector(string name, SplunkConnectorArgs args, CustomResourceOptions? opts = null)
public SplunkConnector(String name, SplunkConnectorArgs args)
public SplunkConnector(String name, SplunkConnectorArgs args, CustomResourceOptions options)
type: harness:platform:SplunkConnector
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 SplunkConnectorArgs
- 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 SplunkConnectorArgs
- 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 SplunkConnectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SplunkConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SplunkConnectorArgs
- 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 splunkConnectorResource = new Harness.Platform.SplunkConnector("splunkConnectorResource", new()
{
Identifier = "string",
Url = "string",
AccountId = "string",
Name = "string",
HecToken = new Harness.Platform.Inputs.SplunkConnectorHecTokenArgs
{
HecTokenRef = "string",
},
Description = "string",
DelegateSelectors = new[]
{
"string",
},
NoAuthentication = null,
OrgId = "string",
ProjectId = "string",
Tags = new[]
{
"string",
},
BearerToken = new Harness.Platform.Inputs.SplunkConnectorBearerTokenArgs
{
BearerTokenRef = "string",
},
UsernamePassword = new Harness.Platform.Inputs.SplunkConnectorUsernamePasswordArgs
{
PasswordRef = "string",
Username = "string",
},
});
example, err := platform.NewSplunkConnector(ctx, "splunkConnectorResource", &platform.SplunkConnectorArgs{
Identifier: pulumi.String("string"),
Url: pulumi.String("string"),
AccountId: pulumi.String("string"),
Name: pulumi.String("string"),
HecToken: &platform.SplunkConnectorHecTokenArgs{
HecTokenRef: pulumi.String("string"),
},
Description: pulumi.String("string"),
DelegateSelectors: pulumi.StringArray{
pulumi.String("string"),
},
NoAuthentication: &platform.SplunkConnectorNoAuthenticationArgs{},
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
BearerToken: &platform.SplunkConnectorBearerTokenArgs{
BearerTokenRef: pulumi.String("string"),
},
UsernamePassword: &platform.SplunkConnectorUsernamePasswordArgs{
PasswordRef: pulumi.String("string"),
Username: pulumi.String("string"),
},
})
var splunkConnectorResource = new SplunkConnector("splunkConnectorResource", SplunkConnectorArgs.builder()
.identifier("string")
.url("string")
.accountId("string")
.name("string")
.hecToken(SplunkConnectorHecTokenArgs.builder()
.hecTokenRef("string")
.build())
.description("string")
.delegateSelectors("string")
.noAuthentication(SplunkConnectorNoAuthenticationArgs.builder()
.build())
.orgId("string")
.projectId("string")
.tags("string")
.bearerToken(SplunkConnectorBearerTokenArgs.builder()
.bearerTokenRef("string")
.build())
.usernamePassword(SplunkConnectorUsernamePasswordArgs.builder()
.passwordRef("string")
.username("string")
.build())
.build());
splunk_connector_resource = harness.platform.SplunkConnector("splunkConnectorResource",
identifier="string",
url="string",
account_id="string",
name="string",
hec_token={
"hec_token_ref": "string",
},
description="string",
delegate_selectors=["string"],
no_authentication={},
org_id="string",
project_id="string",
tags=["string"],
bearer_token={
"bearer_token_ref": "string",
},
username_password={
"password_ref": "string",
"username": "string",
})
const splunkConnectorResource = new harness.platform.SplunkConnector("splunkConnectorResource", {
identifier: "string",
url: "string",
accountId: "string",
name: "string",
hecToken: {
hecTokenRef: "string",
},
description: "string",
delegateSelectors: ["string"],
noAuthentication: {},
orgId: "string",
projectId: "string",
tags: ["string"],
bearerToken: {
bearerTokenRef: "string",
},
usernamePassword: {
passwordRef: "string",
username: "string",
},
});
type: harness:platform:SplunkConnector
properties:
accountId: string
bearerToken:
bearerTokenRef: string
delegateSelectors:
- string
description: string
hecToken:
hecTokenRef: string
identifier: string
name: string
noAuthentication: {}
orgId: string
projectId: string
tags:
- string
url: string
usernamePassword:
passwordRef: string
username: string
SplunkConnector 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 SplunkConnector resource accepts the following input properties:
- Account
Id string - Splunk account id.
- Identifier string
- Unique identifier of the resource.
- Url string
- URL of the Splunk server.
- Bearer
Token SplunkConnector Bearer Token - Authenticate to Splunk using bearer token.
- Delegate
Selectors List<string> - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Hec
Token SplunkConnector Hec Token - Authenticate to Splunk using HEC (HTTP Event Collector) token.
- Name string
- Name of the resource.
- No
Authentication SplunkConnector No Authentication - No authentication required for Splunk.
- Org
Id string - Unique identifier of the organization.
- Password
Ref string - The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- Project
Id string - Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- Username string
- The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead.
- Username
Password SplunkConnector Username Password - Authenticate to Splunk using username and password.
- Account
Id string - Splunk account id.
- Identifier string
- Unique identifier of the resource.
- Url string
- URL of the Splunk server.
- Bearer
Token SplunkConnector Bearer Token Args - Authenticate to Splunk using bearer token.
- Delegate
Selectors []string - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Hec
Token SplunkConnector Hec Token Args - Authenticate to Splunk using HEC (HTTP Event Collector) token.
- Name string
- Name of the resource.
- No
Authentication SplunkConnector No Authentication Args - No authentication required for Splunk.
- Org
Id string - Unique identifier of the organization.
- Password
Ref string - The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- Project
Id string - Unique identifier of the project.
- []string
- Tags to associate with the resource.
- Username string
- The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead.
- Username
Password SplunkConnector Username Password Args - Authenticate to Splunk using username and password.
- account
Id String - Splunk account id.
- identifier String
- Unique identifier of the resource.
- url String
- URL of the Splunk server.
- bearer
Token SplunkConnector Bearer Token - Authenticate to Splunk using bearer token.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- hec
Token SplunkConnector Hec Token - Authenticate to Splunk using HEC (HTTP Event Collector) token.
- name String
- Name of the resource.
- no
Authentication SplunkConnector No Authentication - No authentication required for Splunk.
- org
Id String - Unique identifier of the organization.
- password
Ref String - The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- username String
- The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead.
- username
Password SplunkConnector Username Password - Authenticate to Splunk using username and password.
- account
Id string - Splunk account id.
- identifier string
- Unique identifier of the resource.
- url string
- URL of the Splunk server.
- bearer
Token SplunkConnector Bearer Token - Authenticate to Splunk using bearer token.
- delegate
Selectors string[] - Tags to filter delegates for connection.
- description string
- Description of the resource.
- hec
Token SplunkConnector Hec Token - Authenticate to Splunk using HEC (HTTP Event Collector) token.
- name string
- Name of the resource.
- no
Authentication SplunkConnector No Authentication - No authentication required for Splunk.
- org
Id string - Unique identifier of the organization.
- password
Ref string - The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- project
Id string - Unique identifier of the project.
- string[]
- Tags to associate with the resource.
- username string
- The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead.
- username
Password SplunkConnector Username Password - Authenticate to Splunk using username and password.
- account_
id str - Splunk account id.
- identifier str
- Unique identifier of the resource.
- url str
- URL of the Splunk server.
- bearer_
token SplunkConnector Bearer Token Args - Authenticate to Splunk using bearer token.
- delegate_
selectors Sequence[str] - Tags to filter delegates for connection.
- description str
- Description of the resource.
- hec_
token SplunkConnector Hec Token Args - Authenticate to Splunk using HEC (HTTP Event Collector) token.
- name str
- Name of the resource.
- no_
authentication SplunkConnector No Authentication Args - No authentication required for Splunk.
- org_
id str - Unique identifier of the organization.
- password_
ref str - The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- project_
id str - Unique identifier of the project.
- Sequence[str]
- Tags to associate with the resource.
- username str
- The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead.
- username_
password SplunkConnector Username Password Args - Authenticate to Splunk using username and password.
- account
Id String - Splunk account id.
- identifier String
- Unique identifier of the resource.
- url String
- URL of the Splunk server.
- bearer
Token Property Map - Authenticate to Splunk using bearer token.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- hec
Token Property Map - Authenticate to Splunk using HEC (HTTP Event Collector) token.
- name String
- Name of the resource.
- no
Authentication Property Map - No authentication required for Splunk.
- org
Id String - Unique identifier of the organization.
- password
Ref String - The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- username String
- The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead.
- username
Password Property Map - Authenticate to Splunk using username and password.
Outputs
All input properties are implicitly available as output properties. Additionally, the SplunkConnector 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 string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SplunkConnector Resource
Get an existing SplunkConnector 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?: SplunkConnectorState, opts?: CustomResourceOptions): SplunkConnector@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
bearer_token: Optional[SplunkConnectorBearerTokenArgs] = None,
delegate_selectors: Optional[Sequence[str]] = None,
description: Optional[str] = None,
hec_token: Optional[SplunkConnectorHecTokenArgs] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
no_authentication: Optional[SplunkConnectorNoAuthenticationArgs] = None,
org_id: Optional[str] = None,
password_ref: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
url: Optional[str] = None,
username: Optional[str] = None,
username_password: Optional[SplunkConnectorUsernamePasswordArgs] = None) -> SplunkConnectorfunc GetSplunkConnector(ctx *Context, name string, id IDInput, state *SplunkConnectorState, opts ...ResourceOption) (*SplunkConnector, error)public static SplunkConnector Get(string name, Input<string> id, SplunkConnectorState? state, CustomResourceOptions? opts = null)public static SplunkConnector get(String name, Output<String> id, SplunkConnectorState state, CustomResourceOptions options)resources: _: type: harness:platform:SplunkConnector 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.
- Account
Id string - Splunk account id.
- Bearer
Token SplunkConnector Bearer Token - Authenticate to Splunk using bearer token.
- Delegate
Selectors List<string> - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Hec
Token SplunkConnector Hec Token - Authenticate to Splunk using HEC (HTTP Event Collector) token.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- No
Authentication SplunkConnector No Authentication - No authentication required for Splunk.
- Org
Id string - Unique identifier of the organization.
- Password
Ref string - The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- Project
Id string - Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- Url string
- URL of the Splunk server.
- Username string
- The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead.
- Username
Password SplunkConnector Username Password - Authenticate to Splunk using username and password.
- Account
Id string - Splunk account id.
- Bearer
Token SplunkConnector Bearer Token Args - Authenticate to Splunk using bearer token.
- Delegate
Selectors []string - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Hec
Token SplunkConnector Hec Token Args - Authenticate to Splunk using HEC (HTTP Event Collector) token.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- No
Authentication SplunkConnector No Authentication Args - No authentication required for Splunk.
- Org
Id string - Unique identifier of the organization.
- Password
Ref string - The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- Project
Id string - Unique identifier of the project.
- []string
- Tags to associate with the resource.
- Url string
- URL of the Splunk server.
- Username string
- The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead.
- Username
Password SplunkConnector Username Password Args - Authenticate to Splunk using username and password.
- account
Id String - Splunk account id.
- bearer
Token SplunkConnector Bearer Token - Authenticate to Splunk using bearer token.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- hec
Token SplunkConnector Hec Token - Authenticate to Splunk using HEC (HTTP Event Collector) token.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- no
Authentication SplunkConnector No Authentication - No authentication required for Splunk.
- org
Id String - Unique identifier of the organization.
- password
Ref String - The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- url String
- URL of the Splunk server.
- username String
- The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead.
- username
Password SplunkConnector Username Password - Authenticate to Splunk using username and password.
- account
Id string - Splunk account id.
- bearer
Token SplunkConnector Bearer Token - Authenticate to Splunk using bearer token.
- delegate
Selectors string[] - Tags to filter delegates for connection.
- description string
- Description of the resource.
- hec
Token SplunkConnector Hec Token - Authenticate to Splunk using HEC (HTTP Event Collector) token.
- identifier string
- Unique identifier of the resource.
- name string
- Name of the resource.
- no
Authentication SplunkConnector No Authentication - No authentication required for Splunk.
- org
Id string - Unique identifier of the organization.
- password
Ref string - The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- project
Id string - Unique identifier of the project.
- string[]
- Tags to associate with the resource.
- url string
- URL of the Splunk server.
- username string
- The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead.
- username
Password SplunkConnector Username Password - Authenticate to Splunk using username and password.
- account_
id str - Splunk account id.
- bearer_
token SplunkConnector Bearer Token Args - Authenticate to Splunk using bearer token.
- delegate_
selectors Sequence[str] - Tags to filter delegates for connection.
- description str
- Description of the resource.
- hec_
token SplunkConnector Hec Token Args - Authenticate to Splunk using HEC (HTTP Event Collector) token.
- identifier str
- Unique identifier of the resource.
- name str
- Name of the resource.
- no_
authentication SplunkConnector No Authentication Args - No authentication required for Splunk.
- org_
id str - Unique identifier of the organization.
- password_
ref str - The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- project_
id str - Unique identifier of the project.
- Sequence[str]
- Tags to associate with the resource.
- url str
- URL of the Splunk server.
- username str
- The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead.
- username_
password SplunkConnector Username Password Args - Authenticate to Splunk using username and password.
- account
Id String - Splunk account id.
- bearer
Token Property Map - Authenticate to Splunk using bearer token.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- hec
Token Property Map - Authenticate to Splunk using HEC (HTTP Event Collector) token.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- no
Authentication Property Map - No authentication required for Splunk.
- org
Id String - Unique identifier of the organization.
- password
Ref String - The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- url String
- URL of the Splunk server.
- username String
- The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead.
- username
Password Property Map - Authenticate to Splunk using username and password.
Supporting Types
SplunkConnectorBearerToken, SplunkConnectorBearerTokenArgs
- Bearer
Token stringRef - Reference to the Harness secret containing the Splunk bearer token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- Bearer
Token stringRef - Reference to the Harness secret containing the Splunk bearer token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- bearer
Token StringRef - Reference to the Harness secret containing the Splunk bearer token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- bearer
Token stringRef - Reference to the Harness secret containing the Splunk bearer token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- bearer_
token_ strref - Reference to the Harness secret containing the Splunk bearer token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- bearer
Token StringRef - Reference to the Harness secret containing the Splunk bearer token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
SplunkConnectorHecToken, SplunkConnectorHecTokenArgs
- Hec
Token stringRef - Reference to the Harness secret containing the Splunk HEC token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- Hec
Token stringRef - Reference to the Harness secret containing the Splunk HEC token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- hec
Token StringRef - Reference to the Harness secret containing the Splunk HEC token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- hec
Token stringRef - Reference to the Harness secret containing the Splunk HEC token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- hec_
token_ strref - Reference to the Harness secret containing the Splunk HEC token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- hec
Token StringRef - Reference to the Harness secret containing the Splunk HEC token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
SplunkConnectorUsernamePassword, SplunkConnectorUsernamePasswordArgs
- Password
Ref string - Reference to a secret containing the password to use for authentication. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- Username string
- Username to use for authentication.
- Password
Ref string - Reference to a secret containing the password to use for authentication. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- Username string
- Username to use for authentication.
- password
Ref String - Reference to a secret containing the password to use for authentication. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- username String
- Username to use for authentication.
- password
Ref string - Reference to a secret containing the password to use for authentication. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- username string
- Username to use for authentication.
- password_
ref str - Reference to a secret containing the password to use for authentication. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- username str
- Username to use for authentication.
- password
Ref String - Reference to a secret containing the password to use for authentication. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- username String
- Username to use for authentication.
Import
The pulumi import command can be used, for example:
Import account level splunk connector
$ pulumi import harness:platform/splunkConnector:SplunkConnector example <connector_id>
Import org level splunk connector
$ pulumi import harness:platform/splunkConnector:SplunkConnector example <ord_id>/<connector_id>
Import project level splunk connector
$ pulumi import harness:platform/splunkConnector:SplunkConnector example <org_id>/<project_id>/<connector_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
published on Friday, Mar 20, 2026 by Pulumi
