pub struct TargetCreateSplunk {Show 13 fields
pub audience: Option<String>,
pub description: Option<String>,
pub json: Option<bool>,
pub key: Option<String>,
pub max_versions: Option<String>,
pub name: String,
pub password: Option<String>,
pub token: Option<String>,
pub token_owner: Option<String>,
pub uid_token: Option<String>,
pub url: String,
pub use_tls: Option<bool>,
pub username: Option<String>,
}Expand description
TargetCreateSplunk : targetCreateSplunk is a command that creates a new splunk target
Fields§
§audience: Option<String>Splunk token audience (required when using token authentication for rotation)
description: Option<String>Description of the object
json: Option<bool>Set output format to JSON
key: Option<String>The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
max_versions: Option<String>Set the maximum number of versions, limited by the account settings defaults.
name: StringTarget name
password: Option<String>Splunk Password (used when authenticating with username/password)
token: Option<String>Splunk Token (used when authenticating with token)
token_owner: Option<String>Splunk Token Owner (required when using token authentication for rotation)
uid_token: Option<String>The universal identity token, Required only for universal_identity authentication
url: StringSplunk server URL
use_tls: Option<bool>Use TLS certificate verification when connecting to the Splunk management API
username: Option<String>Splunk Username (used when authenticating with username/password)
Implementations§
Source§impl TargetCreateSplunk
impl TargetCreateSplunk
Sourcepub fn new(name: String, url: String) -> TargetCreateSplunk
pub fn new(name: String, url: String) -> TargetCreateSplunk
targetCreateSplunk is a command that creates a new splunk target
Trait Implementations§
Source§impl Clone for TargetCreateSplunk
impl Clone for TargetCreateSplunk
Source§fn clone(&self) -> TargetCreateSplunk
fn clone(&self) -> TargetCreateSplunk
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TargetCreateSplunk
impl Debug for TargetCreateSplunk
Source§impl Default for TargetCreateSplunk
impl Default for TargetCreateSplunk
Source§fn default() -> TargetCreateSplunk
fn default() -> TargetCreateSplunk
Source§impl<'de> Deserialize<'de> for TargetCreateSplunk
impl<'de> Deserialize<'de> for TargetCreateSplunk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TargetCreateSplunk
impl PartialEq for TargetCreateSplunk
Source§fn eq(&self, other: &TargetCreateSplunk) -> bool
fn eq(&self, other: &TargetCreateSplunk) -> bool
self and other values to be equal, and is used by ==.