port

package
v0.0.0-...-ac9024e Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forward

type Forward struct {
	pulumi.CustomResourceState

	// The destination port for the forwarding.
	DstPort pulumi.StringPtrOutput `pulumi:"dstPort"`
	// Specifies whether the port forwarding rule is enabled or not. Defaults to `true`. This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.
	//
	// Deprecated: This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// The IPv4 address to forward traffic to.
	FwdIp pulumi.StringPtrOutput `pulumi:"fwdIp"`
	// The port to forward traffic to.
	FwdPort pulumi.StringPtrOutput `pulumi:"fwdPort"`
	// Specifies whether to log forwarded traffic or not. Defaults to `false`.
	Log pulumi.BoolPtrOutput `pulumi:"log"`
	// The name of the port forwarding rule.
	Name pulumi.StringOutput `pulumi:"name"`
	// The port forwarding interface. Can be `wan`, `wan2`, or `both`.
	PortForwardInterface pulumi.StringPtrOutput `pulumi:"portForwardInterface"`
	// The protocol for the port forwarding rule. Can be `tcp`, `udp`, or `tcpUdp`. Defaults to `tcpUdp`.
	Protocol pulumi.StringPtrOutput `pulumi:"protocol"`
	// The name of the site to associate the port forwarding rule with.
	Site pulumi.StringOutput `pulumi:"site"`
	// The source IPv4 address (or CIDR) of the port forwarding rule. For all traffic, specify `any`. Defaults to `any`.
	SrcIp pulumi.StringPtrOutput `pulumi:"srcIp"`
}

`port.Forward` manages a port forwarding rule on the gateway.

func GetForward

func GetForward(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ForwardState, opts ...pulumi.ResourceOption) (*Forward, error)

GetForward gets an existing Forward 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 NewForward

func NewForward(ctx *pulumi.Context,
	name string, args *ForwardArgs, opts ...pulumi.ResourceOption) (*Forward, error)

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

func (*Forward) ElementType

func (*Forward) ElementType() reflect.Type

func (*Forward) ToForwardOutput

func (i *Forward) ToForwardOutput() ForwardOutput

func (*Forward) ToForwardOutputWithContext

func (i *Forward) ToForwardOutputWithContext(ctx context.Context) ForwardOutput

func (*Forward) ToOutput

func (i *Forward) ToOutput(ctx context.Context) pulumix.Output[*Forward]

type ForwardArgs

type ForwardArgs struct {
	// The destination port for the forwarding.
	DstPort pulumi.StringPtrInput
	// Specifies whether the port forwarding rule is enabled or not. Defaults to `true`. This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.
	//
	// Deprecated: This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.
	Enabled pulumi.BoolPtrInput
	// The IPv4 address to forward traffic to.
	FwdIp pulumi.StringPtrInput
	// The port to forward traffic to.
	FwdPort pulumi.StringPtrInput
	// Specifies whether to log forwarded traffic or not. Defaults to `false`.
	Log pulumi.BoolPtrInput
	// The name of the port forwarding rule.
	Name pulumi.StringPtrInput
	// The port forwarding interface. Can be `wan`, `wan2`, or `both`.
	PortForwardInterface pulumi.StringPtrInput
	// The protocol for the port forwarding rule. Can be `tcp`, `udp`, or `tcpUdp`. Defaults to `tcpUdp`.
	Protocol pulumi.StringPtrInput
	// The name of the site to associate the port forwarding rule with.
	Site pulumi.StringPtrInput
	// The source IPv4 address (or CIDR) of the port forwarding rule. For all traffic, specify `any`. Defaults to `any`.
	SrcIp pulumi.StringPtrInput
}

The set of arguments for constructing a Forward resource.

func (ForwardArgs) ElementType

func (ForwardArgs) ElementType() reflect.Type

type ForwardArray

type ForwardArray []ForwardInput

func (ForwardArray) ElementType

func (ForwardArray) ElementType() reflect.Type

func (ForwardArray) ToForwardArrayOutput

func (i ForwardArray) ToForwardArrayOutput() ForwardArrayOutput

func (ForwardArray) ToForwardArrayOutputWithContext

func (i ForwardArray) ToForwardArrayOutputWithContext(ctx context.Context) ForwardArrayOutput

func (ForwardArray) ToOutput

func (i ForwardArray) ToOutput(ctx context.Context) pulumix.Output[[]*Forward]

type ForwardArrayInput

type ForwardArrayInput interface {
	pulumi.Input

	ToForwardArrayOutput() ForwardArrayOutput
	ToForwardArrayOutputWithContext(context.Context) ForwardArrayOutput
}

ForwardArrayInput is an input type that accepts ForwardArray and ForwardArrayOutput values. You can construct a concrete instance of `ForwardArrayInput` via:

ForwardArray{ ForwardArgs{...} }

type ForwardArrayOutput

type ForwardArrayOutput struct{ *pulumi.OutputState }

func (ForwardArrayOutput) ElementType

func (ForwardArrayOutput) ElementType() reflect.Type

func (ForwardArrayOutput) Index

func (ForwardArrayOutput) ToForwardArrayOutput

func (o ForwardArrayOutput) ToForwardArrayOutput() ForwardArrayOutput

func (ForwardArrayOutput) ToForwardArrayOutputWithContext

func (o ForwardArrayOutput) ToForwardArrayOutputWithContext(ctx context.Context) ForwardArrayOutput

func (ForwardArrayOutput) ToOutput

type ForwardInput

type ForwardInput interface {
	pulumi.Input

	ToForwardOutput() ForwardOutput
	ToForwardOutputWithContext(ctx context.Context) ForwardOutput
}

type ForwardMap

type ForwardMap map[string]ForwardInput

func (ForwardMap) ElementType

func (ForwardMap) ElementType() reflect.Type

func (ForwardMap) ToForwardMapOutput

func (i ForwardMap) ToForwardMapOutput() ForwardMapOutput

func (ForwardMap) ToForwardMapOutputWithContext

func (i ForwardMap) ToForwardMapOutputWithContext(ctx context.Context) ForwardMapOutput

func (ForwardMap) ToOutput

func (i ForwardMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Forward]

type ForwardMapInput

type ForwardMapInput interface {
	pulumi.Input

	ToForwardMapOutput() ForwardMapOutput
	ToForwardMapOutputWithContext(context.Context) ForwardMapOutput
}

ForwardMapInput is an input type that accepts ForwardMap and ForwardMapOutput values. You can construct a concrete instance of `ForwardMapInput` via:

ForwardMap{ "key": ForwardArgs{...} }

type ForwardMapOutput

type ForwardMapOutput struct{ *pulumi.OutputState }

func (ForwardMapOutput) ElementType

func (ForwardMapOutput) ElementType() reflect.Type

func (ForwardMapOutput) MapIndex

func (ForwardMapOutput) ToForwardMapOutput

func (o ForwardMapOutput) ToForwardMapOutput() ForwardMapOutput

func (ForwardMapOutput) ToForwardMapOutputWithContext

func (o ForwardMapOutput) ToForwardMapOutputWithContext(ctx context.Context) ForwardMapOutput

func (ForwardMapOutput) ToOutput

type ForwardOutput

type ForwardOutput struct{ *pulumi.OutputState }

func (ForwardOutput) DstPort

func (o ForwardOutput) DstPort() pulumi.StringPtrOutput

The destination port for the forwarding.

func (ForwardOutput) ElementType

func (ForwardOutput) ElementType() reflect.Type

func (ForwardOutput) Enabled deprecated

func (o ForwardOutput) Enabled() pulumi.BoolPtrOutput

Specifies whether the port forwarding rule is enabled or not. Defaults to `true`. This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.

Deprecated: This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.

func (ForwardOutput) FwdIp

The IPv4 address to forward traffic to.

func (ForwardOutput) FwdPort

func (o ForwardOutput) FwdPort() pulumi.StringPtrOutput

The port to forward traffic to.

func (ForwardOutput) Log

Specifies whether to log forwarded traffic or not. Defaults to `false`.

func (ForwardOutput) Name

The name of the port forwarding rule.

func (ForwardOutput) PortForwardInterface

func (o ForwardOutput) PortForwardInterface() pulumi.StringPtrOutput

The port forwarding interface. Can be `wan`, `wan2`, or `both`.

func (ForwardOutput) Protocol

func (o ForwardOutput) Protocol() pulumi.StringPtrOutput

The protocol for the port forwarding rule. Can be `tcp`, `udp`, or `tcpUdp`. Defaults to `tcpUdp`.

func (ForwardOutput) Site

The name of the site to associate the port forwarding rule with.

func (ForwardOutput) SrcIp

The source IPv4 address (or CIDR) of the port forwarding rule. For all traffic, specify `any`. Defaults to `any`.

func (ForwardOutput) ToForwardOutput

func (o ForwardOutput) ToForwardOutput() ForwardOutput

func (ForwardOutput) ToForwardOutputWithContext

func (o ForwardOutput) ToForwardOutputWithContext(ctx context.Context) ForwardOutput

func (ForwardOutput) ToOutput

func (o ForwardOutput) ToOutput(ctx context.Context) pulumix.Output[*Forward]

type ForwardState

type ForwardState struct {
	// The destination port for the forwarding.
	DstPort pulumi.StringPtrInput
	// Specifies whether the port forwarding rule is enabled or not. Defaults to `true`. This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.
	//
	// Deprecated: This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.
	Enabled pulumi.BoolPtrInput
	// The IPv4 address to forward traffic to.
	FwdIp pulumi.StringPtrInput
	// The port to forward traffic to.
	FwdPort pulumi.StringPtrInput
	// Specifies whether to log forwarded traffic or not. Defaults to `false`.
	Log pulumi.BoolPtrInput
	// The name of the port forwarding rule.
	Name pulumi.StringPtrInput
	// The port forwarding interface. Can be `wan`, `wan2`, or `both`.
	PortForwardInterface pulumi.StringPtrInput
	// The protocol for the port forwarding rule. Can be `tcp`, `udp`, or `tcpUdp`. Defaults to `tcpUdp`.
	Protocol pulumi.StringPtrInput
	// The name of the site to associate the port forwarding rule with.
	Site pulumi.StringPtrInput
	// The source IPv4 address (or CIDR) of the port forwarding rule. For all traffic, specify `any`. Defaults to `any`.
	SrcIp pulumi.StringPtrInput
}

func (ForwardState) ElementType

func (ForwardState) ElementType() reflect.Type

type LookupProfileArgs

type LookupProfileArgs struct {
	// The name of the port profile to look up. Defaults to `All`.
	Name *string `pulumi:"name"`
	// The name of the site the port profile is associated with.
	Site *string `pulumi:"site"`
}

A collection of arguments for invoking getProfile.

type LookupProfileOutputArgs

type LookupProfileOutputArgs struct {
	// The name of the port profile to look up. Defaults to `All`.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The name of the site the port profile is associated with.
	Site pulumi.StringPtrInput `pulumi:"site"`
}

A collection of arguments for invoking getProfile.

func (LookupProfileOutputArgs) ElementType

func (LookupProfileOutputArgs) ElementType() reflect.Type

type LookupProfileResult

type LookupProfileResult struct {
	// The ID of this port profile.
	Id string `pulumi:"id"`
	// The name of the port profile to look up. Defaults to `All`.
	Name *string `pulumi:"name"`
	// The name of the site the port profile is associated with.
	Site string `pulumi:"site"`
}

A collection of values returned by getProfile.

func LookupProfile

func LookupProfile(ctx *pulumi.Context, args *LookupProfileArgs, opts ...pulumi.InvokeOption) (*LookupProfileResult, error)

`port.Profile` data source can be used to retrieve the ID for a port profile by name.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-unifi/sdk/go/unifi/port"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := port.LookupProfile(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupProfileResultOutput

type LookupProfileResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getProfile.

func (LookupProfileResultOutput) ElementType

func (LookupProfileResultOutput) ElementType() reflect.Type

func (LookupProfileResultOutput) Id

The ID of this port profile.

func (LookupProfileResultOutput) Name

The name of the port profile to look up. Defaults to `All`.

func (LookupProfileResultOutput) Site

The name of the site the port profile is associated with.

func (LookupProfileResultOutput) ToLookupProfileResultOutput

func (o LookupProfileResultOutput) ToLookupProfileResultOutput() LookupProfileResultOutput

func (LookupProfileResultOutput) ToLookupProfileResultOutputWithContext

func (o LookupProfileResultOutput) ToLookupProfileResultOutputWithContext(ctx context.Context) LookupProfileResultOutput

func (LookupProfileResultOutput) ToOutput

type Profile

type Profile struct {
	pulumi.CustomResourceState

	// Enable link auto negotiation for the port profile. When set to `true` this overrides `speed`. Defaults to `true`.
	Autoneg pulumi.BoolPtrOutput `pulumi:"autoneg"`
	// The type of 802.1X control to use. Can be `auto`, `forceAuthorized`, `forceUnauthorized`, `macBased` or `multiHost`. Defaults to `forceAuthorized`.
	Dot1xCtrl pulumi.StringPtrOutput `pulumi:"dot1xCtrl"`
	// The timeout, in seconds, to use when using the MAC Based 802.1X control. Can be between 0 and 65535 Defaults to `300`.
	Dot1xIdleTimeout pulumi.IntPtrOutput `pulumi:"dot1xIdleTimeout"`
	// The egress rate limit, in kpbs, for the port profile. Can be between `64` and `9999999`.
	EgressRateLimitKbps pulumi.IntPtrOutput `pulumi:"egressRateLimitKbps"`
	// Enable egress rate limiting for the port profile. Defaults to `false`.
	EgressRateLimitKbpsEnabled pulumi.BoolPtrOutput `pulumi:"egressRateLimitKbpsEnabled"`
	// The type forwarding to use for the port profile. Can be `all`, `native`, `customize` or `disabled`. Defaults to `native`.
	Forward pulumi.StringPtrOutput `pulumi:"forward"`
	// Enable full duplex for the port profile. Defaults to `false`.
	FullDuplex pulumi.BoolPtrOutput `pulumi:"fullDuplex"`
	// Enable port isolation for the port profile. Defaults to `false`.
	Isolation pulumi.BoolPtrOutput `pulumi:"isolation"`
	// Enable LLDP-MED for the port profile. Defaults to `true`.
	LldpmedEnabled pulumi.BoolPtrOutput `pulumi:"lldpmedEnabled"`
	// Enable LLDP-MED topology change notifications for the port profile.
	LldpmedNotifyEnabled pulumi.BoolPtrOutput `pulumi:"lldpmedNotifyEnabled"`
	// The name of the port profile.
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of network to use as the main network on the port profile.
	NativeNetworkconfId pulumi.StringPtrOutput `pulumi:"nativeNetworkconfId"`
	// The operation mode for the port profile. Can only be `switch` Defaults to `switch`.
	OpMode pulumi.StringPtrOutput `pulumi:"opMode"`
	// The POE mode for the port profile. Can be one of `auto`, `passv24`, `passthrough` or `off`.
	PoeMode pulumi.StringPtrOutput `pulumi:"poeMode"`
	// Enable port security for the port profile. Defaults to `false`.
	PortSecurityEnabled pulumi.BoolPtrOutput `pulumi:"portSecurityEnabled"`
	// The MAC addresses associated with the port security for the port profile.
	PortSecurityMacAddresses pulumi.StringArrayOutput `pulumi:"portSecurityMacAddresses"`
	// The priority queue 1 level for the port profile. Can be between 0 and 100.
	PriorityQueue1Level pulumi.IntPtrOutput `pulumi:"priorityQueue1Level"`
	// The priority queue 2 level for the port profile. Can be between 0 and 100.
	PriorityQueue2Level pulumi.IntPtrOutput `pulumi:"priorityQueue2Level"`
	// The priority queue 3 level for the port profile. Can be between 0 and 100.
	PriorityQueue3Level pulumi.IntPtrOutput `pulumi:"priorityQueue3Level"`
	// The priority queue 4 level for the port profile. Can be between 0 and 100.
	PriorityQueue4Level pulumi.IntPtrOutput `pulumi:"priorityQueue4Level"`
	// The name of the site to associate the port profile with.
	Site pulumi.StringOutput `pulumi:"site"`
	// The link speed to set for the port profile. Can be one of `10`, `100`, `1000`, `2500`, `5000`, `10000`, `20000`, `25000`, `40000`, `50000` or `100000`
	Speed pulumi.IntPtrOutput `pulumi:"speed"`
	// Enable broadcast Storm Control for the port profile. Defaults to `false`.
	StormctrlBcastEnabled pulumi.BoolPtrOutput `pulumi:"stormctrlBcastEnabled"`
	// The broadcast Storm Control level for the port profile. Can be between 0 and 100.
	StormctrlBcastLevel pulumi.IntPtrOutput `pulumi:"stormctrlBcastLevel"`
	// The broadcast Storm Control rate for the port profile. Can be between 0 and 14880000.
	StormctrlBcastRate pulumi.IntPtrOutput `pulumi:"stormctrlBcastRate"`
	// Enable multicast Storm Control for the port profile. Defaults to `false`.
	StormctrlMcastEnabled pulumi.BoolPtrOutput `pulumi:"stormctrlMcastEnabled"`
	// The multicast Storm Control level for the port profile. Can be between 0 and 100.
	StormctrlMcastLevel pulumi.IntPtrOutput `pulumi:"stormctrlMcastLevel"`
	// The multicast Storm Control rate for the port profile. Can be between 0 and 14880000.
	StormctrlMcastRate pulumi.IntPtrOutput `pulumi:"stormctrlMcastRate"`
	// The type of Storm Control to use for the port profile. Can be one of `level` or `rate`.
	StormctrlType pulumi.StringPtrOutput `pulumi:"stormctrlType"`
	// Enable unknown unicast Storm Control for the port profile. Defaults to `false`.
	StormctrlUcastEnabled pulumi.BoolPtrOutput `pulumi:"stormctrlUcastEnabled"`
	// The unknown unicast Storm Control level for the port profile. Can be between 0 and 100.
	StormctrlUcastLevel pulumi.IntPtrOutput `pulumi:"stormctrlUcastLevel"`
	// The unknown unicast Storm Control rate for the port profile. Can be between 0 and 14880000.
	StormctrlUcastRate pulumi.IntPtrOutput `pulumi:"stormctrlUcastRate"`
	// Enable spanning tree protocol on the port profile. Defaults to `true`.
	StpPortMode pulumi.BoolPtrOutput `pulumi:"stpPortMode"`
	// The IDs of networks to tag traffic with for the port profile.
	TaggedNetworkconfIds pulumi.StringArrayOutput `pulumi:"taggedNetworkconfIds"`
	// The ID of network to use as the voice network on the port profile.
	VoiceNetworkconfId pulumi.StringPtrOutput `pulumi:"voiceNetworkconfId"`
}

`port.Profile` manages a port profile for use on network switches.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/pulumiverse/pulumi-unifi/sdk/go/unifi"
"github.com/pulumiverse/pulumi-unifi/sdk/go/unifi/port"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		vlanId := float64(10)
		if param := cfg.GetFloat64("vlanId"); param != 0 {
			vlanId = param
		}
		vlan, err := unifi.NewNetwork(ctx, "vlan", &unifi.NetworkArgs{
			Purpose:     pulumi.String("corporate"),
			Subnet:      pulumi.String("10.0.0.1/24"),
			VlanId:      pulumi.Float64(vlanId),
			DhcpStart:   pulumi.String("10.0.0.6"),
			DhcpStop:    pulumi.String("10.0.0.254"),
			DhcpEnabled: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = port.NewProfile(ctx, "poeDisabled", &port.ProfileArgs{
			NativeNetworkconfId: vlan.ID(),
			PoeMode:             pulumi.String("off"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetProfile

func GetProfile(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProfileState, opts ...pulumi.ResourceOption) (*Profile, error)

GetProfile gets an existing Profile 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 NewProfile

func NewProfile(ctx *pulumi.Context,
	name string, args *ProfileArgs, opts ...pulumi.ResourceOption) (*Profile, error)

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

func (*Profile) ElementType

func (*Profile) ElementType() reflect.Type

func (*Profile) ToOutput

func (i *Profile) ToOutput(ctx context.Context) pulumix.Output[*Profile]

func (*Profile) ToProfileOutput

func (i *Profile) ToProfileOutput() ProfileOutput

func (*Profile) ToProfileOutputWithContext

func (i *Profile) ToProfileOutputWithContext(ctx context.Context) ProfileOutput

type ProfileArgs

type ProfileArgs struct {
	// Enable link auto negotiation for the port profile. When set to `true` this overrides `speed`. Defaults to `true`.
	Autoneg pulumi.BoolPtrInput
	// The type of 802.1X control to use. Can be `auto`, `forceAuthorized`, `forceUnauthorized`, `macBased` or `multiHost`. Defaults to `forceAuthorized`.
	Dot1xCtrl pulumi.StringPtrInput
	// The timeout, in seconds, to use when using the MAC Based 802.1X control. Can be between 0 and 65535 Defaults to `300`.
	Dot1xIdleTimeout pulumi.IntPtrInput
	// The egress rate limit, in kpbs, for the port profile. Can be between `64` and `9999999`.
	EgressRateLimitKbps pulumi.IntPtrInput
	// Enable egress rate limiting for the port profile. Defaults to `false`.
	EgressRateLimitKbpsEnabled pulumi.BoolPtrInput
	// The type forwarding to use for the port profile. Can be `all`, `native`, `customize` or `disabled`. Defaults to `native`.
	Forward pulumi.StringPtrInput
	// Enable full duplex for the port profile. Defaults to `false`.
	FullDuplex pulumi.BoolPtrInput
	// Enable port isolation for the port profile. Defaults to `false`.
	Isolation pulumi.BoolPtrInput
	// Enable LLDP-MED for the port profile. Defaults to `true`.
	LldpmedEnabled pulumi.BoolPtrInput
	// Enable LLDP-MED topology change notifications for the port profile.
	LldpmedNotifyEnabled pulumi.BoolPtrInput
	// The name of the port profile.
	Name pulumi.StringPtrInput
	// The ID of network to use as the main network on the port profile.
	NativeNetworkconfId pulumi.StringPtrInput
	// The operation mode for the port profile. Can only be `switch` Defaults to `switch`.
	OpMode pulumi.StringPtrInput
	// The POE mode for the port profile. Can be one of `auto`, `passv24`, `passthrough` or `off`.
	PoeMode pulumi.StringPtrInput
	// Enable port security for the port profile. Defaults to `false`.
	PortSecurityEnabled pulumi.BoolPtrInput
	// The MAC addresses associated with the port security for the port profile.
	PortSecurityMacAddresses pulumi.StringArrayInput
	// The priority queue 1 level for the port profile. Can be between 0 and 100.
	PriorityQueue1Level pulumi.IntPtrInput
	// The priority queue 2 level for the port profile. Can be between 0 and 100.
	PriorityQueue2Level pulumi.IntPtrInput
	// The priority queue 3 level for the port profile. Can be between 0 and 100.
	PriorityQueue3Level pulumi.IntPtrInput
	// The priority queue 4 level for the port profile. Can be between 0 and 100.
	PriorityQueue4Level pulumi.IntPtrInput
	// The name of the site to associate the port profile with.
	Site pulumi.StringPtrInput
	// The link speed to set for the port profile. Can be one of `10`, `100`, `1000`, `2500`, `5000`, `10000`, `20000`, `25000`, `40000`, `50000` or `100000`
	Speed pulumi.IntPtrInput
	// Enable broadcast Storm Control for the port profile. Defaults to `false`.
	StormctrlBcastEnabled pulumi.BoolPtrInput
	// The broadcast Storm Control level for the port profile. Can be between 0 and 100.
	StormctrlBcastLevel pulumi.IntPtrInput
	// The broadcast Storm Control rate for the port profile. Can be between 0 and 14880000.
	StormctrlBcastRate pulumi.IntPtrInput
	// Enable multicast Storm Control for the port profile. Defaults to `false`.
	StormctrlMcastEnabled pulumi.BoolPtrInput
	// The multicast Storm Control level for the port profile. Can be between 0 and 100.
	StormctrlMcastLevel pulumi.IntPtrInput
	// The multicast Storm Control rate for the port profile. Can be between 0 and 14880000.
	StormctrlMcastRate pulumi.IntPtrInput
	// The type of Storm Control to use for the port profile. Can be one of `level` or `rate`.
	StormctrlType pulumi.StringPtrInput
	// Enable unknown unicast Storm Control for the port profile. Defaults to `false`.
	StormctrlUcastEnabled pulumi.BoolPtrInput
	// The unknown unicast Storm Control level for the port profile. Can be between 0 and 100.
	StormctrlUcastLevel pulumi.IntPtrInput
	// The unknown unicast Storm Control rate for the port profile. Can be between 0 and 14880000.
	StormctrlUcastRate pulumi.IntPtrInput
	// Enable spanning tree protocol on the port profile. Defaults to `true`.
	StpPortMode pulumi.BoolPtrInput
	// The IDs of networks to tag traffic with for the port profile.
	TaggedNetworkconfIds pulumi.StringArrayInput
	// The ID of network to use as the voice network on the port profile.
	VoiceNetworkconfId pulumi.StringPtrInput
}

The set of arguments for constructing a Profile resource.

func (ProfileArgs) ElementType

func (ProfileArgs) ElementType() reflect.Type

type ProfileArray

type ProfileArray []ProfileInput

func (ProfileArray) ElementType

func (ProfileArray) ElementType() reflect.Type

func (ProfileArray) ToOutput

func (i ProfileArray) ToOutput(ctx context.Context) pulumix.Output[[]*Profile]

func (ProfileArray) ToProfileArrayOutput

func (i ProfileArray) ToProfileArrayOutput() ProfileArrayOutput

func (ProfileArray) ToProfileArrayOutputWithContext

func (i ProfileArray) ToProfileArrayOutputWithContext(ctx context.Context) ProfileArrayOutput

type ProfileArrayInput

type ProfileArrayInput interface {
	pulumi.Input

	ToProfileArrayOutput() ProfileArrayOutput
	ToProfileArrayOutputWithContext(context.Context) ProfileArrayOutput
}

ProfileArrayInput is an input type that accepts ProfileArray and ProfileArrayOutput values. You can construct a concrete instance of `ProfileArrayInput` via:

ProfileArray{ ProfileArgs{...} }

type ProfileArrayOutput

type ProfileArrayOutput struct{ *pulumi.OutputState }

func (ProfileArrayOutput) ElementType

func (ProfileArrayOutput) ElementType() reflect.Type

func (ProfileArrayOutput) Index

func (ProfileArrayOutput) ToOutput

func (ProfileArrayOutput) ToProfileArrayOutput

func (o ProfileArrayOutput) ToProfileArrayOutput() ProfileArrayOutput

func (ProfileArrayOutput) ToProfileArrayOutputWithContext

func (o ProfileArrayOutput) ToProfileArrayOutputWithContext(ctx context.Context) ProfileArrayOutput

type ProfileInput

type ProfileInput interface {
	pulumi.Input

	ToProfileOutput() ProfileOutput
	ToProfileOutputWithContext(ctx context.Context) ProfileOutput
}

type ProfileMap

type ProfileMap map[string]ProfileInput

func (ProfileMap) ElementType

func (ProfileMap) ElementType() reflect.Type

func (ProfileMap) ToOutput

func (i ProfileMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Profile]

func (ProfileMap) ToProfileMapOutput

func (i ProfileMap) ToProfileMapOutput() ProfileMapOutput

func (ProfileMap) ToProfileMapOutputWithContext

func (i ProfileMap) ToProfileMapOutputWithContext(ctx context.Context) ProfileMapOutput

type ProfileMapInput

type ProfileMapInput interface {
	pulumi.Input

	ToProfileMapOutput() ProfileMapOutput
	ToProfileMapOutputWithContext(context.Context) ProfileMapOutput
}

ProfileMapInput is an input type that accepts ProfileMap and ProfileMapOutput values. You can construct a concrete instance of `ProfileMapInput` via:

ProfileMap{ "key": ProfileArgs{...} }

type ProfileMapOutput

type ProfileMapOutput struct{ *pulumi.OutputState }

func (ProfileMapOutput) ElementType

func (ProfileMapOutput) ElementType() reflect.Type

func (ProfileMapOutput) MapIndex

func (ProfileMapOutput) ToOutput

func (ProfileMapOutput) ToProfileMapOutput

func (o ProfileMapOutput) ToProfileMapOutput() ProfileMapOutput

func (ProfileMapOutput) ToProfileMapOutputWithContext

func (o ProfileMapOutput) ToProfileMapOutputWithContext(ctx context.Context) ProfileMapOutput

type ProfileOutput

type ProfileOutput struct{ *pulumi.OutputState }

func (ProfileOutput) Autoneg

func (o ProfileOutput) Autoneg() pulumi.BoolPtrOutput

Enable link auto negotiation for the port profile. When set to `true` this overrides `speed`. Defaults to `true`.

func (ProfileOutput) Dot1xCtrl

func (o ProfileOutput) Dot1xCtrl() pulumi.StringPtrOutput

The type of 802.1X control to use. Can be `auto`, `forceAuthorized`, `forceUnauthorized`, `macBased` or `multiHost`. Defaults to `forceAuthorized`.

func (ProfileOutput) Dot1xIdleTimeout

func (o ProfileOutput) Dot1xIdleTimeout() pulumi.IntPtrOutput

The timeout, in seconds, to use when using the MAC Based 802.1X control. Can be between 0 and 65535 Defaults to `300`.

func (ProfileOutput) EgressRateLimitKbps

func (o ProfileOutput) EgressRateLimitKbps() pulumi.IntPtrOutput

The egress rate limit, in kpbs, for the port profile. Can be between `64` and `9999999`.

func (ProfileOutput) EgressRateLimitKbpsEnabled

func (o ProfileOutput) EgressRateLimitKbpsEnabled() pulumi.BoolPtrOutput

Enable egress rate limiting for the port profile. Defaults to `false`.

func (ProfileOutput) ElementType

func (ProfileOutput) ElementType() reflect.Type

func (ProfileOutput) Forward

func (o ProfileOutput) Forward() pulumi.StringPtrOutput

The type forwarding to use for the port profile. Can be `all`, `native`, `customize` or `disabled`. Defaults to `native`.

func (ProfileOutput) FullDuplex

func (o ProfileOutput) FullDuplex() pulumi.BoolPtrOutput

Enable full duplex for the port profile. Defaults to `false`.

func (ProfileOutput) Isolation

func (o ProfileOutput) Isolation() pulumi.BoolPtrOutput

Enable port isolation for the port profile. Defaults to `false`.

func (ProfileOutput) LldpmedEnabled

func (o ProfileOutput) LldpmedEnabled() pulumi.BoolPtrOutput

Enable LLDP-MED for the port profile. Defaults to `true`.

func (ProfileOutput) LldpmedNotifyEnabled

func (o ProfileOutput) LldpmedNotifyEnabled() pulumi.BoolPtrOutput

Enable LLDP-MED topology change notifications for the port profile.

func (ProfileOutput) Name

The name of the port profile.

func (ProfileOutput) NativeNetworkconfId

func (o ProfileOutput) NativeNetworkconfId() pulumi.StringPtrOutput

The ID of network to use as the main network on the port profile.

func (ProfileOutput) OpMode

The operation mode for the port profile. Can only be `switch` Defaults to `switch`.

func (ProfileOutput) PoeMode

func (o ProfileOutput) PoeMode() pulumi.StringPtrOutput

The POE mode for the port profile. Can be one of `auto`, `passv24`, `passthrough` or `off`.

func (ProfileOutput) PortSecurityEnabled

func (o ProfileOutput) PortSecurityEnabled() pulumi.BoolPtrOutput

Enable port security for the port profile. Defaults to `false`.

func (ProfileOutput) PortSecurityMacAddresses

func (o ProfileOutput) PortSecurityMacAddresses() pulumi.StringArrayOutput

The MAC addresses associated with the port security for the port profile.

func (ProfileOutput) PriorityQueue1Level

func (o ProfileOutput) PriorityQueue1Level() pulumi.IntPtrOutput

The priority queue 1 level for the port profile. Can be between 0 and 100.

func (ProfileOutput) PriorityQueue2Level

func (o ProfileOutput) PriorityQueue2Level() pulumi.IntPtrOutput

The priority queue 2 level for the port profile. Can be between 0 and 100.

func (ProfileOutput) PriorityQueue3Level

func (o ProfileOutput) PriorityQueue3Level() pulumi.IntPtrOutput

The priority queue 3 level for the port profile. Can be between 0 and 100.

func (ProfileOutput) PriorityQueue4Level

func (o ProfileOutput) PriorityQueue4Level() pulumi.IntPtrOutput

The priority queue 4 level for the port profile. Can be between 0 and 100.

func (ProfileOutput) Site

The name of the site to associate the port profile with.

func (ProfileOutput) Speed

func (o ProfileOutput) Speed() pulumi.IntPtrOutput

The link speed to set for the port profile. Can be one of `10`, `100`, `1000`, `2500`, `5000`, `10000`, `20000`, `25000`, `40000`, `50000` or `100000`

func (ProfileOutput) StormctrlBcastEnabled

func (o ProfileOutput) StormctrlBcastEnabled() pulumi.BoolPtrOutput

Enable broadcast Storm Control for the port profile. Defaults to `false`.

func (ProfileOutput) StormctrlBcastLevel

func (o ProfileOutput) StormctrlBcastLevel() pulumi.IntPtrOutput

The broadcast Storm Control level for the port profile. Can be between 0 and 100.

func (ProfileOutput) StormctrlBcastRate

func (o ProfileOutput) StormctrlBcastRate() pulumi.IntPtrOutput

The broadcast Storm Control rate for the port profile. Can be between 0 and 14880000.

func (ProfileOutput) StormctrlMcastEnabled

func (o ProfileOutput) StormctrlMcastEnabled() pulumi.BoolPtrOutput

Enable multicast Storm Control for the port profile. Defaults to `false`.

func (ProfileOutput) StormctrlMcastLevel

func (o ProfileOutput) StormctrlMcastLevel() pulumi.IntPtrOutput

The multicast Storm Control level for the port profile. Can be between 0 and 100.

func (ProfileOutput) StormctrlMcastRate

func (o ProfileOutput) StormctrlMcastRate() pulumi.IntPtrOutput

The multicast Storm Control rate for the port profile. Can be between 0 and 14880000.

func (ProfileOutput) StormctrlType

func (o ProfileOutput) StormctrlType() pulumi.StringPtrOutput

The type of Storm Control to use for the port profile. Can be one of `level` or `rate`.

func (ProfileOutput) StormctrlUcastEnabled

func (o ProfileOutput) StormctrlUcastEnabled() pulumi.BoolPtrOutput

Enable unknown unicast Storm Control for the port profile. Defaults to `false`.

func (ProfileOutput) StormctrlUcastLevel

func (o ProfileOutput) StormctrlUcastLevel() pulumi.IntPtrOutput

The unknown unicast Storm Control level for the port profile. Can be between 0 and 100.

func (ProfileOutput) StormctrlUcastRate

func (o ProfileOutput) StormctrlUcastRate() pulumi.IntPtrOutput

The unknown unicast Storm Control rate for the port profile. Can be between 0 and 14880000.

func (ProfileOutput) StpPortMode

func (o ProfileOutput) StpPortMode() pulumi.BoolPtrOutput

Enable spanning tree protocol on the port profile. Defaults to `true`.

func (ProfileOutput) TaggedNetworkconfIds

func (o ProfileOutput) TaggedNetworkconfIds() pulumi.StringArrayOutput

The IDs of networks to tag traffic with for the port profile.

func (ProfileOutput) ToOutput

func (o ProfileOutput) ToOutput(ctx context.Context) pulumix.Output[*Profile]

func (ProfileOutput) ToProfileOutput

func (o ProfileOutput) ToProfileOutput() ProfileOutput

func (ProfileOutput) ToProfileOutputWithContext

func (o ProfileOutput) ToProfileOutputWithContext(ctx context.Context) ProfileOutput

func (ProfileOutput) VoiceNetworkconfId

func (o ProfileOutput) VoiceNetworkconfId() pulumi.StringPtrOutput

The ID of network to use as the voice network on the port profile.

type ProfileState

type ProfileState struct {
	// Enable link auto negotiation for the port profile. When set to `true` this overrides `speed`. Defaults to `true`.
	Autoneg pulumi.BoolPtrInput
	// The type of 802.1X control to use. Can be `auto`, `forceAuthorized`, `forceUnauthorized`, `macBased` or `multiHost`. Defaults to `forceAuthorized`.
	Dot1xCtrl pulumi.StringPtrInput
	// The timeout, in seconds, to use when using the MAC Based 802.1X control. Can be between 0 and 65535 Defaults to `300`.
	Dot1xIdleTimeout pulumi.IntPtrInput
	// The egress rate limit, in kpbs, for the port profile. Can be between `64` and `9999999`.
	EgressRateLimitKbps pulumi.IntPtrInput
	// Enable egress rate limiting for the port profile. Defaults to `false`.
	EgressRateLimitKbpsEnabled pulumi.BoolPtrInput
	// The type forwarding to use for the port profile. Can be `all`, `native`, `customize` or `disabled`. Defaults to `native`.
	Forward pulumi.StringPtrInput
	// Enable full duplex for the port profile. Defaults to `false`.
	FullDuplex pulumi.BoolPtrInput
	// Enable port isolation for the port profile. Defaults to `false`.
	Isolation pulumi.BoolPtrInput
	// Enable LLDP-MED for the port profile. Defaults to `true`.
	LldpmedEnabled pulumi.BoolPtrInput
	// Enable LLDP-MED topology change notifications for the port profile.
	LldpmedNotifyEnabled pulumi.BoolPtrInput
	// The name of the port profile.
	Name pulumi.StringPtrInput
	// The ID of network to use as the main network on the port profile.
	NativeNetworkconfId pulumi.StringPtrInput
	// The operation mode for the port profile. Can only be `switch` Defaults to `switch`.
	OpMode pulumi.StringPtrInput
	// The POE mode for the port profile. Can be one of `auto`, `passv24`, `passthrough` or `off`.
	PoeMode pulumi.StringPtrInput
	// Enable port security for the port profile. Defaults to `false`.
	PortSecurityEnabled pulumi.BoolPtrInput
	// The MAC addresses associated with the port security for the port profile.
	PortSecurityMacAddresses pulumi.StringArrayInput
	// The priority queue 1 level for the port profile. Can be between 0 and 100.
	PriorityQueue1Level pulumi.IntPtrInput
	// The priority queue 2 level for the port profile. Can be between 0 and 100.
	PriorityQueue2Level pulumi.IntPtrInput
	// The priority queue 3 level for the port profile. Can be between 0 and 100.
	PriorityQueue3Level pulumi.IntPtrInput
	// The priority queue 4 level for the port profile. Can be between 0 and 100.
	PriorityQueue4Level pulumi.IntPtrInput
	// The name of the site to associate the port profile with.
	Site pulumi.StringPtrInput
	// The link speed to set for the port profile. Can be one of `10`, `100`, `1000`, `2500`, `5000`, `10000`, `20000`, `25000`, `40000`, `50000` or `100000`
	Speed pulumi.IntPtrInput
	// Enable broadcast Storm Control for the port profile. Defaults to `false`.
	StormctrlBcastEnabled pulumi.BoolPtrInput
	// The broadcast Storm Control level for the port profile. Can be between 0 and 100.
	StormctrlBcastLevel pulumi.IntPtrInput
	// The broadcast Storm Control rate for the port profile. Can be between 0 and 14880000.
	StormctrlBcastRate pulumi.IntPtrInput
	// Enable multicast Storm Control for the port profile. Defaults to `false`.
	StormctrlMcastEnabled pulumi.BoolPtrInput
	// The multicast Storm Control level for the port profile. Can be between 0 and 100.
	StormctrlMcastLevel pulumi.IntPtrInput
	// The multicast Storm Control rate for the port profile. Can be between 0 and 14880000.
	StormctrlMcastRate pulumi.IntPtrInput
	// The type of Storm Control to use for the port profile. Can be one of `level` or `rate`.
	StormctrlType pulumi.StringPtrInput
	// Enable unknown unicast Storm Control for the port profile. Defaults to `false`.
	StormctrlUcastEnabled pulumi.BoolPtrInput
	// The unknown unicast Storm Control level for the port profile. Can be between 0 and 100.
	StormctrlUcastLevel pulumi.IntPtrInput
	// The unknown unicast Storm Control rate for the port profile. Can be between 0 and 14880000.
	StormctrlUcastRate pulumi.IntPtrInput
	// Enable spanning tree protocol on the port profile. Defaults to `true`.
	StpPortMode pulumi.BoolPtrInput
	// The IDs of networks to tag traffic with for the port profile.
	TaggedNetworkconfIds pulumi.StringArrayInput
	// The ID of network to use as the voice network on the port profile.
	VoiceNetworkconfId pulumi.StringPtrInput
}

func (ProfileState) ElementType

func (ProfileState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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