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

ise.deviceadmin.TacacsCommandSet

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 Command Set.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ise from "@pulumi/ise";
    
    const example = new ise.deviceadmin.TacacsCommandSet("example", {
        name: "CommandSet1",
        description: "My TACACS command set",
        permitUnmatched: true,
        commands: [{
            grant: "PERMIT",
            command: "show",
            arguments: "",
        }],
    });
    
    import pulumi
    import pulumi_ise as ise
    
    example = ise.deviceadmin.TacacsCommandSet("example",
        name="CommandSet1",
        description="My TACACS command set",
        permit_unmatched=True,
        commands=[ise.deviceadmin.TacacsCommandSetCommandArgs(
            grant="PERMIT",
            command="show",
            arguments="",
        )])
    
    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.NewTacacsCommandSet(ctx, "example", &deviceadmin.TacacsCommandSetArgs{
    			Name:            pulumi.String("CommandSet1"),
    			Description:     pulumi.String("My TACACS command set"),
    			PermitUnmatched: pulumi.Bool(true),
    			Commands: deviceadmin.TacacsCommandSetCommandArray{
    				&deviceadmin.TacacsCommandSetCommandArgs{
    					Grant:     pulumi.String("PERMIT"),
    					Command:   pulumi.String("show"),
    					Arguments: pulumi.String(""),
    				},
    			},
    		})
    		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.TacacsCommandSet("example", new()
        {
            Name = "CommandSet1",
            Description = "My TACACS command set",
            PermitUnmatched = true,
            Commands = new[]
            {
                new Ise.DeviceAdmin.Inputs.TacacsCommandSetCommandArgs
                {
                    Grant = "PERMIT",
                    Command = "show",
                    Arguments = "",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ise.deviceadmin.TacacsCommandSet;
    import com.pulumi.ise.deviceadmin.TacacsCommandSetArgs;
    import com.pulumi.ise.deviceadmin.inputs.TacacsCommandSetCommandArgs;
    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 TacacsCommandSet("example", TacacsCommandSetArgs.builder()
                .name("CommandSet1")
                .description("My TACACS command set")
                .permitUnmatched(true)
                .commands(TacacsCommandSetCommandArgs.builder()
                    .grant("PERMIT")
                    .command("show")
                    .arguments("")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: ise:deviceadmin:TacacsCommandSet
        properties:
          name: CommandSet1
          description: My TACACS command set
          permitUnmatched: true
          commands:
            - grant: PERMIT
              command: show
              arguments:
    

    Create TacacsCommandSet Resource

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

    Constructor syntax

    new TacacsCommandSet(name: string, args?: TacacsCommandSetArgs, opts?: CustomResourceOptions);
    @overload
    def TacacsCommandSet(resource_name: str,
                         args: Optional[TacacsCommandSetArgs] = None,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def TacacsCommandSet(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         commands: Optional[Sequence[TacacsCommandSetCommandArgs]] = None,
                         description: Optional[str] = None,
                         name: Optional[str] = None,
                         permit_unmatched: Optional[bool] = None)
    func NewTacacsCommandSet(ctx *Context, name string, args *TacacsCommandSetArgs, opts ...ResourceOption) (*TacacsCommandSet, error)
    public TacacsCommandSet(string name, TacacsCommandSetArgs? args = null, CustomResourceOptions? opts = null)
    public TacacsCommandSet(String name, TacacsCommandSetArgs args)
    public TacacsCommandSet(String name, TacacsCommandSetArgs args, CustomResourceOptions options)
    
    type: ise:deviceadmin:TacacsCommandSet
    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 TacacsCommandSetArgs
    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 TacacsCommandSetArgs
    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 TacacsCommandSetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TacacsCommandSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TacacsCommandSetArgs
    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 tacacsCommandSetResource = new Ise.DeviceAdmin.TacacsCommandSet("tacacsCommandSetResource", new()
    {
        Commands = new[]
        {
            new Ise.DeviceAdmin.Inputs.TacacsCommandSetCommandArgs
            {
                Arguments = "string",
                Command = "string",
                Grant = "string",
            },
        },
        Description = "string",
        Name = "string",
        PermitUnmatched = false,
    });
    
    example, err := deviceadmin.NewTacacsCommandSet(ctx, "tacacsCommandSetResource", &deviceadmin.TacacsCommandSetArgs{
    	Commands: deviceadmin.TacacsCommandSetCommandArray{
    		&deviceadmin.TacacsCommandSetCommandArgs{
    			Arguments: pulumi.String("string"),
    			Command:   pulumi.String("string"),
    			Grant:     pulumi.String("string"),
    		},
    	},
    	Description:     pulumi.String("string"),
    	Name:            pulumi.String("string"),
    	PermitUnmatched: pulumi.Bool(false),
    })
    
    var tacacsCommandSetResource = new TacacsCommandSet("tacacsCommandSetResource", TacacsCommandSetArgs.builder()
        .commands(TacacsCommandSetCommandArgs.builder()
            .arguments("string")
            .command("string")
            .grant("string")
            .build())
        .description("string")
        .name("string")
        .permitUnmatched(false)
        .build());
    
    tacacs_command_set_resource = ise.deviceadmin.TacacsCommandSet("tacacsCommandSetResource",
        commands=[ise.deviceadmin.TacacsCommandSetCommandArgs(
            arguments="string",
            command="string",
            grant="string",
        )],
        description="string",
        name="string",
        permit_unmatched=False)
    
    const tacacsCommandSetResource = new ise.deviceadmin.TacacsCommandSet("tacacsCommandSetResource", {
        commands: [{
            arguments: "string",
            command: "string",
            grant: "string",
        }],
        description: "string",
        name: "string",
        permitUnmatched: false,
    });
    
    type: ise:deviceadmin:TacacsCommandSet
    properties:
        commands:
            - arguments: string
              command: string
              grant: string
        description: string
        name: string
        permitUnmatched: false
    

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

    Commands List<TacacsCommandSetCommand>
    Description string
    Description
    Name string
    The name of the TACACS command set
    PermitUnmatched bool
    Permit unmatched commands - Default value: false
    Commands []TacacsCommandSetCommandArgs
    Description string
    Description
    Name string
    The name of the TACACS command set
    PermitUnmatched bool
    Permit unmatched commands - Default value: false
    commands List<TacacsCommandSetCommand>
    description String
    Description
    name String
    The name of the TACACS command set
    permitUnmatched Boolean
    Permit unmatched commands - Default value: false
    commands TacacsCommandSetCommand[]
    description string
    Description
    name string
    The name of the TACACS command set
    permitUnmatched boolean
    Permit unmatched commands - Default value: false
    commands Sequence[TacacsCommandSetCommandArgs]
    description str
    Description
    name str
    The name of the TACACS command set
    permit_unmatched bool
    Permit unmatched commands - Default value: false
    commands List<Property Map>
    description String
    Description
    name String
    The name of the TACACS command set
    permitUnmatched Boolean
    Permit unmatched commands - Default value: false

    Outputs

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

    Get an existing TacacsCommandSet 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?: TacacsCommandSetState, opts?: CustomResourceOptions): TacacsCommandSet
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            commands: Optional[Sequence[TacacsCommandSetCommandArgs]] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            permit_unmatched: Optional[bool] = None) -> TacacsCommandSet
    func GetTacacsCommandSet(ctx *Context, name string, id IDInput, state *TacacsCommandSetState, opts ...ResourceOption) (*TacacsCommandSet, error)
    public static TacacsCommandSet Get(string name, Input<string> id, TacacsCommandSetState? state, CustomResourceOptions? opts = null)
    public static TacacsCommandSet get(String name, Output<String> id, TacacsCommandSetState 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:
    Commands List<TacacsCommandSetCommand>
    Description string
    Description
    Name string
    The name of the TACACS command set
    PermitUnmatched bool
    Permit unmatched commands - Default value: false
    Commands []TacacsCommandSetCommandArgs
    Description string
    Description
    Name string
    The name of the TACACS command set
    PermitUnmatched bool
    Permit unmatched commands - Default value: false
    commands List<TacacsCommandSetCommand>
    description String
    Description
    name String
    The name of the TACACS command set
    permitUnmatched Boolean
    Permit unmatched commands - Default value: false
    commands TacacsCommandSetCommand[]
    description string
    Description
    name string
    The name of the TACACS command set
    permitUnmatched boolean
    Permit unmatched commands - Default value: false
    commands Sequence[TacacsCommandSetCommandArgs]
    description str
    Description
    name str
    The name of the TACACS command set
    permit_unmatched bool
    Permit unmatched commands - Default value: false
    commands List<Property Map>
    description String
    Description
    name String
    The name of the TACACS command set
    permitUnmatched Boolean
    Permit unmatched commands - Default value: false

    Supporting Types

    TacacsCommandSetCommand, TacacsCommandSetCommandArgs

    Arguments string
    Command arguments
    Command string
    Command
    Grant string
    Grant

    • Choices: PERMIT, DENY, DENY_ALWAYS
    Arguments string
    Command arguments
    Command string
    Command
    Grant string
    Grant

    • Choices: PERMIT, DENY, DENY_ALWAYS
    arguments String
    Command arguments
    command String
    Command
    grant String
    Grant

    • Choices: PERMIT, DENY, DENY_ALWAYS
    arguments string
    Command arguments
    command string
    Command
    grant string
    Grant

    • Choices: PERMIT, DENY, DENY_ALWAYS
    arguments str
    Command arguments
    command str
    Command
    grant str
    Grant

    • Choices: PERMIT, DENY, DENY_ALWAYS
    arguments String
    Command arguments
    command String
    Command
    grant String
    Grant

    • Choices: PERMIT, DENY, DENY_ALWAYS

    Import

    $ pulumi import ise:deviceadmin/tacacsCommandSet:TacacsCommandSet 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