1. Packages
  2. Fortios
  3. API Docs
  4. wirelesscontroller
  5. wirelesscontroller/hotspot20
  6. H2qpwanmetric
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.wirelesscontroller/hotspot20.H2qpwanmetric

Explore with Pulumi AI

fortios logo
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

    Configure WAN metrics.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname = new fortios.wirelesscontroller.hotspot20.H2qpwanmetric("trname", {
        downlinkLoad: 0,
        downlinkSpeed: 2400,
        linkAtCapacity: "disable",
        linkStatus: "up",
        loadMeasurementDuration: 0,
        symmetricWanLink: "symmetric",
        uplinkLoad: 0,
        uplinkSpeed: 2400,
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname = fortios.wirelesscontroller.hotspot20.H2qpwanmetric("trname",
        downlink_load=0,
        downlink_speed=2400,
        link_at_capacity="disable",
        link_status="up",
        load_measurement_duration=0,
        symmetric_wan_link="symmetric",
        uplink_load=0,
        uplink_speed=2400)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/wirelesscontroller"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := wirelesscontroller.NewH2qpwanmetric(ctx, "trname", &wirelesscontroller.H2qpwanmetricArgs{
    			DownlinkLoad:            pulumi.Int(0),
    			DownlinkSpeed:           pulumi.Int(2400),
    			LinkAtCapacity:          pulumi.String("disable"),
    			LinkStatus:              pulumi.String("up"),
    			LoadMeasurementDuration: pulumi.Int(0),
    			SymmetricWanLink:        pulumi.String("symmetric"),
    			UplinkLoad:              pulumi.Int(0),
    			UplinkSpeed:             pulumi.Int(2400),
    		})
    		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.Wirelesscontroller.Hotspot20.H2qpwanmetric("trname", new()
        {
            DownlinkLoad = 0,
            DownlinkSpeed = 2400,
            LinkAtCapacity = "disable",
            LinkStatus = "up",
            LoadMeasurementDuration = 0,
            SymmetricWanLink = "symmetric",
            UplinkLoad = 0,
            UplinkSpeed = 2400,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.wirelesscontroller.H2qpwanmetric;
    import com.pulumi.fortios.wirelesscontroller.H2qpwanmetricArgs;
    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 H2qpwanmetric("trname", H2qpwanmetricArgs.builder()
                .downlinkLoad(0)
                .downlinkSpeed(2400)
                .linkAtCapacity("disable")
                .linkStatus("up")
                .loadMeasurementDuration(0)
                .symmetricWanLink("symmetric")
                .uplinkLoad(0)
                .uplinkSpeed(2400)
                .build());
    
        }
    }
    
    resources:
      trname:
        type: fortios:wirelesscontroller/hotspot20:H2qpwanmetric
        properties:
          downlinkLoad: 0
          downlinkSpeed: 2400
          linkAtCapacity: disable
          linkStatus: up
          loadMeasurementDuration: 0
          symmetricWanLink: symmetric
          uplinkLoad: 0
          uplinkSpeed: 2400
    

    Create H2qpwanmetric Resource

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

    Constructor syntax

    new H2qpwanmetric(name: string, args?: H2qpwanmetricArgs, opts?: CustomResourceOptions);
    @overload
    def H2qpwanmetric(resource_name: str,
                      args: Optional[H2qpwanmetricArgs] = None,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def H2qpwanmetric(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      downlink_load: Optional[int] = None,
                      downlink_speed: Optional[int] = None,
                      link_at_capacity: Optional[str] = None,
                      link_status: Optional[str] = None,
                      load_measurement_duration: Optional[int] = None,
                      name: Optional[str] = None,
                      symmetric_wan_link: Optional[str] = None,
                      uplink_load: Optional[int] = None,
                      uplink_speed: Optional[int] = None,
                      vdomparam: Optional[str] = None)
    func NewH2qpwanmetric(ctx *Context, name string, args *H2qpwanmetricArgs, opts ...ResourceOption) (*H2qpwanmetric, error)
    public H2qpwanmetric(string name, H2qpwanmetricArgs? args = null, CustomResourceOptions? opts = null)
    public H2qpwanmetric(String name, H2qpwanmetricArgs args)
    public H2qpwanmetric(String name, H2qpwanmetricArgs args, CustomResourceOptions options)
    
    type: fortios:wirelesscontroller/hotspot20/h2qpwanmetric:H2qpwanmetric
    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 H2qpwanmetricArgs
    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 H2qpwanmetricArgs
    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 H2qpwanmetricArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args H2qpwanmetricArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args H2qpwanmetricArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    H2qpwanmetric Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The H2qpwanmetric resource accepts the following input properties:

    DownlinkLoad int
    Downlink load.
    DownlinkSpeed int
    Downlink speed (in kilobits/s).
    LinkAtCapacity string
    Link at capacity. Valid values: enable, disable.
    LinkStatus string
    Link status. Valid values: up, down, in-test.
    LoadMeasurementDuration int
    Load measurement duration (in tenths of a second).
    Name string
    WAN metric name.
    SymmetricWanLink string
    WAN link symmetry. Valid values: symmetric, asymmetric.
    UplinkLoad int
    Uplink load.
    UplinkSpeed int
    Uplink speed (in kilobits/s).
    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.
    DownlinkLoad int
    Downlink load.
    DownlinkSpeed int
    Downlink speed (in kilobits/s).
    LinkAtCapacity string
    Link at capacity. Valid values: enable, disable.
    LinkStatus string
    Link status. Valid values: up, down, in-test.
    LoadMeasurementDuration int
    Load measurement duration (in tenths of a second).
    Name string
    WAN metric name.
    SymmetricWanLink string
    WAN link symmetry. Valid values: symmetric, asymmetric.
    UplinkLoad int
    Uplink load.
    UplinkSpeed int
    Uplink speed (in kilobits/s).
    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.
    downlinkLoad Integer
    Downlink load.
    downlinkSpeed Integer
    Downlink speed (in kilobits/s).
    linkAtCapacity String
    Link at capacity. Valid values: enable, disable.
    linkStatus String
    Link status. Valid values: up, down, in-test.
    loadMeasurementDuration Integer
    Load measurement duration (in tenths of a second).
    name String
    WAN metric name.
    symmetricWanLink String
    WAN link symmetry. Valid values: symmetric, asymmetric.
    uplinkLoad Integer
    Uplink load.
    uplinkSpeed Integer
    Uplink speed (in kilobits/s).
    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.
    downlinkLoad number
    Downlink load.
    downlinkSpeed number
    Downlink speed (in kilobits/s).
    linkAtCapacity string
    Link at capacity. Valid values: enable, disable.
    linkStatus string
    Link status. Valid values: up, down, in-test.
    loadMeasurementDuration number
    Load measurement duration (in tenths of a second).
    name string
    WAN metric name.
    symmetricWanLink string
    WAN link symmetry. Valid values: symmetric, asymmetric.
    uplinkLoad number
    Uplink load.
    uplinkSpeed number
    Uplink speed (in kilobits/s).
    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.
    downlink_load int
    Downlink load.
    downlink_speed int
    Downlink speed (in kilobits/s).
    link_at_capacity str
    Link at capacity. Valid values: enable, disable.
    link_status str
    Link status. Valid values: up, down, in-test.
    load_measurement_duration int
    Load measurement duration (in tenths of a second).
    name str
    WAN metric name.
    symmetric_wan_link str
    WAN link symmetry. Valid values: symmetric, asymmetric.
    uplink_load int
    Uplink load.
    uplink_speed int
    Uplink speed (in kilobits/s).
    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.
    downlinkLoad Number
    Downlink load.
    downlinkSpeed Number
    Downlink speed (in kilobits/s).
    linkAtCapacity String
    Link at capacity. Valid values: enable, disable.
    linkStatus String
    Link status. Valid values: up, down, in-test.
    loadMeasurementDuration Number
    Load measurement duration (in tenths of a second).
    name String
    WAN metric name.
    symmetricWanLink String
    WAN link symmetry. Valid values: symmetric, asymmetric.
    uplinkLoad Number
    Uplink load.
    uplinkSpeed Number
    Uplink speed (in kilobits/s).
    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 H2qpwanmetric 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 H2qpwanmetric Resource

    Get an existing H2qpwanmetric 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?: H2qpwanmetricState, opts?: CustomResourceOptions): H2qpwanmetric
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            downlink_load: Optional[int] = None,
            downlink_speed: Optional[int] = None,
            link_at_capacity: Optional[str] = None,
            link_status: Optional[str] = None,
            load_measurement_duration: Optional[int] = None,
            name: Optional[str] = None,
            symmetric_wan_link: Optional[str] = None,
            uplink_load: Optional[int] = None,
            uplink_speed: Optional[int] = None,
            vdomparam: Optional[str] = None) -> H2qpwanmetric
    func GetH2qpwanmetric(ctx *Context, name string, id IDInput, state *H2qpwanmetricState, opts ...ResourceOption) (*H2qpwanmetric, error)
    public static H2qpwanmetric Get(string name, Input<string> id, H2qpwanmetricState? state, CustomResourceOptions? opts = null)
    public static H2qpwanmetric get(String name, Output<String> id, H2qpwanmetricState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DownlinkLoad int
    Downlink load.
    DownlinkSpeed int
    Downlink speed (in kilobits/s).
    LinkAtCapacity string
    Link at capacity. Valid values: enable, disable.
    LinkStatus string
    Link status. Valid values: up, down, in-test.
    LoadMeasurementDuration int
    Load measurement duration (in tenths of a second).
    Name string
    WAN metric name.
    SymmetricWanLink string
    WAN link symmetry. Valid values: symmetric, asymmetric.
    UplinkLoad int
    Uplink load.
    UplinkSpeed int
    Uplink speed (in kilobits/s).
    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.
    DownlinkLoad int
    Downlink load.
    DownlinkSpeed int
    Downlink speed (in kilobits/s).
    LinkAtCapacity string
    Link at capacity. Valid values: enable, disable.
    LinkStatus string
    Link status. Valid values: up, down, in-test.
    LoadMeasurementDuration int
    Load measurement duration (in tenths of a second).
    Name string
    WAN metric name.
    SymmetricWanLink string
    WAN link symmetry. Valid values: symmetric, asymmetric.
    UplinkLoad int
    Uplink load.
    UplinkSpeed int
    Uplink speed (in kilobits/s).
    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.
    downlinkLoad Integer
    Downlink load.
    downlinkSpeed Integer
    Downlink speed (in kilobits/s).
    linkAtCapacity String
    Link at capacity. Valid values: enable, disable.
    linkStatus String
    Link status. Valid values: up, down, in-test.
    loadMeasurementDuration Integer
    Load measurement duration (in tenths of a second).
    name String
    WAN metric name.
    symmetricWanLink String
    WAN link symmetry. Valid values: symmetric, asymmetric.
    uplinkLoad Integer
    Uplink load.
    uplinkSpeed Integer
    Uplink speed (in kilobits/s).
    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.
    downlinkLoad number
    Downlink load.
    downlinkSpeed number
    Downlink speed (in kilobits/s).
    linkAtCapacity string
    Link at capacity. Valid values: enable, disable.
    linkStatus string
    Link status. Valid values: up, down, in-test.
    loadMeasurementDuration number
    Load measurement duration (in tenths of a second).
    name string
    WAN metric name.
    symmetricWanLink string
    WAN link symmetry. Valid values: symmetric, asymmetric.
    uplinkLoad number
    Uplink load.
    uplinkSpeed number
    Uplink speed (in kilobits/s).
    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.
    downlink_load int
    Downlink load.
    downlink_speed int
    Downlink speed (in kilobits/s).
    link_at_capacity str
    Link at capacity. Valid values: enable, disable.
    link_status str
    Link status. Valid values: up, down, in-test.
    load_measurement_duration int
    Load measurement duration (in tenths of a second).
    name str
    WAN metric name.
    symmetric_wan_link str
    WAN link symmetry. Valid values: symmetric, asymmetric.
    uplink_load int
    Uplink load.
    uplink_speed int
    Uplink speed (in kilobits/s).
    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.
    downlinkLoad Number
    Downlink load.
    downlinkSpeed Number
    Downlink speed (in kilobits/s).
    linkAtCapacity String
    Link at capacity. Valid values: enable, disable.
    linkStatus String
    Link status. Valid values: up, down, in-test.
    loadMeasurementDuration Number
    Load measurement duration (in tenths of a second).
    name String
    WAN metric name.
    symmetricWanLink String
    WAN link symmetry. Valid values: symmetric, asymmetric.
    uplinkLoad Number
    Uplink load.
    uplinkSpeed Number
    Uplink speed (in kilobits/s).
    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

    WirelessControllerHotspot20 H2QpWanMetric can be imported using any of these accepted formats:

    $ pulumi import fortios:wirelesscontroller/hotspot20/h2qpwanmetric:H2qpwanmetric labelname {{name}}
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:wirelesscontroller/hotspot20/h2qpwanmetric:H2qpwanmetric 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.
    fortios logo
    Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse