TacacsServerProfile resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const iseTacacsExample = new scm.TacacsServerProfile("ise_tacacs_example", {
name: "ISE-TACACS11",
protocol: "PAP",
timeout: 3,
folder: "All",
useSingleConnection: true,
servers: [
{
name: "Server-1",
address: "10.10.10.10",
port: 49,
secret: "Test Secret1",
},
{
name: "Server-2",
address: "10.10.10.10",
port: 49,
secret: "Test Secret1",
},
{
name: "Server-3",
address: "10.10.10.10",
port: 49,
secret: "Test Secret1",
},
],
});
import pulumi
import pulumi_scm as scm
ise_tacacs_example = scm.TacacsServerProfile("ise_tacacs_example",
name="ISE-TACACS11",
protocol="PAP",
timeout=3,
folder="All",
use_single_connection=True,
servers=[
{
"name": "Server-1",
"address": "10.10.10.10",
"port": 49,
"secret": "Test Secret1",
},
{
"name": "Server-2",
"address": "10.10.10.10",
"port": 49,
"secret": "Test Secret1",
},
{
"name": "Server-3",
"address": "10.10.10.10",
"port": 49,
"secret": "Test Secret1",
},
])
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scm.NewTacacsServerProfile(ctx, "ise_tacacs_example", &scm.TacacsServerProfileArgs{
Name: pulumi.String("ISE-TACACS11"),
Protocol: pulumi.String("PAP"),
Timeout: pulumi.Int(3),
Folder: pulumi.String("All"),
UseSingleConnection: pulumi.Bool(true),
Servers: scm.TacacsServerProfileServerArray{
&scm.TacacsServerProfileServerArgs{
Name: pulumi.String("Server-1"),
Address: pulumi.String("10.10.10.10"),
Port: pulumi.Int(49),
Secret: pulumi.String("Test Secret1"),
},
&scm.TacacsServerProfileServerArgs{
Name: pulumi.String("Server-2"),
Address: pulumi.String("10.10.10.10"),
Port: pulumi.Int(49),
Secret: pulumi.String("Test Secret1"),
},
&scm.TacacsServerProfileServerArgs{
Name: pulumi.String("Server-3"),
Address: pulumi.String("10.10.10.10"),
Port: pulumi.Int(49),
Secret: pulumi.String("Test Secret1"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
var iseTacacsExample = new Scm.TacacsServerProfile("ise_tacacs_example", new()
{
Name = "ISE-TACACS11",
Protocol = "PAP",
Timeout = 3,
Folder = "All",
UseSingleConnection = true,
Servers = new[]
{
new Scm.Inputs.TacacsServerProfileServerArgs
{
Name = "Server-1",
Address = "10.10.10.10",
Port = 49,
Secret = "Test Secret1",
},
new Scm.Inputs.TacacsServerProfileServerArgs
{
Name = "Server-2",
Address = "10.10.10.10",
Port = 49,
Secret = "Test Secret1",
},
new Scm.Inputs.TacacsServerProfileServerArgs
{
Name = "Server-3",
Address = "10.10.10.10",
Port = 49,
Secret = "Test Secret1",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.TacacsServerProfile;
import com.pulumi.scm.TacacsServerProfileArgs;
import com.pulumi.scm.inputs.TacacsServerProfileServerArgs;
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 iseTacacsExample = new TacacsServerProfile("iseTacacsExample", TacacsServerProfileArgs.builder()
.name("ISE-TACACS11")
.protocol("PAP")
.timeout(3)
.folder("All")
.useSingleConnection(true)
.servers(
TacacsServerProfileServerArgs.builder()
.name("Server-1")
.address("10.10.10.10")
.port(49)
.secret("Test Secret1")
.build(),
TacacsServerProfileServerArgs.builder()
.name("Server-2")
.address("10.10.10.10")
.port(49)
.secret("Test Secret1")
.build(),
TacacsServerProfileServerArgs.builder()
.name("Server-3")
.address("10.10.10.10")
.port(49)
.secret("Test Secret1")
.build())
.build());
}
}
resources:
iseTacacsExample:
type: scm:TacacsServerProfile
name: ise_tacacs_example
properties:
name: ISE-TACACS11
protocol: PAP
timeout: 3
folder: All
useSingleConnection: true
servers:
- name: Server-1
address: 10.10.10.10
port: 49
secret: Test Secret1
- name: Server-2
address: 10.10.10.10
port: 49
secret: Test Secret1
- name: Server-3
address: 10.10.10.10
port: 49
secret: Test Secret1
Create TacacsServerProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TacacsServerProfile(name: string, args: TacacsServerProfileArgs, opts?: CustomResourceOptions);@overload
def TacacsServerProfile(resource_name: str,
args: TacacsServerProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TacacsServerProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
protocol: Optional[str] = None,
servers: Optional[Sequence[TacacsServerProfileServerArgs]] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
snippet: Optional[str] = None,
timeout: Optional[int] = None,
use_single_connection: Optional[bool] = None)func NewTacacsServerProfile(ctx *Context, name string, args TacacsServerProfileArgs, opts ...ResourceOption) (*TacacsServerProfile, error)public TacacsServerProfile(string name, TacacsServerProfileArgs args, CustomResourceOptions? opts = null)
public TacacsServerProfile(String name, TacacsServerProfileArgs args)
public TacacsServerProfile(String name, TacacsServerProfileArgs args, CustomResourceOptions options)
type: scm:TacacsServerProfile
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 TacacsServerProfileArgs
- 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 TacacsServerProfileArgs
- 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 TacacsServerProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TacacsServerProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TacacsServerProfileArgs
- 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 tacacsServerProfileResource = new Scm.TacacsServerProfile("tacacsServerProfileResource", new()
{
Protocol = "string",
Servers = new[]
{
new Scm.Inputs.TacacsServerProfileServerArgs
{
Address = "string",
Name = "string",
Port = 0,
Secret = "string",
},
},
Device = "string",
Folder = "string",
Name = "string",
Snippet = "string",
Timeout = 0,
UseSingleConnection = false,
});
example, err := scm.NewTacacsServerProfile(ctx, "tacacsServerProfileResource", &scm.TacacsServerProfileArgs{
Protocol: pulumi.String("string"),
Servers: scm.TacacsServerProfileServerArray{
&scm.TacacsServerProfileServerArgs{
Address: pulumi.String("string"),
Name: pulumi.String("string"),
Port: pulumi.Int(0),
Secret: pulumi.String("string"),
},
},
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
Name: pulumi.String("string"),
Snippet: pulumi.String("string"),
Timeout: pulumi.Int(0),
UseSingleConnection: pulumi.Bool(false),
})
var tacacsServerProfileResource = new TacacsServerProfile("tacacsServerProfileResource", TacacsServerProfileArgs.builder()
.protocol("string")
.servers(TacacsServerProfileServerArgs.builder()
.address("string")
.name("string")
.port(0)
.secret("string")
.build())
.device("string")
.folder("string")
.name("string")
.snippet("string")
.timeout(0)
.useSingleConnection(false)
.build());
tacacs_server_profile_resource = scm.TacacsServerProfile("tacacsServerProfileResource",
protocol="string",
servers=[{
"address": "string",
"name": "string",
"port": 0,
"secret": "string",
}],
device="string",
folder="string",
name="string",
snippet="string",
timeout=0,
use_single_connection=False)
const tacacsServerProfileResource = new scm.TacacsServerProfile("tacacsServerProfileResource", {
protocol: "string",
servers: [{
address: "string",
name: "string",
port: 0,
secret: "string",
}],
device: "string",
folder: "string",
name: "string",
snippet: "string",
timeout: 0,
useSingleConnection: false,
});
type: scm:TacacsServerProfile
properties:
device: string
folder: string
name: string
protocol: string
servers:
- address: string
name: string
port: 0
secret: string
snippet: string
timeout: 0
useSingleConnection: false
TacacsServerProfile 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 TacacsServerProfile resource accepts the following input properties:
- Protocol string
- The TACACS+ authentication protocol
- Servers
List<Tacacs
Server Profile Server> - The TACACS+ server configuration
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Name string
- The name of the TACACS+ server profile
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Timeout int
- The TACACS+ timeout (seconds)
- Use
Single boolConnection - Use a single TACACS+ connection?
- Protocol string
- The TACACS+ authentication protocol
- Servers
[]Tacacs
Server Profile Server Args - The TACACS+ server configuration
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Name string
- The name of the TACACS+ server profile
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Timeout int
- The TACACS+ timeout (seconds)
- Use
Single boolConnection - Use a single TACACS+ connection?
- protocol String
- The TACACS+ authentication protocol
- servers
List<Tacacs
Server Profile Server> - The TACACS+ server configuration
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name String
- The name of the TACACS+ server profile
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- timeout Integer
- The TACACS+ timeout (seconds)
- use
Single BooleanConnection - Use a single TACACS+ connection?
- protocol string
- The TACACS+ authentication protocol
- servers
Tacacs
Server Profile Server[] - The TACACS+ server configuration
- device string
- The device in which the resource is defined
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name string
- The name of the TACACS+ server profile
- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- timeout number
- The TACACS+ timeout (seconds)
- use
Single booleanConnection - Use a single TACACS+ connection?
- protocol str
- The TACACS+ authentication protocol
- servers
Sequence[Tacacs
Server Profile Server Args] - The TACACS+ server configuration
- device str
- The device in which the resource is defined
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name str
- The name of the TACACS+ server profile
- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- timeout int
- The TACACS+ timeout (seconds)
- use_
single_ boolconnection - Use a single TACACS+ connection?
- protocol String
- The TACACS+ authentication protocol
- servers List<Property Map>
- The TACACS+ server configuration
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name String
- The name of the TACACS+ server profile
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- timeout Number
- The TACACS+ timeout (seconds)
- use
Single BooleanConnection - Use a single TACACS+ connection?
Outputs
All input properties are implicitly available as output properties. Additionally, the TacacsServerProfile resource produces the following output properties:
- Encrypted
Values Dictionary<string, string> - Map of sensitive values returned from the API.
- Id string
- The provider-assigned unique ID for this managed resource.
- Tfid string
- The Terraform ID.
- Encrypted
Values map[string]string - Map of sensitive values returned from the API.
- Id string
- The provider-assigned unique ID for this managed resource.
- Tfid string
- The Terraform ID.
- encrypted
Values Map<String,String> - Map of sensitive values returned from the API.
- id String
- The provider-assigned unique ID for this managed resource.
- tfid String
- The Terraform ID.
- encrypted
Values {[key: string]: string} - Map of sensitive values returned from the API.
- id string
- The provider-assigned unique ID for this managed resource.
- tfid string
- The Terraform ID.
- encrypted_
values Mapping[str, str] - Map of sensitive values returned from the API.
- id str
- The provider-assigned unique ID for this managed resource.
- tfid str
- The Terraform ID.
- encrypted
Values Map<String> - Map of sensitive values returned from the API.
- id String
- The provider-assigned unique ID for this managed resource.
- tfid String
- The Terraform ID.
Look up Existing TacacsServerProfile Resource
Get an existing TacacsServerProfile 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?: TacacsServerProfileState, opts?: CustomResourceOptions): TacacsServerProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
encrypted_values: Optional[Mapping[str, str]] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
protocol: Optional[str] = None,
servers: Optional[Sequence[TacacsServerProfileServerArgs]] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None,
timeout: Optional[int] = None,
use_single_connection: Optional[bool] = None) -> TacacsServerProfilefunc GetTacacsServerProfile(ctx *Context, name string, id IDInput, state *TacacsServerProfileState, opts ...ResourceOption) (*TacacsServerProfile, error)public static TacacsServerProfile Get(string name, Input<string> id, TacacsServerProfileState? state, CustomResourceOptions? opts = null)public static TacacsServerProfile get(String name, Output<String> id, TacacsServerProfileState state, CustomResourceOptions options)resources: _: type: scm:TacacsServerProfile 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.
- Device string
- The device in which the resource is defined
- Encrypted
Values Dictionary<string, string> - Map of sensitive values returned from the API.
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Name string
- The name of the TACACS+ server profile
- Protocol string
- The TACACS+ authentication protocol
- Servers
List<Tacacs
Server Profile Server> - The TACACS+ server configuration
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- The Terraform ID.
- Timeout int
- The TACACS+ timeout (seconds)
- Use
Single boolConnection - Use a single TACACS+ connection?
- Device string
- The device in which the resource is defined
- Encrypted
Values map[string]string - Map of sensitive values returned from the API.
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Name string
- The name of the TACACS+ server profile
- Protocol string
- The TACACS+ authentication protocol
- Servers
[]Tacacs
Server Profile Server Args - The TACACS+ server configuration
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- The Terraform ID.
- Timeout int
- The TACACS+ timeout (seconds)
- Use
Single boolConnection - Use a single TACACS+ connection?
- device String
- The device in which the resource is defined
- encrypted
Values Map<String,String> - Map of sensitive values returned from the API.
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name String
- The name of the TACACS+ server profile
- protocol String
- The TACACS+ authentication protocol
- servers
List<Tacacs
Server Profile Server> - The TACACS+ server configuration
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
- The Terraform ID.
- timeout Integer
- The TACACS+ timeout (seconds)
- use
Single BooleanConnection - Use a single TACACS+ connection?
- device string
- The device in which the resource is defined
- encrypted
Values {[key: string]: string} - Map of sensitive values returned from the API.
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name string
- The name of the TACACS+ server profile
- protocol string
- The TACACS+ authentication protocol
- servers
Tacacs
Server Profile Server[] - The TACACS+ server configuration
- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid string
- The Terraform ID.
- timeout number
- The TACACS+ timeout (seconds)
- use
Single booleanConnection - Use a single TACACS+ connection?
- device str
- The device in which the resource is defined
- encrypted_
values Mapping[str, str] - Map of sensitive values returned from the API.
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name str
- The name of the TACACS+ server profile
- protocol str
- The TACACS+ authentication protocol
- servers
Sequence[Tacacs
Server Profile Server Args] - The TACACS+ server configuration
- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid str
- The Terraform ID.
- timeout int
- The TACACS+ timeout (seconds)
- use_
single_ boolconnection - Use a single TACACS+ connection?
- device String
- The device in which the resource is defined
- encrypted
Values Map<String> - Map of sensitive values returned from the API.
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name String
- The name of the TACACS+ server profile
- protocol String
- The TACACS+ authentication protocol
- servers List<Property Map>
- The TACACS+ server configuration
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
- The Terraform ID.
- timeout Number
- The TACACS+ timeout (seconds)
- use
Single BooleanConnection - Use a single TACACS+ connection?
Supporting Types
TacacsServerProfileServer, TacacsServerProfileServerArgs
Import
The following command can be used to import a resource not managed by Terraform:
terraform import scm_tacacs_server_profile.example folder:::id
or
terraform import scm_tacacs_server_profile.example :snippet::id
or
terraform import scm_tacacs_server_profile.example ::device:id
Note: Please provide just one of folder, snippet, or device for the import command.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
