splunk.AuthenticationUsers
Explore with Pulumi AI
# Resource: splunk.AuthenticationUsers
Create and update user information or delete the user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as splunk from "@pulumi/splunk";
const user01 = new splunk.AuthenticationUsers("user01", {
name: "user01",
email: "user01@example.com",
password: "password01",
forceChangePass: false,
roles: ["terraform-user01-role"],
});
import pulumi
import pulumi_splunk as splunk
user01 = splunk.AuthenticationUsers("user01",
name="user01",
email="user01@example.com",
password="password01",
force_change_pass=False,
roles=["terraform-user01-role"])
package main
import (
"github.com/pulumi/pulumi-splunk/sdk/go/splunk"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := splunk.NewAuthenticationUsers(ctx, "user01", &splunk.AuthenticationUsersArgs{
Name: pulumi.String("user01"),
Email: pulumi.String("user01@example.com"),
Password: pulumi.String("password01"),
ForceChangePass: pulumi.Bool(false),
Roles: pulumi.StringArray{
pulumi.String("terraform-user01-role"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Splunk = Pulumi.Splunk;
return await Deployment.RunAsync(() =>
{
var user01 = new Splunk.AuthenticationUsers("user01", new()
{
Name = "user01",
Email = "user01@example.com",
Password = "password01",
ForceChangePass = false,
Roles = new[]
{
"terraform-user01-role",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.splunk.AuthenticationUsers;
import com.pulumi.splunk.AuthenticationUsersArgs;
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 user01 = new AuthenticationUsers("user01", AuthenticationUsersArgs.builder()
.name("user01")
.email("user01@example.com")
.password("password01")
.forceChangePass(false)
.roles("terraform-user01-role")
.build());
}
}
resources:
user01:
type: splunk:AuthenticationUsers
properties:
name: user01
email: user01@example.com
password: password01
forceChangePass: false
roles:
- terraform-user01-role
Create AuthenticationUsers Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuthenticationUsers(name: string, args?: AuthenticationUsersArgs, opts?: CustomResourceOptions);
@overload
def AuthenticationUsers(resource_name: str,
args: Optional[AuthenticationUsersArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AuthenticationUsers(resource_name: str,
opts: Optional[ResourceOptions] = None,
default_app: Optional[str] = None,
email: Optional[str] = None,
force_change_pass: Optional[bool] = None,
name: Optional[str] = None,
password: Optional[str] = None,
realname: Optional[str] = None,
restart_background_jobs: Optional[bool] = None,
roles: Optional[Sequence[str]] = None,
tz: Optional[str] = None)
func NewAuthenticationUsers(ctx *Context, name string, args *AuthenticationUsersArgs, opts ...ResourceOption) (*AuthenticationUsers, error)
public AuthenticationUsers(string name, AuthenticationUsersArgs? args = null, CustomResourceOptions? opts = null)
public AuthenticationUsers(String name, AuthenticationUsersArgs args)
public AuthenticationUsers(String name, AuthenticationUsersArgs args, CustomResourceOptions options)
type: splunk:AuthenticationUsers
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 AuthenticationUsersArgs
- 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 AuthenticationUsersArgs
- 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 AuthenticationUsersArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthenticationUsersArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuthenticationUsersArgs
- 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 authenticationUsersResource = new Splunk.AuthenticationUsers("authenticationUsersResource", new()
{
DefaultApp = "string",
Email = "string",
ForceChangePass = false,
Name = "string",
Password = "string",
Realname = "string",
RestartBackgroundJobs = false,
Roles = new[]
{
"string",
},
Tz = "string",
});
example, err := splunk.NewAuthenticationUsers(ctx, "authenticationUsersResource", &splunk.AuthenticationUsersArgs{
DefaultApp: pulumi.String("string"),
Email: pulumi.String("string"),
ForceChangePass: pulumi.Bool(false),
Name: pulumi.String("string"),
Password: pulumi.String("string"),
Realname: pulumi.String("string"),
RestartBackgroundJobs: pulumi.Bool(false),
Roles: pulumi.StringArray{
pulumi.String("string"),
},
Tz: pulumi.String("string"),
})
var authenticationUsersResource = new AuthenticationUsers("authenticationUsersResource", AuthenticationUsersArgs.builder()
.defaultApp("string")
.email("string")
.forceChangePass(false)
.name("string")
.password("string")
.realname("string")
.restartBackgroundJobs(false)
.roles("string")
.tz("string")
.build());
authentication_users_resource = splunk.AuthenticationUsers("authenticationUsersResource",
default_app="string",
email="string",
force_change_pass=False,
name="string",
password="string",
realname="string",
restart_background_jobs=False,
roles=["string"],
tz="string")
const authenticationUsersResource = new splunk.AuthenticationUsers("authenticationUsersResource", {
defaultApp: "string",
email: "string",
forceChangePass: false,
name: "string",
password: "string",
realname: "string",
restartBackgroundJobs: false,
roles: ["string"],
tz: "string",
});
type: splunk:AuthenticationUsers
properties:
defaultApp: string
email: string
forceChangePass: false
name: string
password: string
realname: string
restartBackgroundJobs: false
roles:
- string
tz: string
AuthenticationUsers 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 AuthenticationUsers resource accepts the following input properties:
- Default
App string - User default app. Overrides the default app inherited from the user roles.
- Email string
- User email address.
- Force
Change boolPass - Force user to change password indication
- Name string
- Unique user login name.
- Password string
- User login password.
- Realname string
- Full user name.
- Restart
Background boolJobs - Restart background search job that has not completed when Splunk restarts indication.
- Roles List<string>
- Role to assign to this user. At least one existing role is required.
- Tz string
- User timezone.
- Default
App string - User default app. Overrides the default app inherited from the user roles.
- Email string
- User email address.
- Force
Change boolPass - Force user to change password indication
- Name string
- Unique user login name.
- Password string
- User login password.
- Realname string
- Full user name.
- Restart
Background boolJobs - Restart background search job that has not completed when Splunk restarts indication.
- Roles []string
- Role to assign to this user. At least one existing role is required.
- Tz string
- User timezone.
- default
App String - User default app. Overrides the default app inherited from the user roles.
- email String
- User email address.
- force
Change BooleanPass - Force user to change password indication
- name String
- Unique user login name.
- password String
- User login password.
- realname String
- Full user name.
- restart
Background BooleanJobs - Restart background search job that has not completed when Splunk restarts indication.
- roles List<String>
- Role to assign to this user. At least one existing role is required.
- tz String
- User timezone.
- default
App string - User default app. Overrides the default app inherited from the user roles.
- email string
- User email address.
- force
Change booleanPass - Force user to change password indication
- name string
- Unique user login name.
- password string
- User login password.
- realname string
- Full user name.
- restart
Background booleanJobs - Restart background search job that has not completed when Splunk restarts indication.
- roles string[]
- Role to assign to this user. At least one existing role is required.
- tz string
- User timezone.
- default_
app str - User default app. Overrides the default app inherited from the user roles.
- email str
- User email address.
- force_
change_ boolpass - Force user to change password indication
- name str
- Unique user login name.
- password str
- User login password.
- realname str
- Full user name.
- restart_
background_ booljobs - Restart background search job that has not completed when Splunk restarts indication.
- roles Sequence[str]
- Role to assign to this user. At least one existing role is required.
- tz str
- User timezone.
- default
App String - User default app. Overrides the default app inherited from the user roles.
- email String
- User email address.
- force
Change BooleanPass - Force user to change password indication
- name String
- Unique user login name.
- password String
- User login password.
- realname String
- Full user name.
- restart
Background BooleanJobs - Restart background search job that has not completed when Splunk restarts indication.
- roles List<String>
- Role to assign to this user. At least one existing role is required.
- tz String
- User timezone.
Outputs
All input properties are implicitly available as output properties. Additionally, the AuthenticationUsers 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 AuthenticationUsers Resource
Get an existing AuthenticationUsers 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?: AuthenticationUsersState, opts?: CustomResourceOptions): AuthenticationUsers
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
default_app: Optional[str] = None,
email: Optional[str] = None,
force_change_pass: Optional[bool] = None,
name: Optional[str] = None,
password: Optional[str] = None,
realname: Optional[str] = None,
restart_background_jobs: Optional[bool] = None,
roles: Optional[Sequence[str]] = None,
tz: Optional[str] = None) -> AuthenticationUsers
func GetAuthenticationUsers(ctx *Context, name string, id IDInput, state *AuthenticationUsersState, opts ...ResourceOption) (*AuthenticationUsers, error)
public static AuthenticationUsers Get(string name, Input<string> id, AuthenticationUsersState? state, CustomResourceOptions? opts = null)
public static AuthenticationUsers get(String name, Output<String> id, AuthenticationUsersState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Default
App string - User default app. Overrides the default app inherited from the user roles.
- Email string
- User email address.
- Force
Change boolPass - Force user to change password indication
- Name string
- Unique user login name.
- Password string
- User login password.
- Realname string
- Full user name.
- Restart
Background boolJobs - Restart background search job that has not completed when Splunk restarts indication.
- Roles List<string>
- Role to assign to this user. At least one existing role is required.
- Tz string
- User timezone.
- Default
App string - User default app. Overrides the default app inherited from the user roles.
- Email string
- User email address.
- Force
Change boolPass - Force user to change password indication
- Name string
- Unique user login name.
- Password string
- User login password.
- Realname string
- Full user name.
- Restart
Background boolJobs - Restart background search job that has not completed when Splunk restarts indication.
- Roles []string
- Role to assign to this user. At least one existing role is required.
- Tz string
- User timezone.
- default
App String - User default app. Overrides the default app inherited from the user roles.
- email String
- User email address.
- force
Change BooleanPass - Force user to change password indication
- name String
- Unique user login name.
- password String
- User login password.
- realname String
- Full user name.
- restart
Background BooleanJobs - Restart background search job that has not completed when Splunk restarts indication.
- roles List<String>
- Role to assign to this user. At least one existing role is required.
- tz String
- User timezone.
- default
App string - User default app. Overrides the default app inherited from the user roles.
- email string
- User email address.
- force
Change booleanPass - Force user to change password indication
- name string
- Unique user login name.
- password string
- User login password.
- realname string
- Full user name.
- restart
Background booleanJobs - Restart background search job that has not completed when Splunk restarts indication.
- roles string[]
- Role to assign to this user. At least one existing role is required.
- tz string
- User timezone.
- default_
app str - User default app. Overrides the default app inherited from the user roles.
- email str
- User email address.
- force_
change_ boolpass - Force user to change password indication
- name str
- Unique user login name.
- password str
- User login password.
- realname str
- Full user name.
- restart_
background_ booljobs - Restart background search job that has not completed when Splunk restarts indication.
- roles Sequence[str]
- Role to assign to this user. At least one existing role is required.
- tz str
- User timezone.
- default
App String - User default app. Overrides the default app inherited from the user roles.
- email String
- User email address.
- force
Change BooleanPass - Force user to change password indication
- name String
- Unique user login name.
- password String
- User login password.
- realname String
- Full user name.
- restart
Background BooleanJobs - Restart background search job that has not completed when Splunk restarts indication.
- roles List<String>
- Role to assign to this user. At least one existing role is required.
- tz String
- User timezone.
Package Details
- Repository
- Splunk pulumi/pulumi-splunk
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
splunk
Terraform Provider.