1. Packages
  2. Cisco ISE Provider
  3. API Docs
  4. deviceadmin
  5. TacacsProfile
Cisco ISE v0.2.1 published on Saturday, Mar 15, 2025 by Pulumi

ise.deviceadmin.TacacsProfile

Explore with Pulumi AI

This resource can manage a TACACS Profile.

Example Usage

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

const example = new ise.deviceadmin.TacacsProfile("example", {
    name: "Profile1",
    description: "My TACACS profile",
    sessionAttributes: [{
        type: "MANDATORY",
        name: "attr1",
        value: "value",
    }],
});
Copy
import pulumi
import pulumi_ise as ise

example = ise.deviceadmin.TacacsProfile("example",
    name="Profile1",
    description="My TACACS profile",
    session_attributes=[{
        "type": "MANDATORY",
        "name": "attr1",
        "value": "value",
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi-ise/sdk/go/ise/deviceadmin"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := deviceadmin.NewTacacsProfile(ctx, "example", &deviceadmin.TacacsProfileArgs{
			Name:        pulumi.String("Profile1"),
			Description: pulumi.String("My TACACS profile"),
			SessionAttributes: deviceadmin.TacacsProfileSessionAttributeArray{
				&deviceadmin.TacacsProfileSessionAttributeArgs{
					Type:  pulumi.String("MANDATORY"),
					Name:  pulumi.String("attr1"),
					Value: pulumi.String("value"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ise = Pulumi.Ise;

return await Deployment.RunAsync(() => 
{
    var example = new Ise.DeviceAdmin.TacacsProfile("example", new()
    {
        Name = "Profile1",
        Description = "My TACACS profile",
        SessionAttributes = new[]
        {
            new Ise.DeviceAdmin.Inputs.TacacsProfileSessionAttributeArgs
            {
                Type = "MANDATORY",
                Name = "attr1",
                Value = "value",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ise.deviceadmin.TacacsProfile;
import com.pulumi.ise.deviceadmin.TacacsProfileArgs;
import com.pulumi.ise.deviceadmin.inputs.TacacsProfileSessionAttributeArgs;
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 TacacsProfile("example", TacacsProfileArgs.builder()
            .name("Profile1")
            .description("My TACACS profile")
            .sessionAttributes(TacacsProfileSessionAttributeArgs.builder()
                .type("MANDATORY")
                .name("attr1")
                .value("value")
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: ise:deviceadmin:TacacsProfile
    properties:
      name: Profile1
      description: My TACACS profile
      sessionAttributes:
        - type: MANDATORY
          name: attr1
          value: value
Copy

Create TacacsProfile Resource

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

Constructor syntax

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

@overload
def TacacsProfile(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  description: Optional[str] = None,
                  name: Optional[str] = None,
                  session_attributes: Optional[Sequence[TacacsProfileSessionAttributeArgs]] = None)
func NewTacacsProfile(ctx *Context, name string, args *TacacsProfileArgs, opts ...ResourceOption) (*TacacsProfile, error)
public TacacsProfile(string name, TacacsProfileArgs? args = null, CustomResourceOptions? opts = null)
public TacacsProfile(String name, TacacsProfileArgs args)
public TacacsProfile(String name, TacacsProfileArgs args, CustomResourceOptions options)
type: ise:deviceadmin:TacacsProfile
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 TacacsProfileArgs
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 TacacsProfileArgs
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 TacacsProfileArgs
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 TacacsProfileArgs
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. TacacsProfileArgs
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 tacacsProfileResource = new Ise.DeviceAdmin.TacacsProfile("tacacsProfileResource", new()
{
    Description = "string",
    Name = "string",
    SessionAttributes = new[]
    {
        new Ise.DeviceAdmin.Inputs.TacacsProfileSessionAttributeArgs
        {
            Name = "string",
            Type = "string",
            Value = "string",
        },
    },
});
Copy
example, err := deviceadmin.NewTacacsProfile(ctx, "tacacsProfileResource", &deviceadmin.TacacsProfileArgs{
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
	SessionAttributes: deviceadmin.TacacsProfileSessionAttributeArray{
		&deviceadmin.TacacsProfileSessionAttributeArgs{
			Name:  pulumi.String("string"),
			Type:  pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
})
Copy
var tacacsProfileResource = new TacacsProfile("tacacsProfileResource", TacacsProfileArgs.builder()
    .description("string")
    .name("string")
    .sessionAttributes(TacacsProfileSessionAttributeArgs.builder()
        .name("string")
        .type("string")
        .value("string")
        .build())
    .build());
Copy
tacacs_profile_resource = ise.deviceadmin.TacacsProfile("tacacsProfileResource",
    description="string",
    name="string",
    session_attributes=[{
        "name": "string",
        "type": "string",
        "value": "string",
    }])
Copy
const tacacsProfileResource = new ise.deviceadmin.TacacsProfile("tacacsProfileResource", {
    description: "string",
    name: "string",
    sessionAttributes: [{
        name: "string",
        type: "string",
        value: "string",
    }],
});
Copy
type: ise:deviceadmin:TacacsProfile
properties:
    description: string
    name: string
    sessionAttributes:
        - name: string
          type: string
          value: string
Copy

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

Description string
Description
Name string
The name of the TACACS profile
SessionAttributes List<TacacsProfileSessionAttribute>
Description string
Description
Name string
The name of the TACACS profile
SessionAttributes []TacacsProfileSessionAttributeArgs
description String
Description
name String
The name of the TACACS profile
sessionAttributes List<TacacsProfileSessionAttribute>
description string
Description
name string
The name of the TACACS profile
sessionAttributes TacacsProfileSessionAttribute[]
description String
Description
name String
The name of the TACACS profile
sessionAttributes List<Property Map>

Outputs

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

Get an existing TacacsProfile 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?: TacacsProfileState, opts?: CustomResourceOptions): TacacsProfile
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        session_attributes: Optional[Sequence[TacacsProfileSessionAttributeArgs]] = None) -> TacacsProfile
func GetTacacsProfile(ctx *Context, name string, id IDInput, state *TacacsProfileState, opts ...ResourceOption) (*TacacsProfile, error)
public static TacacsProfile Get(string name, Input<string> id, TacacsProfileState? state, CustomResourceOptions? opts = null)
public static TacacsProfile get(String name, Output<String> id, TacacsProfileState state, CustomResourceOptions options)
resources:  _:    type: ise:deviceadmin:TacacsProfile    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:
Description string
Description
Name string
The name of the TACACS profile
SessionAttributes List<TacacsProfileSessionAttribute>
Description string
Description
Name string
The name of the TACACS profile
SessionAttributes []TacacsProfileSessionAttributeArgs
description String
Description
name String
The name of the TACACS profile
sessionAttributes List<TacacsProfileSessionAttribute>
description string
Description
name string
The name of the TACACS profile
sessionAttributes TacacsProfileSessionAttribute[]
description String
Description
name String
The name of the TACACS profile
sessionAttributes List<Property Map>

Supporting Types

TacacsProfileSessionAttribute
, TacacsProfileSessionAttributeArgs

Name This property is required. string
Name
Type This property is required. string
Type

  • Choices: MANDATORY, OPTIONAL
Value This property is required. string
Value
Name This property is required. string
Name
Type This property is required. string
Type

  • Choices: MANDATORY, OPTIONAL
Value This property is required. string
Value
name This property is required. String
Name
type This property is required. String
Type

  • Choices: MANDATORY, OPTIONAL
value This property is required. String
Value
name This property is required. string
Name
type This property is required. string
Type

  • Choices: MANDATORY, OPTIONAL
value This property is required. string
Value
name This property is required. str
Name
type This property is required. str
Type

  • Choices: MANDATORY, OPTIONAL
value This property is required. str
Value
name This property is required. String
Name
type This property is required. String
Type

  • Choices: MANDATORY, OPTIONAL
value This property is required. String
Value

Import

$ pulumi import ise:deviceadmin/tacacsProfile:TacacsProfile example "76d24097-41c4-4558-a4d0-a8c07ac08470"
Copy

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

Package Details

Repository
ise pulumi/pulumi-ise
License
Apache-2.0
Notes
This Pulumi package is based on the ise Terraform Provider.