iosxe.AaaAccounting
Explore with Pulumi AI
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:
- 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.
- Execs
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Aaa Accounting Exec> - For starting an exec (shell).
- Identity
Default stringStart Stop Group1 - Use Server-group
- Identity
Default stringStart Stop Group2 - Use Server-group
- Identity
Default stringStart Stop Group3 - Use Server-group
- Identity
Default stringStart Stop Group4 - Use Server-group
- Networks
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Aaa Accounting Network> - For network services. (PPP, SLIP, ARAP)
- System
Guarantee boolFirst - Guarantee system accounting as first record.
- Update
Newinfo intPeriodic - Periodic intervals to send accounting update records(in minutes) - Range:
1
-71582
- 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.
- Execs
[]Aaa
Accounting Exec Args - For starting an exec (shell).
- Identity
Default stringStart Stop Group1 - Use Server-group
- Identity
Default stringStart Stop Group2 - Use Server-group
- Identity
Default stringStart Stop Group3 - Use Server-group
- Identity
Default stringStart Stop Group4 - Use Server-group
- Networks
[]Aaa
Accounting Network Args - For network services. (PPP, SLIP, ARAP)
- System
Guarantee boolFirst - Guarantee system accounting as first record.
- Update
Newinfo intPeriodic - Periodic intervals to send accounting update records(in minutes) - Range:
1
-71582
- 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.
- execs
List<Aaa
Accounting Exec> - For starting an exec (shell).
- identity
Default StringStart Stop Group1 - Use Server-group
- identity
Default StringStart Stop Group2 - Use Server-group
- identity
Default StringStart Stop Group3 - Use Server-group
- identity
Default StringStart Stop Group4 - Use Server-group
- networks
List<Aaa
Accounting Network> - For network services. (PPP, SLIP, ARAP)
- system
Guarantee BooleanFirst - Guarantee system accounting as first record.
- update
Newinfo IntegerPeriodic - Periodic intervals to send accounting update records(in minutes) - Range:
1
-71582
- 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.
- execs
Aaa
Accounting Exec[] - For starting an exec (shell).
- identity
Default stringStart Stop Group1 - Use Server-group
- identity
Default stringStart Stop Group2 - Use Server-group
- identity
Default stringStart Stop Group3 - Use Server-group
- identity
Default stringStart Stop Group4 - Use Server-group
- networks
Aaa
Accounting Network[] - For network services. (PPP, SLIP, ARAP)
- system
Guarantee booleanFirst - Guarantee system accounting as first record.
- update
Newinfo numberPeriodic - 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[Aaa
Accounting Exec Args] - For starting an exec (shell).
- identity_
default_ strstart_ stop_ group1 - Use Server-group
- identity_
default_ strstart_ stop_ group2 - Use Server-group
- identity_
default_ strstart_ stop_ group3 - Use Server-group
- identity_
default_ strstart_ stop_ group4 - Use Server-group
- networks
Sequence[Aaa
Accounting Network Args] - For network services. (PPP, SLIP, ARAP)
- system_
guarantee_ boolfirst - Guarantee system accounting as first record.
- update_
newinfo_ intperiodic - Periodic intervals to send accounting update records(in minutes) - Range:
1
-71582
- 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.
- execs List<Property Map>
- For starting an exec (shell).
- identity
Default StringStart Stop Group1 - Use Server-group
- identity
Default StringStart Stop Group2 - Use Server-group
- identity
Default StringStart Stop Group3 - Use Server-group
- identity
Default StringStart Stop Group4 - Use Server-group
- networks List<Property Map>
- For network services. (PPP, SLIP, ARAP)
- system
Guarantee BooleanFirst - Guarantee system accounting as first record.
- update
Newinfo NumberPeriodic - 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.
- 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.
- Execs
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Aaa Accounting Exec> - For starting an exec (shell).
- Identity
Default stringStart Stop Group1 - Use Server-group
- Identity
Default stringStart Stop Group2 - Use Server-group
- Identity
Default stringStart Stop Group3 - Use Server-group
- Identity
Default stringStart Stop Group4 - Use Server-group
- Networks
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Aaa Accounting Network> - For network services. (PPP, SLIP, ARAP)
- System
Guarantee boolFirst - Guarantee system accounting as first record.
- Update
Newinfo intPeriodic - Periodic intervals to send accounting update records(in minutes) - Range:
1
-71582
- 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.
- Execs
[]Aaa
Accounting Exec Args - For starting an exec (shell).
- Identity
Default stringStart Stop Group1 - Use Server-group
- Identity
Default stringStart Stop Group2 - Use Server-group
- Identity
Default stringStart Stop Group3 - Use Server-group
- Identity
Default stringStart Stop Group4 - Use Server-group
- Networks
[]Aaa
Accounting Network Args - For network services. (PPP, SLIP, ARAP)
- System
Guarantee boolFirst - Guarantee system accounting as first record.
- Update
Newinfo intPeriodic - Periodic intervals to send accounting update records(in minutes) - Range:
1
-71582
- 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.
- execs
List<Aaa
Accounting Exec> - For starting an exec (shell).
- identity
Default StringStart Stop Group1 - Use Server-group
- identity
Default StringStart Stop Group2 - Use Server-group
- identity
Default StringStart Stop Group3 - Use Server-group
- identity
Default StringStart Stop Group4 - Use Server-group
- networks
List<Aaa
Accounting Network> - For network services. (PPP, SLIP, ARAP)
- system
Guarantee BooleanFirst - Guarantee system accounting as first record.
- update
Newinfo IntegerPeriodic - Periodic intervals to send accounting update records(in minutes) - Range:
1
-71582
- 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.
- execs
Aaa
Accounting Exec[] - For starting an exec (shell).
- identity
Default stringStart Stop Group1 - Use Server-group
- identity
Default stringStart Stop Group2 - Use Server-group
- identity
Default stringStart Stop Group3 - Use Server-group
- identity
Default stringStart Stop Group4 - Use Server-group
- networks
Aaa
Accounting Network[] - For network services. (PPP, SLIP, ARAP)
- system
Guarantee booleanFirst - Guarantee system accounting as first record.
- update
Newinfo numberPeriodic - 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[Aaa
Accounting Exec Args] - For starting an exec (shell).
- identity_
default_ strstart_ stop_ group1 - Use Server-group
- identity_
default_ strstart_ stop_ group2 - Use Server-group
- identity_
default_ strstart_ stop_ group3 - Use Server-group
- identity_
default_ strstart_ stop_ group4 - Use Server-group
- networks
Sequence[Aaa
Accounting Network Args] - For network services. (PPP, SLIP, ARAP)
- system_
guarantee_ boolfirst - Guarantee system accounting as first record.
- update_
newinfo_ intperiodic - Periodic intervals to send accounting update records(in minutes) - Range:
1
-71582
- 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.
- execs List<Property Map>
- For starting an exec (shell).
- identity
Default StringStart Stop Group1 - Use Server-group
- identity
Default StringStart Stop Group2 - Use Server-group
- identity
Default StringStart Stop Group3 - Use Server-group
- identity
Default StringStart Stop Group4 - Use Server-group
- networks List<Property Map>
- For network services. (PPP, SLIP, ARAP)
- system
Guarantee BooleanFirst - Guarantee system accounting as first record.
- update
Newinfo NumberPeriodic - Periodic intervals to send accounting update records(in minutes) - Range:
1
-71582
Supporting Types
AaaAccountingExec, AaaAccountingExecArgs
- Name string
- Start
Stop stringGroup1
- Name string
- Start
Stop stringGroup1
- name String
- start
Stop StringGroup1
- name string
- start
Stop stringGroup1
- name str
- start_
stop_ strgroup1
- name String
- start
Stop StringGroup1
AaaAccountingNetwork, AaaAccountingNetworkArgs
- Id string
- Start
Stop stringGroup1 - Start
Stop stringGroup2
- Id string
- Start
Stop stringGroup1 - Start
Stop stringGroup2
- id String
- start
Stop StringGroup1 - start
Stop StringGroup2
- id string
- start
Stop stringGroup1 - start
Stop stringGroup2
- id str
- start_
stop_ strgroup1 - start_
stop_ strgroup2
- id String
- start
Stop StringGroup1 - start
Stop StringGroup2
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.