1. Packages
  2. Cisco ISE
  3. API Docs
  4. deviceadmin
  5. TacacsProfile
Cisco ISE v0.1.4 published on Friday, May 31, 2024 by Pulumi

ise.deviceadmin.TacacsProfile

Explore with Pulumi AI

ise logo
Cisco ISE v0.1.4 published on Friday, May 31, 2024 by Pulumi

    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",
        }],
    });
    
    import pulumi
    import pulumi_ise as ise
    
    example = ise.deviceadmin.TacacsProfile("example",
        name="Profile1",
        description="My TACACS profile",
        session_attributes=[ise.deviceadmin.TacacsProfileSessionAttributeArgs(
            type="MANDATORY",
            name="attr1",
            value="value",
        )])
    
    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
    	})
    }
    
    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",
                },
            },
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      example:
        type: ise:deviceadmin:TacacsProfile
        properties:
          name: Profile1
          description: My TACACS profile
          sessionAttributes:
            - type: MANDATORY
              name: attr1
              value: value
    

    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 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 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 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 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 String
    The unique name of the resource.
    args 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",
            },
        },
    });
    
    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"),
    		},
    	},
    })
    
    var tacacsProfileResource = new TacacsProfile("tacacsProfileResource", TacacsProfileArgs.builder()
        .description("string")
        .name("string")
        .sessionAttributes(TacacsProfileSessionAttributeArgs.builder()
            .name("string")
            .type("string")
            .value("string")
            .build())
        .build());
    
    tacacs_profile_resource = ise.deviceadmin.TacacsProfile("tacacsProfileResource",
        description="string",
        name="string",
        session_attributes=[ise.deviceadmin.TacacsProfileSessionAttributeArgs(
            name="string",
            type="string",
            value="string",
        )])
    
    const tacacsProfileResource = new ise.deviceadmin.TacacsProfile("tacacsProfileResource", {
        description: "string",
        name: "string",
        sessionAttributes: [{
            name: "string",
            type: "string",
            value: "string",
        }],
    });
    
    type: ise:deviceadmin:TacacsProfile
    properties:
        description: string
        name: string
        sessionAttributes:
            - name: string
              type: string
              value: string
    

    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

    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)
    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:
    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 string
    Name
    Type string
    Type

    • Choices: MANDATORY, OPTIONAL
    Value string
    Value
    Name string
    Name
    Type string
    Type

    • Choices: MANDATORY, OPTIONAL
    Value string
    Value
    name String
    Name
    type String
    Type

    • Choices: MANDATORY, OPTIONAL
    value String
    Value
    name string
    Name
    type string
    Type

    • Choices: MANDATORY, OPTIONAL
    value string
    Value
    name str
    Name
    type str
    Type

    • Choices: MANDATORY, OPTIONAL
    value str
    Value
    name String
    Name
    type String
    Type

    • Choices: MANDATORY, OPTIONAL
    value String
    Value

    Import

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

    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.
    ise logo
    Cisco ISE v0.1.4 published on Friday, May 31, 2024 by Pulumi