initialconfig

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

type Template struct {
	pulumi.CustomResourceState

	// Permitted types of management access to this interface. Valid values: `ping`, `https`, `ssh`, `snmp`, `http`, `telnet`, `fgfm`, `radius-acct`, `probe-response`, `fabric`, `ftm`.
	Allowaccess pulumi.StringOutput `pulumi:"allowaccess"`
	// Automatically allocate interface address and subnet block. Valid values: `enable`, `disable`.
	AutoIp pulumi.StringOutput `pulumi:"autoIp"`
	// Enable/disable a DHCP server on this interface. Valid values: `enable`, `disable`.
	DhcpServer pulumi.StringOutput `pulumi:"dhcpServer"`
	// Interface IPv4 address and subnet mask.
	Ip pulumi.StringOutput `pulumi:"ip"`
	// Initial config template name
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrOutput `pulumi:"vdomparam"`
	// Unique VLAN ID.
	Vlanid pulumi.IntOutput `pulumi:"vlanid"`
}

Configure template for auto-generated VLANs. Applies to FortiOS Version `>= 6.4.0`.

## Import

SwitchControllerInitialConfig Template can be imported using any of these accepted formats:

```sh $ pulumi import fortios:switchcontroller/initialconfig/template:Template labelname {{name}} ```

If you do not want to import arguments of block:

$ export "FORTIOS_IMPORT_TABLE"="false"

```sh $ pulumi import fortios:switchcontroller/initialconfig/template:Template labelname {{name}} ```

$ unset "FORTIOS_IMPORT_TABLE"

func GetTemplate

func GetTemplate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TemplateState, opts ...pulumi.ResourceOption) (*Template, error)

GetTemplate gets an existing Template resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTemplate

func NewTemplate(ctx *pulumi.Context,
	name string, args *TemplateArgs, opts ...pulumi.ResourceOption) (*Template, error)

NewTemplate registers a new resource with the given unique name, arguments, and options.

func (*Template) ElementType

func (*Template) ElementType() reflect.Type

func (*Template) ToTemplateOutput

func (i *Template) ToTemplateOutput() TemplateOutput

func (*Template) ToTemplateOutputWithContext

func (i *Template) ToTemplateOutputWithContext(ctx context.Context) TemplateOutput

type TemplateArgs

type TemplateArgs struct {
	// Permitted types of management access to this interface. Valid values: `ping`, `https`, `ssh`, `snmp`, `http`, `telnet`, `fgfm`, `radius-acct`, `probe-response`, `fabric`, `ftm`.
	Allowaccess pulumi.StringPtrInput
	// Automatically allocate interface address and subnet block. Valid values: `enable`, `disable`.
	AutoIp pulumi.StringPtrInput
	// Enable/disable a DHCP server on this interface. Valid values: `enable`, `disable`.
	DhcpServer pulumi.StringPtrInput
	// Interface IPv4 address and subnet mask.
	Ip pulumi.StringPtrInput
	// Initial config template name
	Name pulumi.StringPtrInput
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrInput
	// Unique VLAN ID.
	Vlanid pulumi.IntPtrInput
}

The set of arguments for constructing a Template resource.

func (TemplateArgs) ElementType

func (TemplateArgs) ElementType() reflect.Type

type TemplateArray

type TemplateArray []TemplateInput

func (TemplateArray) ElementType

func (TemplateArray) ElementType() reflect.Type

func (TemplateArray) ToTemplateArrayOutput

func (i TemplateArray) ToTemplateArrayOutput() TemplateArrayOutput

func (TemplateArray) ToTemplateArrayOutputWithContext

func (i TemplateArray) ToTemplateArrayOutputWithContext(ctx context.Context) TemplateArrayOutput

type TemplateArrayInput

type TemplateArrayInput interface {
	pulumi.Input

	ToTemplateArrayOutput() TemplateArrayOutput
	ToTemplateArrayOutputWithContext(context.Context) TemplateArrayOutput
}

TemplateArrayInput is an input type that accepts TemplateArray and TemplateArrayOutput values. You can construct a concrete instance of `TemplateArrayInput` via:

TemplateArray{ TemplateArgs{...} }

type TemplateArrayOutput

type TemplateArrayOutput struct{ *pulumi.OutputState }

func (TemplateArrayOutput) ElementType

func (TemplateArrayOutput) ElementType() reflect.Type

func (TemplateArrayOutput) Index

func (TemplateArrayOutput) ToTemplateArrayOutput

func (o TemplateArrayOutput) ToTemplateArrayOutput() TemplateArrayOutput

func (TemplateArrayOutput) ToTemplateArrayOutputWithContext

func (o TemplateArrayOutput) ToTemplateArrayOutputWithContext(ctx context.Context) TemplateArrayOutput

type TemplateInput

type TemplateInput interface {
	pulumi.Input

	ToTemplateOutput() TemplateOutput
	ToTemplateOutputWithContext(ctx context.Context) TemplateOutput
}

type TemplateMap

type TemplateMap map[string]TemplateInput

func (TemplateMap) ElementType

func (TemplateMap) ElementType() reflect.Type

func (TemplateMap) ToTemplateMapOutput

func (i TemplateMap) ToTemplateMapOutput() TemplateMapOutput

func (TemplateMap) ToTemplateMapOutputWithContext

func (i TemplateMap) ToTemplateMapOutputWithContext(ctx context.Context) TemplateMapOutput

type TemplateMapInput

type TemplateMapInput interface {
	pulumi.Input

	ToTemplateMapOutput() TemplateMapOutput
	ToTemplateMapOutputWithContext(context.Context) TemplateMapOutput
}

TemplateMapInput is an input type that accepts TemplateMap and TemplateMapOutput values. You can construct a concrete instance of `TemplateMapInput` via:

TemplateMap{ "key": TemplateArgs{...} }

type TemplateMapOutput

type TemplateMapOutput struct{ *pulumi.OutputState }

func (TemplateMapOutput) ElementType

func (TemplateMapOutput) ElementType() reflect.Type

func (TemplateMapOutput) MapIndex

func (TemplateMapOutput) ToTemplateMapOutput

func (o TemplateMapOutput) ToTemplateMapOutput() TemplateMapOutput

func (TemplateMapOutput) ToTemplateMapOutputWithContext

func (o TemplateMapOutput) ToTemplateMapOutputWithContext(ctx context.Context) TemplateMapOutput

type TemplateOutput

type TemplateOutput struct{ *pulumi.OutputState }

func (TemplateOutput) Allowaccess

func (o TemplateOutput) Allowaccess() pulumi.StringOutput

Permitted types of management access to this interface. Valid values: `ping`, `https`, `ssh`, `snmp`, `http`, `telnet`, `fgfm`, `radius-acct`, `probe-response`, `fabric`, `ftm`.

func (TemplateOutput) AutoIp

func (o TemplateOutput) AutoIp() pulumi.StringOutput

Automatically allocate interface address and subnet block. Valid values: `enable`, `disable`.

func (TemplateOutput) DhcpServer

func (o TemplateOutput) DhcpServer() pulumi.StringOutput

Enable/disable a DHCP server on this interface. Valid values: `enable`, `disable`.

func (TemplateOutput) ElementType

func (TemplateOutput) ElementType() reflect.Type

func (TemplateOutput) Ip

Interface IPv4 address and subnet mask.

func (TemplateOutput) Name

Initial config template name

func (TemplateOutput) ToTemplateOutput

func (o TemplateOutput) ToTemplateOutput() TemplateOutput

func (TemplateOutput) ToTemplateOutputWithContext

func (o TemplateOutput) ToTemplateOutputWithContext(ctx context.Context) TemplateOutput

func (TemplateOutput) Vdomparam

func (o TemplateOutput) Vdomparam() pulumi.StringPtrOutput

Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

func (TemplateOutput) Vlanid

func (o TemplateOutput) Vlanid() pulumi.IntOutput

Unique VLAN ID.

type TemplateState

type TemplateState struct {
	// Permitted types of management access to this interface. Valid values: `ping`, `https`, `ssh`, `snmp`, `http`, `telnet`, `fgfm`, `radius-acct`, `probe-response`, `fabric`, `ftm`.
	Allowaccess pulumi.StringPtrInput
	// Automatically allocate interface address and subnet block. Valid values: `enable`, `disable`.
	AutoIp pulumi.StringPtrInput
	// Enable/disable a DHCP server on this interface. Valid values: `enable`, `disable`.
	DhcpServer pulumi.StringPtrInput
	// Interface IPv4 address and subnet mask.
	Ip pulumi.StringPtrInput
	// Initial config template name
	Name pulumi.StringPtrInput
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrInput
	// Unique VLAN ID.
	Vlanid pulumi.IntPtrInput
}

