TacacsServerProfile resource
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
- Name string
- The name of the TACACS+ server profile
- Snippet string
- The snippet in which the resource is defined
- 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
- Name string
- The name of the TACACS+ server profile
- Snippet string
- The snippet in which the resource is defined
- 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
- name String
- The name of the TACACS+ server profile
- snippet String
- The snippet in which the resource is defined
- 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
- name string
- The name of the TACACS+ server profile
- snippet string
- The snippet in which the resource is defined
- 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
- name str
- The name of the TACACS+ server profile
- snippet str
- The snippet in which the resource is defined
- 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
- name String
- The name of the TACACS+ server profile
- snippet String
- The snippet in which the resource is defined
- 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:
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,
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
- Folder string
- The folder in which the resource is defined
- 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
- Tfid string
- Timeout int
- The TACACS+ timeout (seconds)
- Use
Single boolConnection - Use a single TACACS+ connection?
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- 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
- Tfid string
- Timeout int
- The TACACS+ timeout (seconds)
- Use
Single boolConnection - Use a single TACACS+ connection?
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- 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
- tfid String
- timeout Integer
- The TACACS+ timeout (seconds)
- use
Single BooleanConnection - Use a single TACACS+ connection?
- device string
- The device in which the resource is defined
- folder string
- The folder in which the resource is defined
- 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
- tfid string
- timeout number
- The TACACS+ timeout (seconds)
- use
Single booleanConnection - Use a single TACACS+ connection?
- device str
- The device in which the resource is defined
- folder str
- The folder in which the resource is defined
- 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
- tfid str
- timeout int
- The TACACS+ timeout (seconds)
- use_
single_ boolconnection - Use a single TACACS+ connection?
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- 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
- tfid String
- timeout Number
- The TACACS+ timeout (seconds)
- use
Single BooleanConnection - Use a single TACACS+ connection?
Supporting Types
TacacsServerProfileServer, TacacsServerProfileServerArgs
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
