iosxe.TacacsServer
Explore with Pulumi AI
This resource can manage the TACACS Server configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Lbrlabs.PulumiPackage.Iosxe;
return await Deployment.RunAsync(() =>
{
var example = new Iosxe.TacacsServer("example", new()
{
AddressIpv4 = "10.10.15.13",
Key = "123",
Timeout = 4,
});
});
package main
import (
"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iosxe.NewTacacsServer(ctx, "example", &iosxe.TacacsServerArgs{
AddressIpv4: pulumi.String("10.10.15.13"),
Key: pulumi.String("123"),
Timeout: pulumi.Int(4),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.TacacsServer;
import com.pulumi.iosxe.TacacsServerArgs;
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 example = new TacacsServer("example", TacacsServerArgs.builder()
.addressIpv4("10.10.15.13")
.key("123")
.timeout(4)
.build());
}
}
import pulumi
import lbrlabs_pulumi_iosxe as iosxe
example = iosxe.TacacsServer("example",
address_ipv4="10.10.15.13",
key="123",
timeout=4)
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@lbrlabs/pulumi-iosxe";
const example = new iosxe.TacacsServer("example", {
addressIpv4: "10.10.15.13",
key: "123",
timeout: 4,
});
resources:
example:
type: iosxe:TacacsServer
properties:
addressIpv4: 10.10.15.13
key: '123'
timeout: 4
Create TacacsServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TacacsServer(name: string, args?: TacacsServerArgs, opts?: CustomResourceOptions);
@overload
def TacacsServer(resource_name: str,
args: Optional[TacacsServerArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def TacacsServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
address_ipv4: Optional[str] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
key: Optional[str] = None,
name: Optional[str] = None,
timeout: Optional[int] = None)
func NewTacacsServer(ctx *Context, name string, args *TacacsServerArgs, opts ...ResourceOption) (*TacacsServer, error)
public TacacsServer(string name, TacacsServerArgs? args = null, CustomResourceOptions? opts = null)
public TacacsServer(String name, TacacsServerArgs args)
public TacacsServer(String name, TacacsServerArgs args, CustomResourceOptions options)
type: iosxe:TacacsServer
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 TacacsServerArgs
- 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 TacacsServerArgs
- 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 TacacsServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TacacsServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TacacsServerArgs
- 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 tacacsServerResource = new Iosxe.TacacsServer("tacacsServerResource", new()
{
AddressIpv4 = "string",
DeleteMode = "string",
Device = "string",
Key = "string",
Name = "string",
Timeout = 0,
});
example, err := iosxe.NewTacacsServer(ctx, "tacacsServerResource", &iosxe.TacacsServerArgs{
AddressIpv4: pulumi.String("string"),
DeleteMode: pulumi.String("string"),
Device: pulumi.String("string"),
Key: pulumi.String("string"),
Name: pulumi.String("string"),
Timeout: pulumi.Int(0),
})
var tacacsServerResource = new TacacsServer("tacacsServerResource", TacacsServerArgs.builder()
.addressIpv4("string")
.deleteMode("string")
.device("string")
.key("string")
.name("string")
.timeout(0)
.build());
tacacs_server_resource = iosxe.TacacsServer("tacacsServerResource",
address_ipv4="string",
delete_mode="string",
device="string",
key="string",
name="string",
timeout=0)
const tacacsServerResource = new iosxe.TacacsServer("tacacsServerResource", {
addressIpv4: "string",
deleteMode: "string",
device: "string",
key: "string",
name: "string",
timeout: 0,
});
type: iosxe:TacacsServer
properties:
addressIpv4: string
deleteMode: string
device: string
key: string
name: string
timeout: 0
TacacsServer 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 TacacsServer resource accepts the following input properties:
- Address
Ipv4 string - IPv4 address or Hostname for tacacs server
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Key string
- The UNENCRYPTED (cleartext) server key
- Name string
- Name for the tacacs server configuration
- Timeout int
- Time to wait for this TACACS server to reply (overrides default) - Range:
1
-1000
- Address
Ipv4 string - IPv4 address or Hostname for tacacs server
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Key string
- The UNENCRYPTED (cleartext) server key
- Name string
- Name for the tacacs server configuration
- Timeout int
- Time to wait for this TACACS server to reply (overrides default) - Range:
1
-1000
- address
Ipv4 String - IPv4 address or Hostname for tacacs server
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- key String
- The UNENCRYPTED (cleartext) server key
- name String
- Name for the tacacs server configuration
- timeout Integer
- Time to wait for this TACACS server to reply (overrides default) - Range:
1
-1000
- address
Ipv4 string - IPv4 address or Hostname for tacacs server
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device string
- A device name from the provider configuration.
- key string
- The UNENCRYPTED (cleartext) server key
- name string
- Name for the tacacs server configuration
- timeout number
- Time to wait for this TACACS server to reply (overrides default) - Range:
1
-1000
- address_
ipv4 str - IPv4 address or Hostname for tacacs server
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device str
- A device name from the provider configuration.
- key str
- The UNENCRYPTED (cleartext) server key
- name str
- Name for the tacacs server configuration
- timeout int
- Time to wait for this TACACS server to reply (overrides default) - Range:
1
-1000
- address
Ipv4 String - IPv4 address or Hostname for tacacs server
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- key String
- The UNENCRYPTED (cleartext) server key
- name String
- Name for the tacacs server configuration
- timeout Number
- Time to wait for this TACACS server to reply (overrides default) - Range:
1
-1000
Outputs
All input properties are implicitly available as output properties. Additionally, the TacacsServer 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 TacacsServer Resource
Get an existing TacacsServer 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?: TacacsServerState, opts?: CustomResourceOptions): TacacsServer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address_ipv4: Optional[str] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
key: Optional[str] = None,
name: Optional[str] = None,
timeout: Optional[int] = None) -> TacacsServer
func GetTacacsServer(ctx *Context, name string, id IDInput, state *TacacsServerState, opts ...ResourceOption) (*TacacsServer, error)
public static TacacsServer Get(string name, Input<string> id, TacacsServerState? state, CustomResourceOptions? opts = null)
public static TacacsServer get(String name, Output<String> id, TacacsServerState 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.
- Address
Ipv4 string - IPv4 address or Hostname for tacacs server
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Key string
- The UNENCRYPTED (cleartext) server key
- Name string
- Name for the tacacs server configuration
- Timeout int
- Time to wait for this TACACS server to reply (overrides default) - Range:
1
-1000
- Address
Ipv4 string - IPv4 address or Hostname for tacacs server
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Key string
- The UNENCRYPTED (cleartext) server key
- Name string
- Name for the tacacs server configuration
- Timeout int
- Time to wait for this TACACS server to reply (overrides default) - Range:
1
-1000
- address
Ipv4 String - IPv4 address or Hostname for tacacs server
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- key String
- The UNENCRYPTED (cleartext) server key
- name String
- Name for the tacacs server configuration
- timeout Integer
- Time to wait for this TACACS server to reply (overrides default) - Range:
1
-1000
- address
Ipv4 string - IPv4 address or Hostname for tacacs server
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device string
- A device name from the provider configuration.
- key string
- The UNENCRYPTED (cleartext) server key
- name string
- Name for the tacacs server configuration
- timeout number
- Time to wait for this TACACS server to reply (overrides default) - Range:
1
-1000
- address_
ipv4 str - IPv4 address or Hostname for tacacs server
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device str
- A device name from the provider configuration.
- key str
- The UNENCRYPTED (cleartext) server key
- name str
- Name for the tacacs server configuration
- timeout int
- Time to wait for this TACACS server to reply (overrides default) - Range:
1
-1000
- address
Ipv4 String - IPv4 address or Hostname for tacacs server
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- key String
- The UNENCRYPTED (cleartext) server key
- name String
- Name for the tacacs server configuration
- timeout Number
- Time to wait for this TACACS server to reply (overrides default) - Range:
1
-1000
Import
$ pulumi import iosxe:index/tacacsServer:TacacsServer example "Cisco-IOS-XE-native:native/tacacs/Cisco-IOS-XE-aaa:server=tacacs_10.10.15.13"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxe
Terraform Provider.