fortios.firewall/shaper.Trafficshaper
Explore with Pulumi AI
Configure shared traffic shaper.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.firewall.shaper.Trafficshaper("trname", {
bandwidthUnit: "kbps",
diffserv: "disable",
diffservcode: "000000",
guaranteedBandwidth: 0,
maximumBandwidth: 1024,
perPolicy: "disable",
priority: "low",
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.firewall.shaper.Trafficshaper("trname",
bandwidth_unit="kbps",
diffserv="disable",
diffservcode="000000",
guaranteed_bandwidth=0,
maximum_bandwidth=1024,
per_policy="disable",
priority="low")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/firewall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := firewall.NewTrafficshaper(ctx, "trname", &firewall.TrafficshaperArgs{
BandwidthUnit: pulumi.String("kbps"),
Diffserv: pulumi.String("disable"),
Diffservcode: pulumi.String("000000"),
GuaranteedBandwidth: pulumi.Int(0),
MaximumBandwidth: pulumi.Int(1024),
PerPolicy: pulumi.String("disable"),
Priority: pulumi.String("low"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var trname = new Fortios.Firewall.Shaper.Trafficshaper("trname", new()
{
BandwidthUnit = "kbps",
Diffserv = "disable",
Diffservcode = "000000",
GuaranteedBandwidth = 0,
MaximumBandwidth = 1024,
PerPolicy = "disable",
Priority = "low",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.firewall.Trafficshaper;
import com.pulumi.fortios.firewall.TrafficshaperArgs;
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 trname = new Trafficshaper("trname", TrafficshaperArgs.builder()
.bandwidthUnit("kbps")
.diffserv("disable")
.diffservcode("000000")
.guaranteedBandwidth(0)
.maximumBandwidth(1024)
.perPolicy("disable")
.priority("low")
.build());
}
}
resources:
trname:
type: fortios:firewall/shaper:Trafficshaper
properties:
bandwidthUnit: kbps
diffserv: disable
diffservcode: '000000'
guaranteedBandwidth: 0
maximumBandwidth: 1024
perPolicy: disable
priority: low
Create Trafficshaper Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Trafficshaper(name: string, args?: TrafficshaperArgs, opts?: CustomResourceOptions);
@overload
def Trafficshaper(resource_name: str,
args: Optional[TrafficshaperArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Trafficshaper(resource_name: str,
opts: Optional[ResourceOptions] = None,
bandwidth_unit: Optional[str] = None,
cos: Optional[str] = None,
cos_marking: Optional[str] = None,
cos_marking_method: Optional[str] = None,
diffserv: Optional[str] = None,
diffservcode: Optional[str] = None,
dscp_marking_method: Optional[str] = None,
exceed_bandwidth: Optional[int] = None,
exceed_class_id: Optional[int] = None,
exceed_cos: Optional[str] = None,
exceed_dscp: Optional[str] = None,
guaranteed_bandwidth: Optional[int] = None,
maximum_bandwidth: Optional[int] = None,
maximum_cos: Optional[str] = None,
maximum_dscp: Optional[str] = None,
name: Optional[str] = None,
overhead: Optional[int] = None,
per_policy: Optional[str] = None,
priority: Optional[str] = None,
vdomparam: Optional[str] = None)
func NewTrafficshaper(ctx *Context, name string, args *TrafficshaperArgs, opts ...ResourceOption) (*Trafficshaper, error)
public Trafficshaper(string name, TrafficshaperArgs? args = null, CustomResourceOptions? opts = null)
public Trafficshaper(String name, TrafficshaperArgs args)
public Trafficshaper(String name, TrafficshaperArgs args, CustomResourceOptions options)
type: fortios:firewall/shaper/trafficshaper:Trafficshaper
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 TrafficshaperArgs
- 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 TrafficshaperArgs
- 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 TrafficshaperArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficshaperArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrafficshaperArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Trafficshaper Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Trafficshaper resource accepts the following input properties:
- Bandwidth
Unit string - Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps). Valid values:
kbps
,mbps
,gbps
. - Cos string
- VLAN CoS mark.
- Cos
Marking string - Enable/disable VLAN CoS marking. Valid values:
enable
,disable
. - Cos
Marking stringMethod - Select VLAN CoS marking method. Valid values:
multi-stage
,static
. - Diffserv string
- Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper. Valid values:
enable
,disable
. - Diffservcode string
- DiffServ setting to be applied to traffic accepted by this shaper.
- Dscp
Marking stringMethod - Select DSCP marking method. Valid values:
multi-stage
,static
. - Exceed
Bandwidth int - Exceed bandwidth used for DSCP multi-stage marking. Units depend on the bandwidth-unit setting.
- Exceed
Class intId - Class ID for traffic in [guaranteed-bandwidth, maximum-bandwidth].
- Exceed
Cos string - VLAN CoS mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- Exceed
Dscp string - DSCP mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- Guaranteed
Bandwidth int - Amount of bandwidth guaranteed for this shaper. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- Maximum
Bandwidth int - Upper bandwidth limit enforced by this shaper. 0 means no limit. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- Maximum
Cos string - VLAN CoS mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- Maximum
Dscp string - DSCP mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- Name string
- Traffic shaper name.
- Overhead int
- Per-packet size overhead used in rate computations.
- Per
Policy string - Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy. Valid values:
disable
,enable
. - Priority string
- Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth. Valid values:
low
,medium
,high
. - Vdomparam string
- 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.
- Bandwidth
Unit string - Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps). Valid values:
kbps
,mbps
,gbps
. - Cos string
- VLAN CoS mark.
- Cos
Marking string - Enable/disable VLAN CoS marking. Valid values:
enable
,disable
. - Cos
Marking stringMethod - Select VLAN CoS marking method. Valid values:
multi-stage
,static
. - Diffserv string
- Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper. Valid values:
enable
,disable
. - Diffservcode string
- DiffServ setting to be applied to traffic accepted by this shaper.
- Dscp
Marking stringMethod - Select DSCP marking method. Valid values:
multi-stage
,static
. - Exceed
Bandwidth int - Exceed bandwidth used for DSCP multi-stage marking. Units depend on the bandwidth-unit setting.
- Exceed
Class intId - Class ID for traffic in [guaranteed-bandwidth, maximum-bandwidth].
- Exceed
Cos string - VLAN CoS mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- Exceed
Dscp string - DSCP mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- Guaranteed
Bandwidth int - Amount of bandwidth guaranteed for this shaper. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- Maximum
Bandwidth int - Upper bandwidth limit enforced by this shaper. 0 means no limit. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- Maximum
Cos string - VLAN CoS mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- Maximum
Dscp string - DSCP mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- Name string
- Traffic shaper name.
- Overhead int
- Per-packet size overhead used in rate computations.
- Per
Policy string - Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy. Valid values:
disable
,enable
. - Priority string
- Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth. Valid values:
low
,medium
,high
. - Vdomparam string
- 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.
- bandwidth
Unit String - Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps). Valid values:
kbps
,mbps
,gbps
. - cos String
- VLAN CoS mark.
- cos
Marking String - Enable/disable VLAN CoS marking. Valid values:
enable
,disable
. - cos
Marking StringMethod - Select VLAN CoS marking method. Valid values:
multi-stage
,static
. - diffserv String
- Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper. Valid values:
enable
,disable
. - diffservcode String
- DiffServ setting to be applied to traffic accepted by this shaper.
- dscp
Marking StringMethod - Select DSCP marking method. Valid values:
multi-stage
,static
. - exceed
Bandwidth Integer - Exceed bandwidth used for DSCP multi-stage marking. Units depend on the bandwidth-unit setting.
- exceed
Class IntegerId - Class ID for traffic in [guaranteed-bandwidth, maximum-bandwidth].
- exceed
Cos String - VLAN CoS mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- exceed
Dscp String - DSCP mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- guaranteed
Bandwidth Integer - Amount of bandwidth guaranteed for this shaper. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum
Bandwidth Integer - Upper bandwidth limit enforced by this shaper. 0 means no limit. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum
Cos String - VLAN CoS mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- maximum
Dscp String - DSCP mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- name String
- Traffic shaper name.
- overhead Integer
- Per-packet size overhead used in rate computations.
- per
Policy String - Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy. Valid values:
disable
,enable
. - priority String
- Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth. Valid values:
low
,medium
,high
. - vdomparam String
- 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.
- bandwidth
Unit string - Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps). Valid values:
kbps
,mbps
,gbps
. - cos string
- VLAN CoS mark.
- cos
Marking string - Enable/disable VLAN CoS marking. Valid values:
enable
,disable
. - cos
Marking stringMethod - Select VLAN CoS marking method. Valid values:
multi-stage
,static
. - diffserv string
- Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper. Valid values:
enable
,disable
. - diffservcode string
- DiffServ setting to be applied to traffic accepted by this shaper.
- dscp
Marking stringMethod - Select DSCP marking method. Valid values:
multi-stage
,static
. - exceed
Bandwidth number - Exceed bandwidth used for DSCP multi-stage marking. Units depend on the bandwidth-unit setting.
- exceed
Class numberId - Class ID for traffic in [guaranteed-bandwidth, maximum-bandwidth].
- exceed
Cos string - VLAN CoS mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- exceed
Dscp string - DSCP mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- guaranteed
Bandwidth number - Amount of bandwidth guaranteed for this shaper. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum
Bandwidth number - Upper bandwidth limit enforced by this shaper. 0 means no limit. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum
Cos string - VLAN CoS mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- maximum
Dscp string - DSCP mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- name string
- Traffic shaper name.
- overhead number
- Per-packet size overhead used in rate computations.
- per
Policy string - Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy. Valid values:
disable
,enable
. - priority string
- Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth. Valid values:
low
,medium
,high
. - vdomparam string
- 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.
- bandwidth_
unit str - Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps). Valid values:
kbps
,mbps
,gbps
. - cos str
- VLAN CoS mark.
- cos_
marking str - Enable/disable VLAN CoS marking. Valid values:
enable
,disable
. - cos_
marking_ strmethod - Select VLAN CoS marking method. Valid values:
multi-stage
,static
. - diffserv str
- Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper. Valid values:
enable
,disable
. - diffservcode str
- DiffServ setting to be applied to traffic accepted by this shaper.
- dscp_
marking_ strmethod - Select DSCP marking method. Valid values:
multi-stage
,static
. - exceed_
bandwidth int - Exceed bandwidth used for DSCP multi-stage marking. Units depend on the bandwidth-unit setting.
- exceed_
class_ intid - Class ID for traffic in [guaranteed-bandwidth, maximum-bandwidth].
- exceed_
cos str - VLAN CoS mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- exceed_
dscp str - DSCP mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- guaranteed_
bandwidth int - Amount of bandwidth guaranteed for this shaper. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum_
bandwidth int - Upper bandwidth limit enforced by this shaper. 0 means no limit. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum_
cos str - VLAN CoS mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- maximum_
dscp str - DSCP mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- name str
- Traffic shaper name.
- overhead int
- Per-packet size overhead used in rate computations.
- per_
policy str - Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy. Valid values:
disable
,enable
. - priority str
- Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth. Valid values:
low
,medium
,high
. - vdomparam str
- 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.
- bandwidth
Unit String - Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps). Valid values:
kbps
,mbps
,gbps
. - cos String
- VLAN CoS mark.
- cos
Marking String - Enable/disable VLAN CoS marking. Valid values:
enable
,disable
. - cos
Marking StringMethod - Select VLAN CoS marking method. Valid values:
multi-stage
,static
. - diffserv String
- Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper. Valid values:
enable
,disable
. - diffservcode String
- DiffServ setting to be applied to traffic accepted by this shaper.
- dscp
Marking StringMethod - Select DSCP marking method. Valid values:
multi-stage
,static
. - exceed
Bandwidth Number - Exceed bandwidth used for DSCP multi-stage marking. Units depend on the bandwidth-unit setting.
- exceed
Class NumberId - Class ID for traffic in [guaranteed-bandwidth, maximum-bandwidth].
- exceed
Cos String - VLAN CoS mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- exceed
Dscp String - DSCP mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- guaranteed
Bandwidth Number - Amount of bandwidth guaranteed for this shaper. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum
Bandwidth Number - Upper bandwidth limit enforced by this shaper. 0 means no limit. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum
Cos String - VLAN CoS mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- maximum
Dscp String - DSCP mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- name String
- Traffic shaper name.
- overhead Number
- Per-packet size overhead used in rate computations.
- per
Policy String - Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy. Valid values:
disable
,enable
. - priority String
- Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth. Valid values:
low
,medium
,high
. - vdomparam String
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Trafficshaper 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 Trafficshaper Resource
Get an existing Trafficshaper 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?: TrafficshaperState, opts?: CustomResourceOptions): Trafficshaper
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bandwidth_unit: Optional[str] = None,
cos: Optional[str] = None,
cos_marking: Optional[str] = None,
cos_marking_method: Optional[str] = None,
diffserv: Optional[str] = None,
diffservcode: Optional[str] = None,
dscp_marking_method: Optional[str] = None,
exceed_bandwidth: Optional[int] = None,
exceed_class_id: Optional[int] = None,
exceed_cos: Optional[str] = None,
exceed_dscp: Optional[str] = None,
guaranteed_bandwidth: Optional[int] = None,
maximum_bandwidth: Optional[int] = None,
maximum_cos: Optional[str] = None,
maximum_dscp: Optional[str] = None,
name: Optional[str] = None,
overhead: Optional[int] = None,
per_policy: Optional[str] = None,
priority: Optional[str] = None,
vdomparam: Optional[str] = None) -> Trafficshaper
func GetTrafficshaper(ctx *Context, name string, id IDInput, state *TrafficshaperState, opts ...ResourceOption) (*Trafficshaper, error)
public static Trafficshaper Get(string name, Input<string> id, TrafficshaperState? state, CustomResourceOptions? opts = null)
public static Trafficshaper get(String name, Output<String> id, TrafficshaperState 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.
- Bandwidth
Unit string - Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps). Valid values:
kbps
,mbps
,gbps
. - Cos string
- VLAN CoS mark.
- Cos
Marking string - Enable/disable VLAN CoS marking. Valid values:
enable
,disable
. - Cos
Marking stringMethod - Select VLAN CoS marking method. Valid values:
multi-stage
,static
. - Diffserv string
- Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper. Valid values:
enable
,disable
. - Diffservcode string
- DiffServ setting to be applied to traffic accepted by this shaper.
- Dscp
Marking stringMethod - Select DSCP marking method. Valid values:
multi-stage
,static
. - Exceed
Bandwidth int - Exceed bandwidth used for DSCP multi-stage marking. Units depend on the bandwidth-unit setting.
- Exceed
Class intId - Class ID for traffic in [guaranteed-bandwidth, maximum-bandwidth].
- Exceed
Cos string - VLAN CoS mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- Exceed
Dscp string - DSCP mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- Guaranteed
Bandwidth int - Amount of bandwidth guaranteed for this shaper. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- Maximum
Bandwidth int - Upper bandwidth limit enforced by this shaper. 0 means no limit. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- Maximum
Cos string - VLAN CoS mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- Maximum
Dscp string - DSCP mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- Name string
- Traffic shaper name.
- Overhead int
- Per-packet size overhead used in rate computations.
- Per
Policy string - Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy. Valid values:
disable
,enable
. - Priority string
- Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth. Valid values:
low
,medium
,high
. - Vdomparam string
- 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.
- Bandwidth
Unit string - Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps). Valid values:
kbps
,mbps
,gbps
. - Cos string
- VLAN CoS mark.
- Cos
Marking string - Enable/disable VLAN CoS marking. Valid values:
enable
,disable
. - Cos
Marking stringMethod - Select VLAN CoS marking method. Valid values:
multi-stage
,static
. - Diffserv string
- Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper. Valid values:
enable
,disable
. - Diffservcode string
- DiffServ setting to be applied to traffic accepted by this shaper.
- Dscp
Marking stringMethod - Select DSCP marking method. Valid values:
multi-stage
,static
. - Exceed
Bandwidth int - Exceed bandwidth used for DSCP multi-stage marking. Units depend on the bandwidth-unit setting.
- Exceed
Class intId - Class ID for traffic in [guaranteed-bandwidth, maximum-bandwidth].
- Exceed
Cos string - VLAN CoS mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- Exceed
Dscp string - DSCP mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- Guaranteed
Bandwidth int - Amount of bandwidth guaranteed for this shaper. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- Maximum
Bandwidth int - Upper bandwidth limit enforced by this shaper. 0 means no limit. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- Maximum
Cos string - VLAN CoS mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- Maximum
Dscp string - DSCP mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- Name string
- Traffic shaper name.
- Overhead int
- Per-packet size overhead used in rate computations.
- Per
Policy string - Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy. Valid values:
disable
,enable
. - Priority string
- Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth. Valid values:
low
,medium
,high
. - Vdomparam string
- 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.
- bandwidth
Unit String - Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps). Valid values:
kbps
,mbps
,gbps
. - cos String
- VLAN CoS mark.
- cos
Marking String - Enable/disable VLAN CoS marking. Valid values:
enable
,disable
. - cos
Marking StringMethod - Select VLAN CoS marking method. Valid values:
multi-stage
,static
. - diffserv String
- Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper. Valid values:
enable
,disable
. - diffservcode String
- DiffServ setting to be applied to traffic accepted by this shaper.
- dscp
Marking StringMethod - Select DSCP marking method. Valid values:
multi-stage
,static
. - exceed
Bandwidth Integer - Exceed bandwidth used for DSCP multi-stage marking. Units depend on the bandwidth-unit setting.
- exceed
Class IntegerId - Class ID for traffic in [guaranteed-bandwidth, maximum-bandwidth].
- exceed
Cos String - VLAN CoS mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- exceed
Dscp String - DSCP mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- guaranteed
Bandwidth Integer - Amount of bandwidth guaranteed for this shaper. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum
Bandwidth Integer - Upper bandwidth limit enforced by this shaper. 0 means no limit. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum
Cos String - VLAN CoS mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- maximum
Dscp String - DSCP mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- name String
- Traffic shaper name.
- overhead Integer
- Per-packet size overhead used in rate computations.
- per
Policy String - Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy. Valid values:
disable
,enable
. - priority String
- Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth. Valid values:
low
,medium
,high
. - vdomparam String
- 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.
- bandwidth
Unit string - Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps). Valid values:
kbps
,mbps
,gbps
. - cos string
- VLAN CoS mark.
- cos
Marking string - Enable/disable VLAN CoS marking. Valid values:
enable
,disable
. - cos
Marking stringMethod - Select VLAN CoS marking method. Valid values:
multi-stage
,static
. - diffserv string
- Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper. Valid values:
enable
,disable
. - diffservcode string
- DiffServ setting to be applied to traffic accepted by this shaper.
- dscp
Marking stringMethod - Select DSCP marking method. Valid values:
multi-stage
,static
. - exceed
Bandwidth number - Exceed bandwidth used for DSCP multi-stage marking. Units depend on the bandwidth-unit setting.
- exceed
Class numberId - Class ID for traffic in [guaranteed-bandwidth, maximum-bandwidth].
- exceed
Cos string - VLAN CoS mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- exceed
Dscp string - DSCP mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- guaranteed
Bandwidth number - Amount of bandwidth guaranteed for this shaper. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum
Bandwidth number - Upper bandwidth limit enforced by this shaper. 0 means no limit. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum
Cos string - VLAN CoS mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- maximum
Dscp string - DSCP mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- name string
- Traffic shaper name.
- overhead number
- Per-packet size overhead used in rate computations.
- per
Policy string - Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy. Valid values:
disable
,enable
. - priority string
- Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth. Valid values:
low
,medium
,high
. - vdomparam string
- 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.
- bandwidth_
unit str - Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps). Valid values:
kbps
,mbps
,gbps
. - cos str
- VLAN CoS mark.
- cos_
marking str - Enable/disable VLAN CoS marking. Valid values:
enable
,disable
. - cos_
marking_ strmethod - Select VLAN CoS marking method. Valid values:
multi-stage
,static
. - diffserv str
- Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper. Valid values:
enable
,disable
. - diffservcode str
- DiffServ setting to be applied to traffic accepted by this shaper.
- dscp_
marking_ strmethod - Select DSCP marking method. Valid values:
multi-stage
,static
. - exceed_
bandwidth int - Exceed bandwidth used for DSCP multi-stage marking. Units depend on the bandwidth-unit setting.
- exceed_
class_ intid - Class ID for traffic in [guaranteed-bandwidth, maximum-bandwidth].
- exceed_
cos str - VLAN CoS mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- exceed_
dscp str - DSCP mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- guaranteed_
bandwidth int - Amount of bandwidth guaranteed for this shaper. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum_
bandwidth int - Upper bandwidth limit enforced by this shaper. 0 means no limit. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum_
cos str - VLAN CoS mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- maximum_
dscp str - DSCP mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- name str
- Traffic shaper name.
- overhead int
- Per-packet size overhead used in rate computations.
- per_
policy str - Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy. Valid values:
disable
,enable
. - priority str
- Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth. Valid values:
low
,medium
,high
. - vdomparam str
- 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.
- bandwidth
Unit String - Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps). Valid values:
kbps
,mbps
,gbps
. - cos String
- VLAN CoS mark.
- cos
Marking String - Enable/disable VLAN CoS marking. Valid values:
enable
,disable
. - cos
Marking StringMethod - Select VLAN CoS marking method. Valid values:
multi-stage
,static
. - diffserv String
- Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper. Valid values:
enable
,disable
. - diffservcode String
- DiffServ setting to be applied to traffic accepted by this shaper.
- dscp
Marking StringMethod - Select DSCP marking method. Valid values:
multi-stage
,static
. - exceed
Bandwidth Number - Exceed bandwidth used for DSCP multi-stage marking. Units depend on the bandwidth-unit setting.
- exceed
Class NumberId - Class ID for traffic in [guaranteed-bandwidth, maximum-bandwidth].
- exceed
Cos String - VLAN CoS mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- exceed
Dscp String - DSCP mark for traffic in [guaranteed-bandwidth, exceed-bandwidth].
- guaranteed
Bandwidth Number - Amount of bandwidth guaranteed for this shaper. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum
Bandwidth Number - Upper bandwidth limit enforced by this shaper. 0 means no limit. Units depend on the bandwidth-unit setting. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: 0 - 16776000. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: 0 - 80000000.
- maximum
Cos String - VLAN CoS mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- maximum
Dscp String - DSCP mark for traffic in [exceed-bandwidth, maximum-bandwidth].
- name String
- Traffic shaper name.
- overhead Number
- Per-packet size overhead used in rate computations.
- per
Policy String - Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy. Valid values:
disable
,enable
. - priority String
- Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth. Valid values:
low
,medium
,high
. - vdomparam String
- 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.
Import
FirewallShaper TrafficShaper can be imported using any of these accepted formats:
$ pulumi import fortios:firewall/shaper/trafficshaper:Trafficshaper labelname {{name}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:firewall/shaper/trafficshaper:Trafficshaper labelname {{name}}
$ unset “FORTIOS_IMPORT_TABLE”
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.