1. Packages
  2. Fortios
  3. API Docs
  4. user
  5. Tacacs
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

fortios.user.Tacacs

Explore with Pulumi AI

fortios logo
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

    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:

    AuthenType string
    Allowed authentication protocols/methods. Valid values: mschap, chap, pap, ascii, auto.
    Authorization string
    Enable/disable TACACS+ authorization. Valid values: enable, disable.
    Interface string
    Specify outgoing interface to reach server.
    InterfaceSelectMethod string
    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.
    SecondaryKey string
    Key to access the secondary server.
    SecondaryServer string
    Secondary TACACS+ server CN domain name or IP address.
    Server string
    Primary TACACS+ server CN domain name or IP address.
    SourceIp string
    source IP for communications to TACACS+ server.
    TertiaryKey string
    Key to access the tertiary server.
    TertiaryServer 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.
    AuthenType string
    Allowed authentication protocols/methods. Valid values: mschap, chap, pap, ascii, auto.
    Authorization string
    Enable/disable TACACS+ authorization. Valid values: enable, disable.
    Interface string
    Specify outgoing interface to reach server.
    InterfaceSelectMethod string
    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.
    SecondaryKey string
    Key to access the secondary server.
    SecondaryServer string
    Secondary TACACS+ server CN domain name or IP address.
    Server string
    Primary TACACS+ server CN domain name or IP address.
    SourceIp string
    source IP for communications to TACACS+ server.
    TertiaryKey string
    Key to access the tertiary server.
    TertiaryServer 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.
    authenType String
    Allowed authentication protocols/methods. Valid values: mschap, chap, pap, ascii, auto.
    authorization String
    Enable/disable TACACS+ authorization. Valid values: enable, disable.
    interfaceSelectMethod String
    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.
    secondaryKey String
    Key to access the secondary server.
    secondaryServer String
    Secondary TACACS+ server CN domain name or IP address.
    server String
    Primary TACACS+ server CN domain name or IP address.
    sourceIp String
    source IP for communications to TACACS+ server.
    tertiaryKey String
    Key to access the tertiary server.
    tertiaryServer 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.
    authenType string
    Allowed authentication protocols/methods. Valid values: mschap, chap, pap, ascii, auto.
    authorization string
    Enable/disable TACACS+ authorization. Valid values: enable, disable.
    interface string
    Specify outgoing interface to reach server.
    interfaceSelectMethod string
    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.
    secondaryKey string
    Key to access the secondary server.
    secondaryServer string
    Secondary TACACS+ server CN domain name or IP address.
    server string
    Primary TACACS+ server CN domain name or IP address.
    sourceIp string
    source IP for communications to TACACS+ server.
    tertiaryKey string
    Key to access the tertiary server.
    tertiaryServer 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.
    authorization str
    Enable/disable TACACS+ authorization. Valid values: enable, disable.
    interface str
    Specify outgoing interface to reach server.
    interface_select_method str
    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.
    authenType String
    Allowed authentication protocols/methods. Valid values: mschap, chap, pap, ascii, auto.
    authorization String
    Enable/disable TACACS+ authorization. Valid values: enable, disable.
    interface String
    Specify outgoing interface to reach server.
    interfaceSelectMethod String
    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.
    secondaryKey String
    Key to access the secondary server.
    secondaryServer String
    Secondary TACACS+ server CN domain name or IP address.
    server String
    Primary TACACS+ server CN domain name or IP address.
    sourceIp String
    source IP for communications to TACACS+ server.
    tertiaryKey String
    Key to access the tertiary server.
    tertiaryServer 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.
    The following state arguments are supported:
    AuthenType string
    Allowed authentication protocols/methods. Valid values: mschap, chap, pap, ascii, auto.
    Authorization string
    Enable/disable TACACS+ authorization. Valid values: enable, disable.
    Interface string
    Specify outgoing interface to reach server.
    InterfaceSelectMethod string
    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.
    SecondaryKey string
    Key to access the secondary server.
    SecondaryServer string
    Secondary TACACS+ server CN domain name or IP address.
    Server string
    Primary TACACS+ server CN domain name or IP address.
    SourceIp string
    source IP for communications to TACACS+ server.
    TertiaryKey string
    Key to access the tertiary server.
    TertiaryServer 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.
    AuthenType string
    Allowed authentication protocols/methods. Valid values: mschap, chap, pap, ascii, auto.
    Authorization string
    Enable/disable TACACS+ authorization. Valid values: enable, disable.
    Interface string
    Specify outgoing interface to reach server.
    InterfaceSelectMethod string
    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.
    SecondaryKey string
    Key to access the secondary server.
    SecondaryServer string
    Secondary TACACS+ server CN domain name or IP address.
    Server string
    Primary TACACS+ server CN domain name or IP address.
    SourceIp string
    source IP for communications to TACACS+ server.
    TertiaryKey string
    Key to access the tertiary server.
    TertiaryServer 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.
    authenType String
    Allowed authentication protocols/methods. Valid values: mschap, chap, pap, ascii, auto.
    authorization String
    Enable/disable TACACS+ authorization. Valid values: enable, disable.
    interfaceSelectMethod String
    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.
    secondaryKey String
    Key to access the secondary server.
    secondaryServer String
    Secondary TACACS+ server CN domain name or IP address.
    server String
    Primary TACACS+ server CN domain name or IP address.
    sourceIp String
    source IP for communications to TACACS+ server.
    tertiaryKey String
    Key to access the tertiary server.
    tertiaryServer 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.
    authenType string
    Allowed authentication protocols/methods. Valid values: mschap, chap, pap, ascii, auto.
    authorization string
    Enable/disable TACACS+ authorization. Valid values: enable, disable.
    interface string
    Specify outgoing interface to reach server.
    interfaceSelectMethod string
    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.
    secondaryKey string
    Key to access the secondary server.
    secondaryServer string
    Secondary TACACS+ server CN domain name or IP address.
    server string
    Primary TACACS+ server CN domain name or IP address.
    sourceIp string
    source IP for communications to TACACS+ server.
    tertiaryKey string
    Key to access the tertiary server.
    tertiaryServer 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.
    authorization str
    Enable/disable TACACS+ authorization. Valid values: enable, disable.
    interface str
    Specify outgoing interface to reach server.
    interface_select_method str
    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.
    authenType String
    Allowed authentication protocols/methods. Valid values: mschap, chap, pap, ascii, auto.
    authorization String
    Enable/disable TACACS+ authorization. Valid values: enable, disable.
    interface String
    Specify outgoing interface to reach server.
    interfaceSelectMethod String
    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.
    secondaryKey String
    Key to access the secondary server.
    secondaryServer String
    Secondary TACACS+ server CN domain name or IP address.
    server String
    Primary TACACS+ server CN domain name or IP address.
    sourceIp String
    source IP for communications to TACACS+ server.
    tertiaryKey String
    Key to access the tertiary server.
    tertiaryServer 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.
    fortios logo
    Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse