fortios.user.Tacacs
Explore with Pulumi AI
Configure TACACS+ server entries.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.user.Tacacs("trname", {
authenType: "auto",
authorization: "disable",
port: 2342,
server: "1.1.1.1",
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.user.Tacacs("trname",
authen_type="auto",
authorization="disable",
port=2342,
server="1.1.1.1")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/user"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := user.NewTacacs(ctx, "trname", &user.TacacsArgs{
AuthenType: pulumi.String("auto"),
Authorization: pulumi.String("disable"),
Port: pulumi.Int(2342),
Server: pulumi.String("1.1.1.1"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var trname = new Fortios.User.Tacacs("trname", new()
{
AuthenType = "auto",
Authorization = "disable",
Port = 2342,
Server = "1.1.1.1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.user.Tacacs;
import com.pulumi.fortios.user.TacacsArgs;
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 trname = new Tacacs("trname", TacacsArgs.builder()
.authenType("auto")
.authorization("disable")
.port(2342)
.server("1.1.1.1")
.build());
}
}
resources:
trname:
type: fortios:user:Tacacs
properties:
authenType: auto
authorization: disable
port: 2342
server: 1.1.1.1
Create Tacacs Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Tacacs(name: string, args?: TacacsArgs, opts?: CustomResourceOptions);
@overload
def Tacacs(resource_name: str,
args: Optional[TacacsArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Tacacs(resource_name: str,
opts: Optional[ResourceOptions] = None,
authen_type: Optional[str] = None,
authorization: Optional[str] = None,
interface: Optional[str] = None,
interface_select_method: Optional[str] = None,
key: Optional[str] = None,
name: Optional[str] = None,
port: Optional[int] = None,
secondary_key: Optional[str] = None,
secondary_server: Optional[str] = None,
server: Optional[str] = None,
source_ip: Optional[str] = None,
tertiary_key: Optional[str] = None,
tertiary_server: Optional[str] = None,
vdomparam: Optional[str] = None)
func NewTacacs(ctx *Context, name string, args *TacacsArgs, opts ...ResourceOption) (*Tacacs, error)
public Tacacs(string name, TacacsArgs? args = null, CustomResourceOptions? opts = null)
public Tacacs(String name, TacacsArgs args)
public Tacacs(String name, TacacsArgs args, CustomResourceOptions options)
type: fortios:user:Tacacs
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 TacacsArgs
- 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 TacacsArgs
- 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 TacacsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TacacsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TacacsArgs
- 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 tacacsResource = new Fortios.User.Tacacs("tacacsResource", new()
{
AuthenType = "string",
Authorization = "string",
Interface = "string",
InterfaceSelectMethod = "string",
Key = "string",
Name = "string",
Port = 0,
SecondaryKey = "string",
SecondaryServer = "string",
Server = "string",
SourceIp = "string",
TertiaryKey = "string",
TertiaryServer = "string",
Vdomparam = "string",
});
example, err := user.NewTacacs(ctx, "tacacsResource", &user.TacacsArgs{
AuthenType: pulumi.String("string"),
Authorization: pulumi.String("string"),
Interface: pulumi.String("string"),
InterfaceSelectMethod: pulumi.String("string"),
Key: pulumi.String("string"),
Name: pulumi.String("string"),
Port: pulumi.Int(0),
SecondaryKey: pulumi.String("string"),
SecondaryServer: pulumi.String("string"),
Server: pulumi.String("string"),
SourceIp: pulumi.String("string"),
TertiaryKey: pulumi.String("string"),
TertiaryServer: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
})
var tacacsResource = new Tacacs("tacacsResource", TacacsArgs.builder()
.authenType("string")
.authorization("string")
.interface_("string")
.interfaceSelectMethod("string")
.key("string")
.name("string")
.port(0)
.secondaryKey("string")
.secondaryServer("string")
.server("string")
.sourceIp("string")
.tertiaryKey("string")
.tertiaryServer("string")
.vdomparam("string")
.build());
tacacs_resource = fortios.user.Tacacs("tacacsResource",
authen_type="string",
authorization="string",
interface="string",
interface_select_method="string",
key="string",
name="string",
port=0,
secondary_key="string",
secondary_server="string",
server="string",
source_ip="string",
tertiary_key="string",
tertiary_server="string",
vdomparam="string")
const tacacsResource = new fortios.user.Tacacs("tacacsResource", {
authenType: "string",
authorization: "string",
"interface": "string",
interfaceSelectMethod: "string",
key: "string",
name: "string",
port: 0,
secondaryKey: "string",
secondaryServer: "string",
server: "string",
sourceIp: "string",
tertiaryKey: "string",
tertiaryServer: "string",
vdomparam: "string",
});
type: fortios:user:Tacacs
properties:
authenType: string
authorization: string
interface: string
interfaceSelectMethod: string
key: string
name: string
port: 0
secondaryKey: string
secondaryServer: string
server: string
sourceIp: string
tertiaryKey: string
tertiaryServer: string
vdomparam: string
Tacacs Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Tacacs resource accepts the following input properties:
- Authen
Type string - Allowed authentication protocols/methods. Valid values:
mschap
,chap
,pap
,ascii
,auto
. - string
- Enable/disable TACACS+ authorization. Valid values:
enable
,disable
. - Interface string
- Specify outgoing interface to reach server.
- Interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - Key string
- Key to access the primary server.
- Name string
- TACACS+ server entry name.
- Port int
- Port number of the TACACS+ server.
- Secondary
Key string - Key to access the secondary server.
- Secondary
Server string - Secondary TACACS+ server CN domain name or IP address.
- Server string
- Primary TACACS+ server CN domain name or IP address.
- Source
Ip string - source IP for communications to TACACS+ server.
- Tertiary
Key string - Key to access the tertiary server.
- Tertiary
Server string - Tertiary TACACS+ server CN domain name or IP address.
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Authen
Type string - Allowed authentication protocols/methods. Valid values:
mschap
,chap
,pap
,ascii
,auto
. - string
- Enable/disable TACACS+ authorization. Valid values:
enable
,disable
. - Interface string
- Specify outgoing interface to reach server.
- Interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - Key string
- Key to access the primary server.
- Name string
- TACACS+ server entry name.
- Port int
- Port number of the TACACS+ server.
- Secondary
Key string - Key to access the secondary server.
- Secondary
Server string - Secondary TACACS+ server CN domain name or IP address.
- Server string
- Primary TACACS+ server CN domain name or IP address.
- Source
Ip string - source IP for communications to TACACS+ server.
- Tertiary
Key string - Key to access the tertiary server.
- Tertiary
Server string - Tertiary TACACS+ server CN domain name or IP address.
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authen
Type String - Allowed authentication protocols/methods. Valid values:
mschap
,chap
,pap
,ascii
,auto
. - String
- Enable/disable TACACS+ authorization. Valid values:
enable
,disable
. - interface
Select StringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - interface_ String
- Specify outgoing interface to reach server.
- key String
- Key to access the primary server.
- name String
- TACACS+ server entry name.
- port Integer
- Port number of the TACACS+ server.
- secondary
Key String - Key to access the secondary server.
- secondary
Server String - Secondary TACACS+ server CN domain name or IP address.
- server String
- Primary TACACS+ server CN domain name or IP address.
- source
Ip String - source IP for communications to TACACS+ server.
- tertiary
Key String - Key to access the tertiary server.
- tertiary
Server String - Tertiary TACACS+ server CN domain name or IP address.
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authen
Type string - Allowed authentication protocols/methods. Valid values:
mschap
,chap
,pap
,ascii
,auto
. - string
- Enable/disable TACACS+ authorization. Valid values:
enable
,disable
. - interface string
- Specify outgoing interface to reach server.
- interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - key string
- Key to access the primary server.
- name string
- TACACS+ server entry name.
- port number
- Port number of the TACACS+ server.
- secondary
Key string - Key to access the secondary server.
- secondary
Server string - Secondary TACACS+ server CN domain name or IP address.
- server string
- Primary TACACS+ server CN domain name or IP address.
- source
Ip string - source IP for communications to TACACS+ server.
- tertiary
Key string - Key to access the tertiary server.
- tertiary
Server string - Tertiary TACACS+ server CN domain name or IP address.
- vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authen_
type str - Allowed authentication protocols/methods. Valid values:
mschap
,chap
,pap
,ascii
,auto
. - str
- Enable/disable TACACS+ authorization. Valid values:
enable
,disable
. - interface str
- Specify outgoing interface to reach server.
- interface_
select_ strmethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - key str
- Key to access the primary server.
- name str
- TACACS+ server entry name.
- port int
- Port number of the TACACS+ server.
- secondary_
key str - Key to access the secondary server.
- secondary_
server str - Secondary TACACS+ server CN domain name or IP address.
- server str
- Primary TACACS+ server CN domain name or IP address.
- source_
ip str - source IP for communications to TACACS+ server.
- tertiary_
key str - Key to access the tertiary server.
- tertiary_
server str - Tertiary TACACS+ server CN domain name or IP address.
- vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authen
Type String - Allowed authentication protocols/methods. Valid values:
mschap
,chap
,pap
,ascii
,auto
. - String
- Enable/disable TACACS+ authorization. Valid values:
enable
,disable
. - interface String
- Specify outgoing interface to reach server.
- interface
Select StringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - key String
- Key to access the primary server.
- name String
- TACACS+ server entry name.
- port Number
- Port number of the TACACS+ server.
- secondary
Key String - Key to access the secondary server.
- secondary
Server String - Secondary TACACS+ server CN domain name or IP address.
- server String
- Primary TACACS+ server CN domain name or IP address.
- source
Ip String - source IP for communications to TACACS+ server.
- tertiary
Key String - Key to access the tertiary server.
- tertiary
Server String - Tertiary TACACS+ server CN domain name or IP address.
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the Tacacs 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 Tacacs Resource
Get an existing Tacacs 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?: TacacsState, opts?: CustomResourceOptions): Tacacs
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authen_type: Optional[str] = None,
authorization: Optional[str] = None,
interface: Optional[str] = None,
interface_select_method: Optional[str] = None,
key: Optional[str] = None,
name: Optional[str] = None,
port: Optional[int] = None,
secondary_key: Optional[str] = None,
secondary_server: Optional[str] = None,
server: Optional[str] = None,
source_ip: Optional[str] = None,
tertiary_key: Optional[str] = None,
tertiary_server: Optional[str] = None,
vdomparam: Optional[str] = None) -> Tacacs
func GetTacacs(ctx *Context, name string, id IDInput, state *TacacsState, opts ...ResourceOption) (*Tacacs, error)
public static Tacacs Get(string name, Input<string> id, TacacsState? state, CustomResourceOptions? opts = null)
public static Tacacs get(String name, Output<String> id, TacacsState 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.
- Authen
Type string - Allowed authentication protocols/methods. Valid values:
mschap
,chap
,pap
,ascii
,auto
. - string
- Enable/disable TACACS+ authorization. Valid values:
enable
,disable
. - Interface string
- Specify outgoing interface to reach server.
- Interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - Key string
- Key to access the primary server.
- Name string
- TACACS+ server entry name.
- Port int
- Port number of the TACACS+ server.
- Secondary
Key string - Key to access the secondary server.
- Secondary
Server string - Secondary TACACS+ server CN domain name or IP address.
- Server string
- Primary TACACS+ server CN domain name or IP address.
- Source
Ip string - source IP for communications to TACACS+ server.
- Tertiary
Key string - Key to access the tertiary server.
- Tertiary
Server string - Tertiary TACACS+ server CN domain name or IP address.
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Authen
Type string - Allowed authentication protocols/methods. Valid values:
mschap
,chap
,pap
,ascii
,auto
. - string
- Enable/disable TACACS+ authorization. Valid values:
enable
,disable
. - Interface string
- Specify outgoing interface to reach server.
- Interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - Key string
- Key to access the primary server.
- Name string
- TACACS+ server entry name.
- Port int
- Port number of the TACACS+ server.
- Secondary
Key string - Key to access the secondary server.
- Secondary
Server string - Secondary TACACS+ server CN domain name or IP address.
- Server string
- Primary TACACS+ server CN domain name or IP address.
- Source
Ip string - source IP for communications to TACACS+ server.
- Tertiary
Key string - Key to access the tertiary server.
- Tertiary
Server string - Tertiary TACACS+ server CN domain name or IP address.
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authen
Type String - Allowed authentication protocols/methods. Valid values:
mschap
,chap
,pap
,ascii
,auto
. - String
- Enable/disable TACACS+ authorization. Valid values:
enable
,disable
. - interface
Select StringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - interface_ String
- Specify outgoing interface to reach server.
- key String
- Key to access the primary server.
- name String
- TACACS+ server entry name.
- port Integer
- Port number of the TACACS+ server.
- secondary
Key String - Key to access the secondary server.
- secondary
Server String - Secondary TACACS+ server CN domain name or IP address.
- server String
- Primary TACACS+ server CN domain name or IP address.
- source
Ip String - source IP for communications to TACACS+ server.
- tertiary
Key String - Key to access the tertiary server.
- tertiary
Server String - Tertiary TACACS+ server CN domain name or IP address.
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authen
Type string - Allowed authentication protocols/methods. Valid values:
mschap
,chap
,pap
,ascii
,auto
. - string
- Enable/disable TACACS+ authorization. Valid values:
enable
,disable
. - interface string
- Specify outgoing interface to reach server.
- interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - key string
- Key to access the primary server.
- name string
- TACACS+ server entry name.
- port number
- Port number of the TACACS+ server.
- secondary
Key string - Key to access the secondary server.
- secondary
Server string - Secondary TACACS+ server CN domain name or IP address.
- server string
- Primary TACACS+ server CN domain name or IP address.
- source
Ip string - source IP for communications to TACACS+ server.
- tertiary
Key string - Key to access the tertiary server.
- tertiary
Server string - Tertiary TACACS+ server CN domain name or IP address.
- vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authen_
type str - Allowed authentication protocols/methods. Valid values:
mschap
,chap
,pap
,ascii
,auto
. - str
- Enable/disable TACACS+ authorization. Valid values:
enable
,disable
. - interface str
- Specify outgoing interface to reach server.
- interface_
select_ strmethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - key str
- Key to access the primary server.
- name str
- TACACS+ server entry name.
- port int
- Port number of the TACACS+ server.
- secondary_
key str - Key to access the secondary server.
- secondary_
server str - Secondary TACACS+ server CN domain name or IP address.
- server str
- Primary TACACS+ server CN domain name or IP address.
- source_
ip str - source IP for communications to TACACS+ server.
- tertiary_
key str - Key to access the tertiary server.
- tertiary_
server str - Tertiary TACACS+ server CN domain name or IP address.
- vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authen
Type String - Allowed authentication protocols/methods. Valid values:
mschap
,chap
,pap
,ascii
,auto
. - String
- Enable/disable TACACS+ authorization. Valid values:
enable
,disable
. - interface String
- Specify outgoing interface to reach server.
- interface
Select StringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - key String
- Key to access the primary server.
- name String
- TACACS+ server entry name.
- port Number
- Port number of the TACACS+ server.
- secondary
Key String - Key to access the secondary server.
- secondary
Server String - Secondary TACACS+ server CN domain name or IP address.
- server String
- Primary TACACS+ server CN domain name or IP address.
- source
Ip String - source IP for communications to TACACS+ server.
- tertiary
Key String - Key to access the tertiary server.
- tertiary
Server String - Tertiary TACACS+ server CN domain name or IP address.
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Import
User Tacacs can be imported using any of these accepted formats:
$ pulumi import fortios:user/tacacs:Tacacs labelname {{name}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:user/tacacs:Tacacs labelname {{name}}
$ unset “FORTIOS_IMPORT_TABLE”
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.