1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. AaaAccounting
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.AaaAccounting

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This resource can manage the AAA Accounting configuration.

    Example Usage

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.iosxe.AaaAccounting;
    import com.pulumi.iosxe.AaaAccountingArgs;
    import com.pulumi.iosxe.inputs.AaaAccountingExecArgs;
    import com.pulumi.iosxe.inputs.AaaAccountingNetworkArgs;
    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 AaaAccounting("example", AaaAccountingArgs.builder()        
                .execs(AaaAccountingExecArgs.builder()
                    .name("default")
                    .start_stop_group1("T-Group")
                    .build())
                .identityDefaultStartStopGroup1("RADIUS-GROUP")
                .identityDefaultStartStopGroup2("RADIUS-GROUP2")
                .identityDefaultStartStopGroup3("RADIUS-GROUP3")
                .identityDefaultStartStopGroup4("RADIUS-GROUP4")
                .networks(AaaAccountingNetworkArgs.builder()
                    .id("network1")
                    .start_stop_group1("radius")
                    .start_stop_group2("tacacs+")
                    .build())
                .systemGuaranteeFirst(false)
                .updateNewinfoPeriodic(2880)
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    resources:
      example:
        type: iosxe:AaaAccounting
        properties:
          execs:
            - name: default
              start_stop_group1: T-Group
          identityDefaultStartStopGroup1: RADIUS-GROUP
          identityDefaultStartStopGroup2: RADIUS-GROUP2
          identityDefaultStartStopGroup3: RADIUS-GROUP3
          identityDefaultStartStopGroup4: RADIUS-GROUP4
          networks:
            - id: network1
              start_stop_group1: radius
              start_stop_group2: tacacs+
          systemGuaranteeFirst: false
          updateNewinfoPeriodic: 2880
    

    Create AaaAccounting Resource

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

    Constructor syntax

    new AaaAccounting(name: string, args?: AaaAccountingArgs, opts?: CustomResourceOptions);
    @overload
    def AaaAccounting(resource_name: str,
                      args: Optional[AaaAccountingArgs] = None,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def AaaAccounting(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      delete_mode: Optional[str] = None,
                      device: Optional[str] = None,
                      execs: Optional[Sequence[AaaAccountingExecArgs]] = None,
                      identity_default_start_stop_group1: Optional[str] = None,
                      identity_default_start_stop_group2: Optional[str] = None,
                      identity_default_start_stop_group3: Optional[str] = None,
                      identity_default_start_stop_group4: Optional[str] = None,
                      networks: Optional[Sequence[AaaAccountingNetworkArgs]] = None,
                      system_guarantee_first: Optional[bool] = None,
                      update_newinfo_periodic: Optional[int] = None)
    func NewAaaAccounting(ctx *Context, name string, args *AaaAccountingArgs, opts ...ResourceOption) (*AaaAccounting, error)
    public AaaAccounting(string name, AaaAccountingArgs? args = null, CustomResourceOptions? opts = null)
    public AaaAccounting(String name, AaaAccountingArgs args)
    public AaaAccounting(String name, AaaAccountingArgs args, CustomResourceOptions options)
    
    type: iosxe:AaaAccounting
    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 AaaAccountingArgs
    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 AaaAccountingArgs
    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 AaaAccountingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AaaAccountingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AaaAccountingArgs
    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 aaaAccountingResource = new Iosxe.AaaAccounting("aaaAccountingResource", new()
    {
        DeleteMode = "string",
        Device = "string",
        Execs = new[]
        {
            new Iosxe.Inputs.AaaAccountingExecArgs
            {
                Name = "string",
                StartStopGroup1 = "string",
            },
        },
        IdentityDefaultStartStopGroup1 = "string",
        IdentityDefaultStartStopGroup2 = "string",
        IdentityDefaultStartStopGroup3 = "string",
        IdentityDefaultStartStopGroup4 = "string",
        Networks = new[]
        {
            new Iosxe.Inputs.AaaAccountingNetworkArgs
            {
                Id = "string",
                StartStopGroup1 = "string",
                StartStopGroup2 = "string",
            },
        },
        SystemGuaranteeFirst = false,
        UpdateNewinfoPeriodic = 0,
    });
    
    example, err := iosxe.NewAaaAccounting(ctx, "aaaAccountingResource", &iosxe.AaaAccountingArgs{
    	DeleteMode: pulumi.String("string"),
    	Device:     pulumi.String("string"),
    	Execs: iosxe.AaaAccountingExecArray{
    		&iosxe.AaaAccountingExecArgs{
    			Name:            pulumi.String("string"),
    			StartStopGroup1: pulumi.String("string"),
    		},
    	},
    	IdentityDefaultStartStopGroup1: pulumi.String("string"),
    	IdentityDefaultStartStopGroup2: pulumi.String("string"),
    	IdentityDefaultStartStopGroup3: pulumi.String("string"),
    	IdentityDefaultStartStopGroup4: pulumi.String("string"),
    	Networks: iosxe.AaaAccountingNetworkArray{
    		&iosxe.AaaAccountingNetworkArgs{
    			Id:              pulumi.String("string"),
    			StartStopGroup1: pulumi.String("string"),
    			StartStopGroup2: pulumi.String("string"),
    		},
    	},
    	SystemGuaranteeFirst:  pulumi.Bool(false),
    	UpdateNewinfoPeriodic: pulumi.Int(0),
    })
    
    var aaaAccountingResource = new AaaAccounting("aaaAccountingResource", AaaAccountingArgs.builder()
        .deleteMode("string")
        .device("string")
        .execs(AaaAccountingExecArgs.builder()
            .name("string")
            .startStopGroup1("string")
            .build())
        .identityDefaultStartStopGroup1("string")
        .identityDefaultStartStopGroup2("string")
        .identityDefaultStartStopGroup3("string")
        .identityDefaultStartStopGroup4("string")
        .networks(AaaAccountingNetworkArgs.builder()
            .id("string")
            .startStopGroup1("string")
            .startStopGroup2("string")
            .build())
        .systemGuaranteeFirst(false)
        .updateNewinfoPeriodic(0)
        .build());
    
    aaa_accounting_resource = iosxe.AaaAccounting("aaaAccountingResource",
        delete_mode="string",
        device="string",
        execs=[{
            "name": "string",
            "start_stop_group1": "string",
        }],
        identity_default_start_stop_group1="string",
        identity_default_start_stop_group2="string",
        identity_default_start_stop_group3="string",
        identity_default_start_stop_group4="string",
        networks=[{
            "id": "string",
            "start_stop_group1": "string",
            "start_stop_group2": "string",
        }],
        system_guarantee_first=False,
        update_newinfo_periodic=0)
    
    const aaaAccountingResource = new iosxe.AaaAccounting("aaaAccountingResource", {
        deleteMode: "string",
        device: "string",
        execs: [{
            name: "string",
            startStopGroup1: "string",
        }],
        identityDefaultStartStopGroup1: "string",
        identityDefaultStartStopGroup2: "string",
        identityDefaultStartStopGroup3: "string",
        identityDefaultStartStopGroup4: "string",
        networks: [{
            id: "string",
            startStopGroup1: "string",
            startStopGroup2: "string",
        }],
        systemGuaranteeFirst: false,
        updateNewinfoPeriodic: 0,
    });
    
    type: iosxe:AaaAccounting
    properties:
        deleteMode: string
        device: string
        execs:
            - name: string
              startStopGroup1: string
        identityDefaultStartStopGroup1: string
        identityDefaultStartStopGroup2: string
        identityDefaultStartStopGroup3: string
        identityDefaultStartStopGroup4: string
        networks:
            - id: string
              startStopGroup1: string
              startStopGroup2: string
        systemGuaranteeFirst: false
        updateNewinfoPeriodic: 0
    

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

    DeleteMode 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.
    Execs List<Lbrlabs.PulumiPackage.Iosxe.Inputs.AaaAccountingExec>
    For starting an exec (shell).
    IdentityDefaultStartStopGroup1 string
    Use Server-group
    IdentityDefaultStartStopGroup2 string
    Use Server-group
    IdentityDefaultStartStopGroup3 string
    Use Server-group
    IdentityDefaultStartStopGroup4 string
    Use Server-group
    Networks List<Lbrlabs.PulumiPackage.Iosxe.Inputs.AaaAccountingNetwork>
    For network services. (PPP, SLIP, ARAP)
    SystemGuaranteeFirst bool
    Guarantee system accounting as first record.
    UpdateNewinfoPeriodic int
    Periodic intervals to send accounting update records(in minutes) - Range: 1-71582
    DeleteMode 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.
    Execs []AaaAccountingExecArgs
    For starting an exec (shell).
    IdentityDefaultStartStopGroup1 string
    Use Server-group
    IdentityDefaultStartStopGroup2 string
    Use Server-group
    IdentityDefaultStartStopGroup3 string
    Use Server-group
    IdentityDefaultStartStopGroup4 string
    Use Server-group
    Networks []AaaAccountingNetworkArgs
    For network services. (PPP, SLIP, ARAP)
    SystemGuaranteeFirst bool
    Guarantee system accounting as first record.
    UpdateNewinfoPeriodic int
    Periodic intervals to send accounting update records(in minutes) - Range: 1-71582
    deleteMode 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.
    execs List<AaaAccountingExec>
    For starting an exec (shell).
    identityDefaultStartStopGroup1 String
    Use Server-group
    identityDefaultStartStopGroup2 String
    Use Server-group
    identityDefaultStartStopGroup3 String
    Use Server-group
    identityDefaultStartStopGroup4 String
    Use Server-group
    networks List<AaaAccountingNetwork>
    For network services. (PPP, SLIP, ARAP)
    systemGuaranteeFirst Boolean
    Guarantee system accounting as first record.
    updateNewinfoPeriodic Integer
    Periodic intervals to send accounting update records(in minutes) - Range: 1-71582
    deleteMode 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.
    execs AaaAccountingExec[]
    For starting an exec (shell).
    identityDefaultStartStopGroup1 string
    Use Server-group
    identityDefaultStartStopGroup2 string
    Use Server-group
    identityDefaultStartStopGroup3 string
    Use Server-group
    identityDefaultStartStopGroup4 string
    Use Server-group
    networks AaaAccountingNetwork[]
    For network services. (PPP, SLIP, ARAP)
    systemGuaranteeFirst boolean
    Guarantee system accounting as first record.
    updateNewinfoPeriodic number
    Periodic intervals to send accounting update records(in minutes) - Range: 1-71582
    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.
    execs Sequence[AaaAccountingExecArgs]
    For starting an exec (shell).
    identity_default_start_stop_group1 str
    Use Server-group
    identity_default_start_stop_group2 str
    Use Server-group
    identity_default_start_stop_group3 str
    Use Server-group
    identity_default_start_stop_group4 str
    Use Server-group
    networks Sequence[AaaAccountingNetworkArgs]
    For network services. (PPP, SLIP, ARAP)
    system_guarantee_first bool
    Guarantee system accounting as first record.
    update_newinfo_periodic int
    Periodic intervals to send accounting update records(in minutes) - Range: 1-71582
    deleteMode 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.
    execs List<Property Map>
    For starting an exec (shell).
    identityDefaultStartStopGroup1 String
    Use Server-group
    identityDefaultStartStopGroup2 String
    Use Server-group
    identityDefaultStartStopGroup3 String
    Use Server-group
    identityDefaultStartStopGroup4 String
    Use Server-group
    networks List<Property Map>
    For network services. (PPP, SLIP, ARAP)
    systemGuaranteeFirst Boolean
    Guarantee system accounting as first record.
    updateNewinfoPeriodic Number
    Periodic intervals to send accounting update records(in minutes) - Range: 1-71582

    Outputs

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

    Get an existing AaaAccounting 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?: AaaAccountingState, opts?: CustomResourceOptions): AaaAccounting
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            delete_mode: Optional[str] = None,
            device: Optional[str] = None,
            execs: Optional[Sequence[AaaAccountingExecArgs]] = None,
            identity_default_start_stop_group1: Optional[str] = None,
            identity_default_start_stop_group2: Optional[str] = None,
            identity_default_start_stop_group3: Optional[str] = None,
            identity_default_start_stop_group4: Optional[str] = None,
            networks: Optional[Sequence[AaaAccountingNetworkArgs]] = None,
            system_guarantee_first: Optional[bool] = None,
            update_newinfo_periodic: Optional[int] = None) -> AaaAccounting
    func GetAaaAccounting(ctx *Context, name string, id IDInput, state *AaaAccountingState, opts ...ResourceOption) (*AaaAccounting, error)
    public static AaaAccounting Get(string name, Input<string> id, AaaAccountingState? state, CustomResourceOptions? opts = null)
    public static AaaAccounting get(String name, Output<String> id, AaaAccountingState 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:
    DeleteMode 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.
    Execs List<Lbrlabs.PulumiPackage.Iosxe.Inputs.AaaAccountingExec>
    For starting an exec (shell).
    IdentityDefaultStartStopGroup1 string
    Use Server-group
    IdentityDefaultStartStopGroup2 string
    Use Server-group
    IdentityDefaultStartStopGroup3 string
    Use Server-group
    IdentityDefaultStartStopGroup4 string
    Use Server-group
    Networks List<Lbrlabs.PulumiPackage.Iosxe.Inputs.AaaAccountingNetwork>
    For network services. (PPP, SLIP, ARAP)
    SystemGuaranteeFirst bool
    Guarantee system accounting as first record.
    UpdateNewinfoPeriodic int
    Periodic intervals to send accounting update records(in minutes) - Range: 1-71582
    DeleteMode 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.
    Execs []AaaAccountingExecArgs
    For starting an exec (shell).
    IdentityDefaultStartStopGroup1 string
    Use Server-group
    IdentityDefaultStartStopGroup2 string
    Use Server-group
    IdentityDefaultStartStopGroup3 string
    Use Server-group
    IdentityDefaultStartStopGroup4 string
    Use Server-group
    Networks []AaaAccountingNetworkArgs
    For network services. (PPP, SLIP, ARAP)
    SystemGuaranteeFirst bool
    Guarantee system accounting as first record.
    UpdateNewinfoPeriodic int
    Periodic intervals to send accounting update records(in minutes) - Range: 1-71582
    deleteMode 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.
    execs List<AaaAccountingExec>
    For starting an exec (shell).
    identityDefaultStartStopGroup1 String
    Use Server-group
    identityDefaultStartStopGroup2 String
    Use Server-group
    identityDefaultStartStopGroup3 String
    Use Server-group
    identityDefaultStartStopGroup4 String
    Use Server-group
    networks List<AaaAccountingNetwork>
    For network services. (PPP, SLIP, ARAP)
    systemGuaranteeFirst Boolean
    Guarantee system accounting as first record.
    updateNewinfoPeriodic Integer
    Periodic intervals to send accounting update records(in minutes) - Range: 1-71582
    deleteMode 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.
    execs AaaAccountingExec[]
    For starting an exec (shell).
    identityDefaultStartStopGroup1 string
    Use Server-group
    identityDefaultStartStopGroup2 string
    Use Server-group
    identityDefaultStartStopGroup3 string
    Use Server-group
    identityDefaultStartStopGroup4 string
    Use Server-group
    networks AaaAccountingNetwork[]
    For network services. (PPP, SLIP, ARAP)
    systemGuaranteeFirst boolean
    Guarantee system accounting as first record.
    updateNewinfoPeriodic number
    Periodic intervals to send accounting update records(in minutes) - Range: 1-71582
    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.
    execs Sequence[AaaAccountingExecArgs]
    For starting an exec (shell).
    identity_default_start_stop_group1 str
    Use Server-group
    identity_default_start_stop_group2 str
    Use Server-group
    identity_default_start_stop_group3 str
    Use Server-group
    identity_default_start_stop_group4 str
    Use Server-group
    networks Sequence[AaaAccountingNetworkArgs]
    For network services. (PPP, SLIP, ARAP)
    system_guarantee_first bool
    Guarantee system accounting as first record.
    update_newinfo_periodic int
    Periodic intervals to send accounting update records(in minutes) - Range: 1-71582
    deleteMode 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.
    execs List<Property Map>
    For starting an exec (shell).
    identityDefaultStartStopGroup1 String
    Use Server-group
    identityDefaultStartStopGroup2 String
    Use Server-group
    identityDefaultStartStopGroup3 String
    Use Server-group
    identityDefaultStartStopGroup4 String
    Use Server-group
    networks List<Property Map>
    For network services. (PPP, SLIP, ARAP)
    systemGuaranteeFirst Boolean
    Guarantee system accounting as first record.
    updateNewinfoPeriodic Number
    Periodic intervals to send accounting update records(in minutes) - Range: 1-71582

    Supporting Types

    AaaAccountingExec, AaaAccountingExecArgs

    Name string
    StartStopGroup1 string
    Name string
    StartStopGroup1 string
    name String
    startStopGroup1 String
    name string
    startStopGroup1 string
    name String
    startStopGroup1 String

    AaaAccountingNetwork, AaaAccountingNetworkArgs

    Import

     $ pulumi import iosxe:index/aaaAccounting:AaaAccounting example "Cisco-IOS-XE-native:native/aaa/Cisco-IOS-XE-aaa:accounting"
    

    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.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs