1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. SystemAdminTacacs
fortimanager 1.14.0 published on Tuesday, Apr 15, 2025 by fortinetdev

fortimanager.SystemAdminTacacs

Explore with Pulumi AI

TACACS+ server entry configuration.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trname = new fortimanager.SystemAdminTacacs("trname", {
    authenType: "auto",
    authorization: "disable",
    keys: ["fortinet"],
    port: 33,
    server: "terraform",
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.SystemAdminTacacs("trname",
    authen_type="auto",
    authorization="disable",
    keys=["fortinet"],
    port=33,
    server="terraform")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fortimanager.NewSystemAdminTacacs(ctx, "trname", &fortimanager.SystemAdminTacacsArgs{
			AuthenType:    pulumi.String("auto"),
			Authorization: pulumi.String("disable"),
			Keys: pulumi.StringArray{
				pulumi.String("fortinet"),
			},
			Port:   pulumi.Float64(33),
			Server: pulumi.String("terraform"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trname = new Fortimanager.SystemAdminTacacs("trname", new()
    {
        AuthenType = "auto",
        Authorization = "disable",
        Keys = new[]
        {
            "fortinet",
        },
        Port = 33,
        Server = "terraform",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.SystemAdminTacacs;
import com.pulumi.fortimanager.SystemAdminTacacsArgs;
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 SystemAdminTacacs("trname", SystemAdminTacacsArgs.builder()
            .authenType("auto")
            .authorization("disable")
            .keys("fortinet")
            .port(33)
            .server("terraform")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:SystemAdminTacacs
    properties:
      authenType: auto
      authorization: disable
      keys:
        - fortinet
      port: 33
      server: terraform
Copy

Create SystemAdminTacacs Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SystemAdminTacacs(name: string, args?: SystemAdminTacacsArgs, opts?: CustomResourceOptions);
@overload
def SystemAdminTacacs(resource_name: str,
                      args: Optional[SystemAdminTacacsArgs] = None,
                      opts: Optional[ResourceOptions] = None)

@overload
def SystemAdminTacacs(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      authen_type: Optional[str] = None,
                      authorization: Optional[str] = None,
                      keys: Optional[Sequence[str]] = None,
                      name: Optional[str] = None,
                      port: Optional[float] = None,
                      secondary_keys: Optional[Sequence[str]] = None,
                      secondary_server: Optional[str] = None,
                      server: Optional[str] = None,
                      system_admin_tacacs_id: Optional[str] = None,
                      tertiary_keys: Optional[Sequence[str]] = None,
                      tertiary_server: Optional[str] = None)
func NewSystemAdminTacacs(ctx *Context, name string, args *SystemAdminTacacsArgs, opts ...ResourceOption) (*SystemAdminTacacs, error)
public SystemAdminTacacs(string name, SystemAdminTacacsArgs? args = null, CustomResourceOptions? opts = null)
public SystemAdminTacacs(String name, SystemAdminTacacsArgs args)
public SystemAdminTacacs(String name, SystemAdminTacacsArgs args, CustomResourceOptions options)
type: fortimanager:SystemAdminTacacs
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args SystemAdminTacacsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args SystemAdminTacacsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args SystemAdminTacacsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args SystemAdminTacacsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SystemAdminTacacsArgs
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 systemAdminTacacsResource = new Fortimanager.SystemAdminTacacs("systemAdminTacacsResource", new()
{
    AuthenType = "string",
    Authorization = "string",
    Keys = new[]
    {
        "string",
    },
    Name = "string",
    Port = 0,
    SecondaryKeys = new[]
    {
        "string",
    },
    SecondaryServer = "string",
    Server = "string",
    SystemAdminTacacsId = "string",
    TertiaryKeys = new[]
    {
        "string",
    },
    TertiaryServer = "string",
});
Copy
example, err := fortimanager.NewSystemAdminTacacs(ctx, "systemAdminTacacsResource", &fortimanager.SystemAdminTacacsArgs{
AuthenType: pulumi.String("string"),
Authorization: pulumi.String("string"),
Keys: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
Port: pulumi.Float64(0),
SecondaryKeys: pulumi.StringArray{
pulumi.String("string"),
},
SecondaryServer: pulumi.String("string"),
Server: pulumi.String("string"),
SystemAdminTacacsId: pulumi.String("string"),
TertiaryKeys: pulumi.StringArray{
pulumi.String("string"),
},
TertiaryServer: pulumi.String("string"),
})
Copy
var systemAdminTacacsResource = new SystemAdminTacacs("systemAdminTacacsResource", SystemAdminTacacsArgs.builder()
    .authenType("string")
    .authorization("string")
    .keys("string")
    .name("string")
    .port(0)
    .secondaryKeys("string")
    .secondaryServer("string")
    .server("string")
    .systemAdminTacacsId("string")
    .tertiaryKeys("string")
    .tertiaryServer("string")
    .build());
Copy
system_admin_tacacs_resource = fortimanager.SystemAdminTacacs("systemAdminTacacsResource",
    authen_type="string",
    authorization="string",
    keys=["string"],
    name="string",
    port=0,
    secondary_keys=["string"],
    secondary_server="string",
    server="string",
    system_admin_tacacs_id="string",
    tertiary_keys=["string"],
    tertiary_server="string")
Copy
const systemAdminTacacsResource = new fortimanager.SystemAdminTacacs("systemAdminTacacsResource", {
    authenType: "string",
    authorization: "string",
    keys: ["string"],
    name: "string",
    port: 0,
    secondaryKeys: ["string"],
    secondaryServer: "string",
    server: "string",
    systemAdminTacacsId: "string",
    tertiaryKeys: ["string"],
    tertiaryServer: "string",
});
Copy
type: fortimanager:SystemAdminTacacs
properties:
    authenType: string
    authorization: string
    keys:
        - string
    name: string
    port: 0
    secondaryKeys:
        - string
    secondaryServer: string
    server: string
    systemAdminTacacsId: string
    tertiaryKeys:
        - string
    tertiaryServer: string
Copy

SystemAdminTacacs 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 SystemAdminTacacs resource accepts the following input properties:

AuthenType string
Authentication type. auto - Use PAP, MSCHAP, and CHAP (in that order). ascii - ASCII. pap - PAP. chap - CHAP. mschap - MSCHAP. Valid values: auto, ascii, pap, chap, mschap.
Authorization string
Enable/disable TACACS+ authorization. disable - Disable TACACS+ authorization. enable - Enable TACACS+ authorization (service = fortigate). Valid values: disable, enable.
Keys List<string>
<password_str> key to access server.
Name string
TACACS+ server entry name.
Port double
Port number of TACACS+ server.
SecondaryKeys List<string>
<password_str> key to access secondary server.
SecondaryServer string
{<name_str|ip_str>} secondary server domain name or IP.
Server string
{<name_str|ip_str>} server domain name or IP.
SystemAdminTacacsId string
an identifier for the resource with format {{name}}.
TertiaryKeys List<string>
<password_str> key to access tertiary server.
TertiaryServer string
{<name_str|ip_str>} tertiary server domain name or IP.
AuthenType string
Authentication type. auto - Use PAP, MSCHAP, and CHAP (in that order). ascii - ASCII. pap - PAP. chap - CHAP. mschap - MSCHAP. Valid values: auto, ascii, pap, chap, mschap.
Authorization string
Enable/disable TACACS+ authorization. disable - Disable TACACS+ authorization. enable - Enable TACACS+ authorization (service = fortigate). Valid values: disable, enable.
Keys []string
<password_str> key to access server.
Name string
TACACS+ server entry name.
Port float64
Port number of TACACS+ server.
SecondaryKeys []string
<password_str> key to access secondary server.
SecondaryServer string
{<name_str|ip_str>} secondary server domain name or IP.
Server string
{<name_str|ip_str>} server domain name or IP.
SystemAdminTacacsId string
an identifier for the resource with format {{name}}.
TertiaryKeys []string
<password_str> key to access tertiary server.
TertiaryServer string
{<name_str|ip_str>} tertiary server domain name or IP.
authenType String
Authentication type. auto - Use PAP, MSCHAP, and CHAP (in that order). ascii - ASCII. pap - PAP. chap - CHAP. mschap - MSCHAP. Valid values: auto, ascii, pap, chap, mschap.
authorization String
Enable/disable TACACS+ authorization. disable - Disable TACACS+ authorization. enable - Enable TACACS+ authorization (service = fortigate). Valid values: disable, enable.
keys List<String>
<password_str> key to access server.
name String
TACACS+ server entry name.
port Double
Port number of TACACS+ server.
secondaryKeys List<String>
<password_str> key to access secondary server.
secondaryServer String
{<name_str|ip_str>} secondary server domain name or IP.
server String
{<name_str|ip_str>} server domain name or IP.
systemAdminTacacsId String
an identifier for the resource with format {{name}}.
tertiaryKeys List<String>
<password_str> key to access tertiary server.
tertiaryServer String
{<name_str|ip_str>} tertiary server domain name or IP.
authenType string
Authentication type. auto - Use PAP, MSCHAP, and CHAP (in that order). ascii - ASCII. pap - PAP. chap - CHAP. mschap - MSCHAP. Valid values: auto, ascii, pap, chap, mschap.
authorization string
Enable/disable TACACS+ authorization. disable - Disable TACACS+ authorization. enable - Enable TACACS+ authorization (service = fortigate). Valid values: disable, enable.
keys string[]
<password_str> key to access server.
name string
TACACS+ server entry name.
port number
Port number of TACACS+ server.
secondaryKeys string[]
<password_str> key to access secondary server.
secondaryServer string
{<name_str|ip_str>} secondary server domain name or IP.
server string
{<name_str|ip_str>} server domain name or IP.
systemAdminTacacsId string
an identifier for the resource with format {{name}}.
tertiaryKeys string[]
<password_str> key to access tertiary server.
tertiaryServer string
{<name_str|ip_str>} tertiary server domain name or IP.
authen_type str
Authentication type. auto - Use PAP, MSCHAP, and CHAP (in that order). ascii - ASCII. pap - PAP. chap - CHAP. mschap - MSCHAP. Valid values: auto, ascii, pap, chap, mschap.
authorization str
Enable/disable TACACS+ authorization. disable - Disable TACACS+ authorization. enable - Enable TACACS+ authorization (service = fortigate). Valid values: disable, enable.
keys Sequence[str]
<password_str> key to access server.
name str
TACACS+ server entry name.
port float
Port number of TACACS+ server.
secondary_keys Sequence[str]
<password_str> key to access secondary server.
secondary_server str
{<name_str|ip_str>} secondary server domain name or IP.
server str
{<name_str|ip_str>} server domain name or IP.
system_admin_tacacs_id str
an identifier for the resource with format {{name}}.
tertiary_keys Sequence[str]
<password_str> key to access tertiary server.
tertiary_server str
{<name_str|ip_str>} tertiary server domain name or IP.
authenType String
Authentication type. auto - Use PAP, MSCHAP, and CHAP (in that order). ascii - ASCII. pap - PAP. chap - CHAP. mschap - MSCHAP. Valid values: auto, ascii, pap, chap, mschap.
authorization String
Enable/disable TACACS+ authorization. disable - Disable TACACS+ authorization. enable - Enable TACACS+ authorization (service = fortigate). Valid values: disable, enable.
keys List<String>
<password_str> key to access server.
name String
TACACS+ server entry name.
port Number
Port number of TACACS+ server.
secondaryKeys List<String>
<password_str> key to access secondary server.
secondaryServer String
{<name_str|ip_str>} secondary server domain name or IP.
server String
{<name_str|ip_str>} server domain name or IP.
systemAdminTacacsId String
an identifier for the resource with format {{name}}.
tertiaryKeys List<String>
<password_str> key to access tertiary server.
tertiaryServer String
{<name_str|ip_str>} tertiary server domain name or IP.

Outputs

All input properties are implicitly available as output properties. Additionally, the SystemAdminTacacs 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 SystemAdminTacacs Resource

Get an existing SystemAdminTacacs 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?: SystemAdminTacacsState, opts?: CustomResourceOptions): SystemAdminTacacs
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        authen_type: Optional[str] = None,
        authorization: Optional[str] = None,
        keys: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        port: Optional[float] = None,
        secondary_keys: Optional[Sequence[str]] = None,
        secondary_server: Optional[str] = None,
        server: Optional[str] = None,
        system_admin_tacacs_id: Optional[str] = None,
        tertiary_keys: Optional[Sequence[str]] = None,
        tertiary_server: Optional[str] = None) -> SystemAdminTacacs
func GetSystemAdminTacacs(ctx *Context, name string, id IDInput, state *SystemAdminTacacsState, opts ...ResourceOption) (*SystemAdminTacacs, error)
public static SystemAdminTacacs Get(string name, Input<string> id, SystemAdminTacacsState? state, CustomResourceOptions? opts = null)
public static SystemAdminTacacs get(String name, Output<String> id, SystemAdminTacacsState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:SystemAdminTacacs    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AuthenType string
Authentication type. auto - Use PAP, MSCHAP, and CHAP (in that order). ascii - ASCII. pap - PAP. chap - CHAP. mschap - MSCHAP. Valid values: auto, ascii, pap, chap, mschap.
Authorization string
Enable/disable TACACS+ authorization. disable - Disable TACACS+ authorization. enable - Enable TACACS+ authorization (service = fortigate). Valid values: disable, enable.
Keys List<string>
<password_str> key to access server.
Name string
TACACS+ server entry name.
Port double
Port number of TACACS+ server.
SecondaryKeys List<string>
<password_str> key to access secondary server.
SecondaryServer string
{<name_str|ip_str>} secondary server domain name or IP.
Server string
{<name_str|ip_str>} server domain name or IP.
SystemAdminTacacsId string
an identifier for the resource with format {{name}}.
TertiaryKeys List<string>
<password_str> key to access tertiary server.
TertiaryServer string
{<name_str|ip_str>} tertiary server domain name or IP.
AuthenType string
Authentication type. auto - Use PAP, MSCHAP, and CHAP (in that order). ascii - ASCII. pap - PAP. chap - CHAP. mschap - MSCHAP. Valid values: auto, ascii, pap, chap, mschap.
Authorization string
Enable/disable TACACS+ authorization. disable - Disable TACACS+ authorization. enable - Enable TACACS+ authorization (service = fortigate). Valid values: disable, enable.
Keys []string
<password_str> key to access server.
Name string
TACACS+ server entry name.
Port float64
Port number of TACACS+ server.
SecondaryKeys []string
<password_str> key to access secondary server.
SecondaryServer string
{<name_str|ip_str>} secondary server domain name or IP.
Server string
{<name_str|ip_str>} server domain name or IP.
SystemAdminTacacsId string
an identifier for the resource with format {{name}}.
TertiaryKeys []string
<password_str> key to access tertiary server.
TertiaryServer string
{<name_str|ip_str>} tertiary server domain name or IP.
authenType String
Authentication type. auto - Use PAP, MSCHAP, and CHAP (in that order). ascii - ASCII. pap - PAP. chap - CHAP. mschap - MSCHAP. Valid values: auto, ascii, pap, chap, mschap.
authorization String
Enable/disable TACACS+ authorization. disable - Disable TACACS+ authorization. enable - Enable TACACS+ authorization (service = fortigate). Valid values: disable, enable.
keys List<String>
<password_str> key to access server.
name String
TACACS+ server entry name.
port Double
Port number of TACACS+ server.
secondaryKeys List<String>
<password_str> key to access secondary server.
secondaryServer String
{<name_str|ip_str>} secondary server domain name or IP.
server String
{<name_str|ip_str>} server domain name or IP.
systemAdminTacacsId String
an identifier for the resource with format {{name}}.
tertiaryKeys List<String>
<password_str> key to access tertiary server.
tertiaryServer String
{<name_str|ip_str>} tertiary server domain name or IP.
authenType string
Authentication type. auto - Use PAP, MSCHAP, and CHAP (in that order). ascii - ASCII. pap - PAP. chap - CHAP. mschap - MSCHAP. Valid values: auto, ascii, pap, chap, mschap.
authorization string
Enable/disable TACACS+ authorization. disable - Disable TACACS+ authorization. enable - Enable TACACS+ authorization (service = fortigate). Valid values: disable, enable.
keys string[]
<password_str> key to access server.
name string
TACACS+ server entry name.
port number
Port number of TACACS+ server.
secondaryKeys string[]
<password_str> key to access secondary server.
secondaryServer string
{<name_str|ip_str>} secondary server domain name or IP.
server string
{<name_str|ip_str>} server domain name or IP.
systemAdminTacacsId string
an identifier for the resource with format {{name}}.
tertiaryKeys string[]
<password_str> key to access tertiary server.
tertiaryServer string
{<name_str|ip_str>} tertiary server domain name or IP.
authen_type str
Authentication type. auto - Use PAP, MSCHAP, and CHAP (in that order). ascii - ASCII. pap - PAP. chap - CHAP. mschap - MSCHAP. Valid values: auto, ascii, pap, chap, mschap.
authorization str
Enable/disable TACACS+ authorization. disable - Disable TACACS+ authorization. enable - Enable TACACS+ authorization (service = fortigate). Valid values: disable, enable.
keys Sequence[str]
<password_str> key to access server.
name str
TACACS+ server entry name.
port float
Port number of TACACS+ server.
secondary_keys Sequence[str]
<password_str> key to access secondary server.
secondary_server str
{<name_str|ip_str>} secondary server domain name or IP.
server str
{<name_str|ip_str>} server domain name or IP.
system_admin_tacacs_id str
an identifier for the resource with format {{name}}.
tertiary_keys Sequence[str]
<password_str> key to access tertiary server.
tertiary_server str
{<name_str|ip_str>} tertiary server domain name or IP.
authenType String
Authentication type. auto - Use PAP, MSCHAP, and CHAP (in that order). ascii - ASCII. pap - PAP. chap - CHAP. mschap - MSCHAP. Valid values: auto, ascii, pap, chap, mschap.
authorization String
Enable/disable TACACS+ authorization. disable - Disable TACACS+ authorization. enable - Enable TACACS+ authorization (service = fortigate). Valid values: disable, enable.
keys List<String>
<password_str> key to access server.
name String
TACACS+ server entry name.
port Number
Port number of TACACS+ server.
secondaryKeys List<String>
<password_str> key to access secondary server.
secondaryServer String
{<name_str|ip_str>} secondary server domain name or IP.
server String
{<name_str|ip_str>} server domain name or IP.
systemAdminTacacsId String
an identifier for the resource with format {{name}}.
tertiaryKeys List<String>
<password_str> key to access tertiary server.
tertiaryServer String
{<name_str|ip_str>} tertiary server domain name or IP.

Import

System AdminTacacs can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/systemAdminTacacs:SystemAdminTacacs labelname {{name}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.