func (TemplateState) ElementType

func (TemplateState) ElementType() reflect.Type

type Vlans

type Vlans struct {
	pulumi.CustomResourceState

	// Default VLAN (native) assigned to all switch ports upon discovery.
	DefaultVlan pulumi.StringOutput `pulumi:"defaultVlan"`
	// VLAN for NAC onboarding devices.
	Nac pulumi.StringOutput `pulumi:"nac"`
	// VLAN for NAC segemnt primary interface.
	NacSegment pulumi.StringOutput `pulumi:"nacSegment"`
	// VLAN for quarantined traffic.
	Quarantine pulumi.StringOutput `pulumi:"quarantine"`
	// VLAN for RSPAN/ERSPAN mirrored traffic.
	Rspan pulumi.StringOutput `pulumi:"rspan"`
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrOutput `pulumi:"vdomparam"`
	// VLAN dedicated for video devices.
	Video pulumi.StringOutput `pulumi:"video"`
	// VLAN dedicated for voice devices.
	Voice pulumi.StringOutput `pulumi:"voice"`
}

Configure initial template for auto-generated VLAN interfaces. Applies to FortiOS Version `>= 6.4.0`.

## Import

SwitchControllerInitialConfig Vlans can be imported using any of these accepted formats:

```sh $ pulumi import fortios:switchcontroller/initialconfig/vlans:Vlans labelname SwitchControllerInitialConfigVlans ```

If you do not want to import arguments of block:

$ export "FORTIOS_IMPORT_TABLE"="false"

```sh $ pulumi import fortios:switchcontroller/initialconfig/vlans:Vlans labelname SwitchControllerInitialConfigVlans ```

$ unset "FORTIOS_IMPORT_TABLE"

func GetVlans

func GetVlans(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VlansState, opts ...pulumi.ResourceOption) (*Vlans, error)

GetVlans gets an existing Vlans resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewVlans

func NewVlans(ctx *pulumi.Context,
	name string, args *VlansArgs, opts ...pulumi.ResourceOption) (*Vlans, error)

NewVlans registers a new resource with the given unique name, arguments, and options.

func (*Vlans) ElementType

func (*Vlans) ElementType() reflect.Type

func (*Vlans) ToVlansOutput

func (i *Vlans) ToVlansOutput() VlansOutput

func (*Vlans) ToVlansOutputWithContext

func (i *Vlans) ToVlansOutputWithContext(ctx context.Context) VlansOutput

type VlansArgs

type VlansArgs struct {
	// Default VLAN (native) assigned to all switch ports upon discovery.
	DefaultVlan pulumi.StringPtrInput
	// VLAN for NAC onboarding devices.
	Nac pulumi.StringPtrInput
	// VLAN for NAC segemnt primary interface.
	NacSegment pulumi.StringPtrInput
	// VLAN for quarantined traffic.
	Quarantine pulumi.StringPtrInput
	// VLAN for RSPAN/ERSPAN mirrored traffic.
	Rspan pulumi.StringPtrInput
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrInput
	// VLAN dedicated for video devices.
	Video pulumi.StringPtrInput
	// VLAN dedicated for voice devices.
	Voice pulumi.StringPtrInput
}

The set of arguments for constructing a Vlans resource.

func (VlansArgs) ElementType

func (VlansArgs) ElementType() reflect.Type

type VlansArray

type VlansArray []VlansInput

func (VlansArray) ElementType

func (VlansArray) ElementType() reflect.Type

func (VlansArray) ToVlansArrayOutput

func (i VlansArray) ToVlansArrayOutput() VlansArrayOutput

func (VlansArray) ToVlansArrayOutputWithContext

func (i VlansArray) ToVlansArrayOutputWithContext(ctx context.Context) VlansArrayOutput

type VlansArrayInput

type VlansArrayInput interface {
	pulumi.Input

	ToVlansArrayOutput() VlansArrayOutput
	ToVlansArrayOutputWithContext(context.Context) VlansArrayOutput
}

VlansArrayInput is an input type that accepts VlansArray and VlansArrayOutput values. You can construct a concrete instance of `VlansArrayInput` via:

VlansArray{ VlansArgs{...} }

type VlansArrayOutput

type VlansArrayOutput struct{ *pulumi.OutputState }

