1. Packages
  2. Incapsula Provider
  3. API Docs
  4. SiemSplunkConnection
incapsula 3.32.1 published on Monday, Apr 14, 2025 by imperva

incapsula.SiemSplunkConnection

Explore with Pulumi AI

incapsula logo
incapsula 3.32.1 published on Monday, Apr 14, 2025 by imperva

    Provides a customer Splunk connection configuration resource.

    The follow-on action is to use the incapsula.SiemLogConfiguration resource to configure the connection.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as incapsula from "@pulumi/incapsula";
    
    const exampleSiemSplunkConnection = new incapsula.SiemSplunkConnection("exampleSiemSplunkConnection", {
        accountId: "1234567",
        connectionName: "APB siem-logs Splunk connection",
        disableCertVerification: false,
        host: "my.splunk.com",
        port: 8080,
        token: "Sensitive data placeholder",
    });
    
    import pulumi
    import pulumi_incapsula as incapsula
    
    example_siem_splunk_connection = incapsula.SiemSplunkConnection("exampleSiemSplunkConnection",
        account_id="1234567",
        connection_name="APB siem-logs Splunk connection",
        disable_cert_verification=False,
        host="my.splunk.com",
        port=8080,
        token="Sensitive data placeholder")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/incapsula/v3/incapsula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := incapsula.NewSiemSplunkConnection(ctx, "exampleSiemSplunkConnection", &incapsula.SiemSplunkConnectionArgs{
    			AccountId:               pulumi.String("1234567"),
    			ConnectionName:          pulumi.String("APB siem-logs Splunk connection"),
    			DisableCertVerification: pulumi.Bool(false),
    			Host:                    pulumi.String("my.splunk.com"),
    			Port:                    pulumi.Float64(8080),
    			Token:                   pulumi.String("Sensitive data placeholder"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Incapsula = Pulumi.Incapsula;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleSiemSplunkConnection = new Incapsula.SiemSplunkConnection("exampleSiemSplunkConnection", new()
        {
            AccountId = "1234567",
            ConnectionName = "APB siem-logs Splunk connection",
            DisableCertVerification = false,
            Host = "my.splunk.com",
            Port = 8080,
            Token = "Sensitive data placeholder",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.incapsula.SiemSplunkConnection;
    import com.pulumi.incapsula.SiemSplunkConnectionArgs;
    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 exampleSiemSplunkConnection = new SiemSplunkConnection("exampleSiemSplunkConnection", SiemSplunkConnectionArgs.builder()
                .accountId("1234567")
                .connectionName("APB siem-logs Splunk connection")
                .disableCertVerification(false)
                .host("my.splunk.com")
                .port(8080)
                .token("Sensitive data placeholder")
                .build());
    
        }
    }
    
    resources:
      exampleSiemSplunkConnection:
        type: incapsula:SiemSplunkConnection
        properties:
          accountId: '1234567'
          connectionName: APB siem-logs Splunk connection
          disableCertVerification: false
          host: my.splunk.com
          port: 8080
          token: Sensitive data placeholder
    

    NOTE: For security reasons, when a resource is exported, the token field will be replaced with the value Sensitive data placeholder. The actual values are still used in the communication with the Splunk server. Note - This resource cannot be updated unless you specify a real value for the token field instead of Sensitive data placeholder. To clarify, none of the fields in exported resources can be updated unless a real token value is set.

    Example of exported resource:

    import * as pulumi from "@pulumi/pulumi";
    import * as incapsula from "@pulumi/incapsula";
    
    const exampleSiemSplunkConnection = new incapsula.SiemSplunkConnection("exampleSiemSplunkConnection", {
        accountId: "1234567",
        connectionName: "APB siem-logs Splunk connection",
        disableCertVerification: false,
        host: "my.splunk.com",
        port: 8080,
        token: "Sensitive data placeholder",
    });
    
    import pulumi
    import pulumi_incapsula as incapsula
    
    example_siem_splunk_connection = incapsula.SiemSplunkConnection("exampleSiemSplunkConnection",
        account_id="1234567",
        connection_name="APB siem-logs Splunk connection",
        disable_cert_verification=False,
        host="my.splunk.com",
        port=8080,
        token="Sensitive data placeholder")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/incapsula/v3/incapsula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := incapsula.NewSiemSplunkConnection(ctx, "exampleSiemSplunkConnection", &incapsula.SiemSplunkConnectionArgs{
    			AccountId:               pulumi.String("1234567"),
    			ConnectionName:          pulumi.String("APB siem-logs Splunk connection"),
    			DisableCertVerification: pulumi.Bool(false),
    			Host:                    pulumi.String("my.splunk.com"),
    			Port:                    pulumi.Float64(8080),
    			Token:                   pulumi.String("Sensitive data placeholder"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Incapsula = Pulumi.Incapsula;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleSiemSplunkConnection = new Incapsula.SiemSplunkConnection("exampleSiemSplunkConnection", new()
        {
            AccountId = "1234567",
            ConnectionName = "APB siem-logs Splunk connection",
            DisableCertVerification = false,
            Host = "my.splunk.com",
            Port = 8080,
            Token = "Sensitive data placeholder",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.incapsula.SiemSplunkConnection;
    import com.pulumi.incapsula.SiemSplunkConnectionArgs;
    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 exampleSiemSplunkConnection = new SiemSplunkConnection("exampleSiemSplunkConnection", SiemSplunkConnectionArgs.builder()
                .accountId("1234567")
                .connectionName("APB siem-logs Splunk connection")
                .disableCertVerification(false)
                .host("my.splunk.com")
                .port(8080)
                .token("Sensitive data placeholder")
                .build());
    
        }
    }
    
    resources:
      exampleSiemSplunkConnection:
        type: incapsula:SiemSplunkConnection
        properties:
          accountId: '1234567'
          connectionName: APB siem-logs Splunk connection
          disableCertVerification: false
          host: my.splunk.com
          port: 8080
          token: Sensitive data placeholder
    

    Create SiemSplunkConnection Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SiemSplunkConnection(name: string, args: SiemSplunkConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def SiemSplunkConnection(resource_name: str,
                             args: SiemSplunkConnectionArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def SiemSplunkConnection(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             connection_name: Optional[str] = None,
                             host: Optional[str] = None,
                             port: Optional[float] = None,
                             account_id: Optional[str] = None,
                             disable_cert_verification: Optional[bool] = None,
                             input_hash: Optional[str] = None,
                             siem_splunk_connection_id: Optional[str] = None,
                             token: Optional[str] = None)
    func NewSiemSplunkConnection(ctx *Context, name string, args SiemSplunkConnectionArgs, opts ...ResourceOption) (*SiemSplunkConnection, error)
    public SiemSplunkConnection(string name, SiemSplunkConnectionArgs args, CustomResourceOptions? opts = null)
    public SiemSplunkConnection(String name, SiemSplunkConnectionArgs args)
    public SiemSplunkConnection(String name, SiemSplunkConnectionArgs args, CustomResourceOptions options)
    
    type: incapsula:SiemSplunkConnection
    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 SiemSplunkConnectionArgs
    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 SiemSplunkConnectionArgs
    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 SiemSplunkConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SiemSplunkConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SiemSplunkConnectionArgs
    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 siemSplunkConnectionResource = new Incapsula.SiemSplunkConnection("siemSplunkConnectionResource", new()
    {
        ConnectionName = "string",
        Host = "string",
        Port = 0,
        AccountId = "string",
        DisableCertVerification = false,
        InputHash = "string",
        SiemSplunkConnectionId = "string",
        Token = "string",
    });
    
    example, err := incapsula.NewSiemSplunkConnection(ctx, "siemSplunkConnectionResource", &incapsula.SiemSplunkConnectionArgs{
    	ConnectionName:          pulumi.String("string"),
    	Host:                    pulumi.String("string"),
    	Port:                    pulumi.Float64(0),
    	AccountId:               pulumi.String("string"),
    	DisableCertVerification: pulumi.Bool(false),
    	InputHash:               pulumi.String("string"),
    	SiemSplunkConnectionId:  pulumi.String("string"),
    	Token:                   pulumi.String("string"),
    })
    
    var siemSplunkConnectionResource = new SiemSplunkConnection("siemSplunkConnectionResource", SiemSplunkConnectionArgs.builder()
        .connectionName("string")
        .host("string")
        .port(0)
        .accountId("string")
        .disableCertVerification(false)
        .inputHash("string")
        .siemSplunkConnectionId("string")
        .token("string")
        .build());
    
    siem_splunk_connection_resource = incapsula.SiemSplunkConnection("siemSplunkConnectionResource",
        connection_name="string",
        host="string",
        port=0,
        account_id="string",
        disable_cert_verification=False,
        input_hash="string",
        siem_splunk_connection_id="string",
        token="string")
    
    const siemSplunkConnectionResource = new incapsula.SiemSplunkConnection("siemSplunkConnectionResource", {
        connectionName: "string",
        host: "string",
        port: 0,
        accountId: "string",
        disableCertVerification: false,
        inputHash: "string",
        siemSplunkConnectionId: "string",
        token: "string",
    });
    
    type: incapsula:SiemSplunkConnection
    properties:
        accountId: string
        connectionName: string
        disableCertVerification: false
        host: string
        inputHash: string
        port: 0
        siemSplunkConnectionId: string
        token: string
    

    SiemSplunkConnection 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 SiemSplunkConnection resource accepts the following input properties:

    ConnectionName string
    Unique connection name.
    Host string
    Splunk server host.
    Port double
    Splunk server port.
    AccountId string
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    DisableCertVerification bool
    Flag to disable/enable server certificate. Used when a self-signed certificate applied on the server side.
    InputHash string
    inputHash
    SiemSplunkConnectionId string
    Unique identifier of the customer’s Splunk connection.
    Token string
    Splunk access token - Version 4 UUID format.
    ConnectionName string
    Unique connection name.
    Host string
    Splunk server host.
    Port float64
    Splunk server port.
    AccountId string
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    DisableCertVerification bool
    Flag to disable/enable server certificate. Used when a self-signed certificate applied on the server side.
    InputHash string
    inputHash
    SiemSplunkConnectionId string
    Unique identifier of the customer’s Splunk connection.
    Token string
    Splunk access token - Version 4 UUID format.
    connectionName String
    Unique connection name.
    host String
    Splunk server host.
    port Double
    Splunk server port.
    accountId String
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    disableCertVerification Boolean
    Flag to disable/enable server certificate. Used when a self-signed certificate applied on the server side.
    inputHash String
    inputHash
    siemSplunkConnectionId String
    Unique identifier of the customer’s Splunk connection.
    token String
    Splunk access token - Version 4 UUID format.
    connectionName string
    Unique connection name.
    host string
    Splunk server host.
    port number
    Splunk server port.
    accountId string
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    disableCertVerification boolean
    Flag to disable/enable server certificate. Used when a self-signed certificate applied on the server side.
    inputHash string
    inputHash
    siemSplunkConnectionId string
    Unique identifier of the customer’s Splunk connection.
    token string
    Splunk access token - Version 4 UUID format.
    connection_name str
    Unique connection name.
    host str
    Splunk server host.
    port float
    Splunk server port.
    account_id str
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    disable_cert_verification bool
    Flag to disable/enable server certificate. Used when a self-signed certificate applied on the server side.
    input_hash str
    inputHash
    siem_splunk_connection_id str
    Unique identifier of the customer’s Splunk connection.
    token str
    Splunk access token - Version 4 UUID format.
    connectionName String
    Unique connection name.
    host String
    Splunk server host.
    port Number
    Splunk server port.
    accountId String
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    disableCertVerification Boolean
    Flag to disable/enable server certificate. Used when a self-signed certificate applied on the server side.
    inputHash String
    inputHash
    siemSplunkConnectionId String
    Unique identifier of the customer’s Splunk connection.
    token String
    Splunk access token - Version 4 UUID format.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SiemSplunkConnection 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 SiemSplunkConnection Resource

    Get an existing SiemSplunkConnection 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?: SiemSplunkConnectionState, opts?: CustomResourceOptions): SiemSplunkConnection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            connection_name: Optional[str] = None,
            disable_cert_verification: Optional[bool] = None,
            host: Optional[str] = None,
            input_hash: Optional[str] = None,
            port: Optional[float] = None,
            siem_splunk_connection_id: Optional[str] = None,
            token: Optional[str] = None) -> SiemSplunkConnection
    func GetSiemSplunkConnection(ctx *Context, name string, id IDInput, state *SiemSplunkConnectionState, opts ...ResourceOption) (*SiemSplunkConnection, error)
    public static SiemSplunkConnection Get(string name, Input<string> id, SiemSplunkConnectionState? state, CustomResourceOptions? opts = null)
    public static SiemSplunkConnection get(String name, Output<String> id, SiemSplunkConnectionState state, CustomResourceOptions options)
    resources:  _:    type: incapsula:SiemSplunkConnection    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.
    The following state arguments are supported:
    AccountId string
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    ConnectionName string
    Unique connection name.
    DisableCertVerification bool
    Flag to disable/enable server certificate. Used when a self-signed certificate applied on the server side.
    Host string
    Splunk server host.
    InputHash string
    inputHash
    Port double
    Splunk server port.
    SiemSplunkConnectionId string
    Unique identifier of the customer’s Splunk connection.
    Token string
    Splunk access token - Version 4 UUID format.
    AccountId string
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    ConnectionName string
    Unique connection name.
    DisableCertVerification bool
    Flag to disable/enable server certificate. Used when a self-signed certificate applied on the server side.
    Host string
    Splunk server host.
    InputHash string
    inputHash
    Port float64
    Splunk server port.
    SiemSplunkConnectionId string
    Unique identifier of the customer’s Splunk connection.
    Token string
    Splunk access token - Version 4 UUID format.
    accountId String
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    connectionName String
    Unique connection name.
    disableCertVerification Boolean
    Flag to disable/enable server certificate. Used when a self-signed certificate applied on the server side.
    host String
    Splunk server host.
    inputHash String
    inputHash
    port Double
    Splunk server port.
    siemSplunkConnectionId String
    Unique identifier of the customer’s Splunk connection.
    token String
    Splunk access token - Version 4 UUID format.
    accountId string
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    connectionName string
    Unique connection name.
    disableCertVerification boolean
    Flag to disable/enable server certificate. Used when a self-signed certificate applied on the server side.
    host string
    Splunk server host.
    inputHash string
    inputHash
    port number
    Splunk server port.
    siemSplunkConnectionId string
    Unique identifier of the customer’s Splunk connection.
    token string
    Splunk access token - Version 4 UUID format.
    account_id str
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    connection_name str
    Unique connection name.
    disable_cert_verification bool
    Flag to disable/enable server certificate. Used when a self-signed certificate applied on the server side.
    host str
    Splunk server host.
    input_hash str
    inputHash
    port float
    Splunk server port.
    siem_splunk_connection_id str
    Unique identifier of the customer’s Splunk connection.
    token str
    Splunk access token - Version 4 UUID format.
    accountId String
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    connectionName String
    Unique connection name.
    disableCertVerification Boolean
    Flag to disable/enable server certificate. Used when a self-signed certificate applied on the server side.
    host String
    Splunk server host.
    inputHash String
    inputHash
    port Number
    Splunk server port.
    siemSplunkConnectionId String
    Unique identifier of the customer’s Splunk connection.
    token String
    Splunk access token - Version 4 UUID format.

    Import

    Customer connection can be imported using accountId/connectionId:

    $ pulumi import incapsula:index/siemSplunkConnection:SiemSplunkConnection example_siem_splunk_connection accountId/connectionId
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    incapsula imperva/terraform-provider-incapsula
    License
    Notes
    This Pulumi package is based on the incapsula Terraform Provider.
    incapsula logo
    incapsula 3.32.1 published on Monday, Apr 14, 2025 by imperva