func (VlansArrayOutput) ElementType

func (VlansArrayOutput) ElementType() reflect.Type

func (VlansArrayOutput) Index

func (VlansArrayOutput) ToVlansArrayOutput

func (o VlansArrayOutput) ToVlansArrayOutput() VlansArrayOutput

func (VlansArrayOutput) ToVlansArrayOutputWithContext

func (o VlansArrayOutput) ToVlansArrayOutputWithContext(ctx context.Context) VlansArrayOutput

type VlansInput

type VlansInput interface {
	pulumi.Input

	ToVlansOutput() VlansOutput
	ToVlansOutputWithContext(ctx context.Context) VlansOutput
}

type VlansMap

type VlansMap map[string]VlansInput

func (VlansMap) ElementType

func (VlansMap) ElementType() reflect.Type

func (VlansMap) ToVlansMapOutput

func (i VlansMap) ToVlansMapOutput() VlansMapOutput

func (VlansMap) ToVlansMapOutputWithContext

func (i VlansMap) ToVlansMapOutputWithContext(ctx context.Context) VlansMapOutput

type VlansMapInput

type VlansMapInput interface {
	pulumi.Input

	ToVlansMapOutput() VlansMapOutput
	ToVlansMapOutputWithContext(context.Context) VlansMapOutput
}

VlansMapInput is an input type that accepts VlansMap and VlansMapOutput values. You can construct a concrete instance of `VlansMapInput` via:

VlansMap{ "key": VlansArgs{...} }

type VlansMapOutput

type VlansMapOutput struct{ *pulumi.OutputState }

func (VlansMapOutput) ElementType

func (VlansMapOutput) ElementType() reflect.Type

func (VlansMapOutput) MapIndex

func (VlansMapOutput) ToVlansMapOutput

func (o VlansMapOutput) ToVlansMapOutput() VlansMapOutput

func (VlansMapOutput) ToVlansMapOutputWithContext

func (o VlansMapOutput) ToVlansMapOutputWithContext(ctx context.Context) VlansMapOutput

type VlansOutput

type VlansOutput struct{ *pulumi.OutputState }

func (VlansOutput) DefaultVlan

func (o VlansOutput) DefaultVlan() pulumi.StringOutput

Default VLAN (native) assigned to all switch ports upon discovery.

func (VlansOutput) ElementType

func (VlansOutput) ElementType() reflect.Type

func (VlansOutput) Nac

VLAN for NAC onboarding devices.

func (VlansOutput) NacSegment

func (o VlansOutput) NacSegment() pulumi.StringOutput

VLAN for NAC segemnt primary interface.

func (VlansOutput) Quarantine

func (o VlansOutput) Quarantine() pulumi.StringOutput

VLAN for quarantined traffic.

func (VlansOutput) Rspan

func (o VlansOutput) Rspan() pulumi.StringOutput

VLAN for RSPAN/ERSPAN mirrored traffic.

func (VlansOutput) ToVlansOutput

func (o VlansOutput) ToVlansOutput() VlansOutput

func (VlansOutput) ToVlansOutputWithContext

func (o VlansOutput) ToVlansOutputWithContext(ctx context.Context) VlansOutput

func (VlansOutput) Vdomparam

func (o VlansOutput) Vdomparam() pulumi.StringPtrOutput

Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

func (VlansOutput) Video

func (o VlansOutput) Video() pulumi.StringOutput

VLAN dedicated for video devices.

func (VlansOutput) Voice

func (o VlansOutput) Voice() pulumi.StringOutput

VLAN dedicated for voice devices.

type VlansState

type VlansState struct {
	// Default VLAN (native) assigned to all switch ports upon discovery.
	DefaultVlan pulumi.StringPtrInput
	// VLAN for NAC onboarding devices.
	Nac pulumi.StringPtrInput
	// VLAN for NAC segemnt primary interface.
	NacSegment pulumi.StringPtrInput
	// VLAN for quarantined traffic.
	Quarantine pulumi.StringPtrInput
	// VLAN for RSPAN/ERSPAN mirrored traffic.
	Rspan pulumi.StringPtrInput
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrInput
	// VLAN dedicated for video devices.
	Video pulumi.StringPtrInput
	// VLAN dedicated for voice devices.
	Voice pulumi.StringPtrInput
}

func (VlansState) ElementType

func (VlansState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL