meraki.networks.SwitchQosRulesOrder
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.networks.SwitchQosRulesOrder("example", {
dscp: 1,
dstPort: 3000,
dstPortRange: "3000-3100",
networkId: "string",
protocol: "TCP",
srcPort: 2000,
srcPortRange: "70-80",
vlan: 100,
});
export const merakiNetworksSwitchQosRulesOrderExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.networks.SwitchQosRulesOrder("example",
dscp=1,
dst_port=3000,
dst_port_range="3000-3100",
network_id="string",
protocol="TCP",
src_port=2000,
src_port_range="70-80",
vlan=100)
pulumi.export("merakiNetworksSwitchQosRulesOrderExample", example)
package main
import (
"github.com/pulumi/pulumi-meraki/sdk/go/meraki/networks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := networks.NewSwitchQosRulesOrder(ctx, "example", &networks.SwitchQosRulesOrderArgs{
Dscp: pulumi.Int(1),
DstPort: pulumi.Int(3000),
DstPortRange: pulumi.String("3000-3100"),
NetworkId: pulumi.String("string"),
Protocol: pulumi.String("TCP"),
SrcPort: pulumi.Int(2000),
SrcPortRange: pulumi.String("70-80"),
Vlan: pulumi.Int(100),
})
if err != nil {
return err
}
ctx.Export("merakiNetworksSwitchQosRulesOrderExample", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = new Meraki.Networks.SwitchQosRulesOrder("example", new()
{
Dscp = 1,
DstPort = 3000,
DstPortRange = "3000-3100",
NetworkId = "string",
Protocol = "TCP",
SrcPort = 2000,
SrcPortRange = "70-80",
Vlan = 100,
});
return new Dictionary<string, object?>
{
["merakiNetworksSwitchQosRulesOrderExample"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.SwitchQosRulesOrder;
import com.pulumi.meraki.networks.SwitchQosRulesOrderArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new SwitchQosRulesOrder("example", SwitchQosRulesOrderArgs.builder()
.dscp(1)
.dstPort(3000)
.dstPortRange("3000-3100")
.networkId("string")
.protocol("TCP")
.srcPort(2000)
.srcPortRange("70-80")
.vlan(100)
.build());
ctx.export("merakiNetworksSwitchQosRulesOrderExample", example);
}
}
resources:
example:
type: meraki:networks:SwitchQosRulesOrder
properties:
dscp: 1
dstPort: 3000
dstPortRange: 3000-3100
networkId: string
protocol: TCP
srcPort: 2000
srcPortRange: 70-80
vlan: 100
outputs:
merakiNetworksSwitchQosRulesOrderExample: ${example}
Create SwitchQosRulesOrder Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SwitchQosRulesOrder(name: string, args: SwitchQosRulesOrderArgs, opts?: CustomResourceOptions);
@overload
def SwitchQosRulesOrder(resource_name: str,
args: SwitchQosRulesOrderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SwitchQosRulesOrder(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
dscp: Optional[int] = None,
dst_port: Optional[int] = None,
dst_port_range: Optional[str] = None,
protocol: Optional[str] = None,
qos_rule_id: Optional[str] = None,
src_port: Optional[int] = None,
src_port_range: Optional[str] = None,
vlan: Optional[int] = None)
func NewSwitchQosRulesOrder(ctx *Context, name string, args SwitchQosRulesOrderArgs, opts ...ResourceOption) (*SwitchQosRulesOrder, error)
public SwitchQosRulesOrder(string name, SwitchQosRulesOrderArgs args, CustomResourceOptions? opts = null)
public SwitchQosRulesOrder(String name, SwitchQosRulesOrderArgs args)
public SwitchQosRulesOrder(String name, SwitchQosRulesOrderArgs args, CustomResourceOptions options)
type: meraki:networks:SwitchQosRulesOrder
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 SwitchQosRulesOrderArgs
- 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 SwitchQosRulesOrderArgs
- 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 SwitchQosRulesOrderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SwitchQosRulesOrderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SwitchQosRulesOrderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var switchQosRulesOrderResource = new Meraki.Networks.SwitchQosRulesOrder("switchQosRulesOrderResource", new()
{
NetworkId = "string",
Dscp = 0,
DstPort = 0,
DstPortRange = "string",
Protocol = "string",
QosRuleId = "string",
SrcPort = 0,
SrcPortRange = "string",
Vlan = 0,
});
example, err := networks.NewSwitchQosRulesOrder(ctx, "switchQosRulesOrderResource", &networks.SwitchQosRulesOrderArgs{
NetworkId: pulumi.String("string"),
Dscp: pulumi.Int(0),
DstPort: pulumi.Int(0),
DstPortRange: pulumi.String("string"),
Protocol: pulumi.String("string"),
QosRuleId: pulumi.String("string"),
SrcPort: pulumi.Int(0),
SrcPortRange: pulumi.String("string"),
Vlan: pulumi.Int(0),
})
var switchQosRulesOrderResource = new SwitchQosRulesOrder("switchQosRulesOrderResource", SwitchQosRulesOrderArgs.builder()
.networkId("string")
.dscp(0)
.dstPort(0)
.dstPortRange("string")
.protocol("string")
.qosRuleId("string")
.srcPort(0)
.srcPortRange("string")
.vlan(0)
.build());
switch_qos_rules_order_resource = meraki.networks.SwitchQosRulesOrder("switchQosRulesOrderResource",
network_id="string",
dscp=0,
dst_port=0,
dst_port_range="string",
protocol="string",
qos_rule_id="string",
src_port=0,
src_port_range="string",
vlan=0)
const switchQosRulesOrderResource = new meraki.networks.SwitchQosRulesOrder("switchQosRulesOrderResource", {
networkId: "string",
dscp: 0,
dstPort: 0,
dstPortRange: "string",
protocol: "string",
qosRuleId: "string",
srcPort: 0,
srcPortRange: "string",
vlan: 0,
});
type: meraki:networks:SwitchQosRulesOrder
properties:
dscp: 0
dstPort: 0
dstPortRange: string
networkId: string
protocol: string
qosRuleId: string
srcPort: 0
srcPortRange: string
vlan: 0
SwitchQosRulesOrder 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 SwitchQosRulesOrder resource accepts the following input properties:
- Network
Id string - networkId path parameter. Network ID
- Dscp int
- DSCP tag. Set this to -1 to trust incoming DSCP. Default value is 0
- Dst
Port int - The destination port of the incoming packet. Applicable only if protocol is TCP or UDP.
- Dst
Port stringRange - The destination port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- Protocol string
- The protocol of the incoming packet. Can be one of "ANY", "TCP" or "UDP". Default value is "ANY"
- Qos
Rule stringId - qosRuleId path parameter. Qos rule ID
- Src
Port int - The source port of the incoming packet. Applicable only if protocol is TCP or UDP.
- Src
Port stringRange - The source port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- Vlan int
- The VLAN of the incoming packet. A null value will match any VLAN.
- Network
Id string - networkId path parameter. Network ID
- Dscp int
- DSCP tag. Set this to -1 to trust incoming DSCP. Default value is 0
- Dst
Port int - The destination port of the incoming packet. Applicable only if protocol is TCP or UDP.
- Dst
Port stringRange - The destination port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- Protocol string
- The protocol of the incoming packet. Can be one of "ANY", "TCP" or "UDP". Default value is "ANY"
- Qos
Rule stringId - qosRuleId path parameter. Qos rule ID
- Src
Port int - The source port of the incoming packet. Applicable only if protocol is TCP or UDP.
- Src
Port stringRange - The source port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- Vlan int
- The VLAN of the incoming packet. A null value will match any VLAN.
- network
Id String - networkId path parameter. Network ID
- dscp Integer
- DSCP tag. Set this to -1 to trust incoming DSCP. Default value is 0
- dst
Port Integer - The destination port of the incoming packet. Applicable only if protocol is TCP or UDP.
- dst
Port StringRange - The destination port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- protocol String
- The protocol of the incoming packet. Can be one of "ANY", "TCP" or "UDP". Default value is "ANY"
- qos
Rule StringId - qosRuleId path parameter. Qos rule ID
- src
Port Integer - The source port of the incoming packet. Applicable only if protocol is TCP or UDP.
- src
Port StringRange - The source port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- vlan Integer
- The VLAN of the incoming packet. A null value will match any VLAN.
- network
Id string - networkId path parameter. Network ID
- dscp number
- DSCP tag. Set this to -1 to trust incoming DSCP. Default value is 0
- dst
Port number - The destination port of the incoming packet. Applicable only if protocol is TCP or UDP.
- dst
Port stringRange - The destination port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- protocol string
- The protocol of the incoming packet. Can be one of "ANY", "TCP" or "UDP". Default value is "ANY"
- qos
Rule stringId - qosRuleId path parameter. Qos rule ID
- src
Port number - The source port of the incoming packet. Applicable only if protocol is TCP or UDP.
- src
Port stringRange - The source port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- vlan number
- The VLAN of the incoming packet. A null value will match any VLAN.
- network_
id str - networkId path parameter. Network ID
- dscp int
- DSCP tag. Set this to -1 to trust incoming DSCP. Default value is 0
- dst_
port int - The destination port of the incoming packet. Applicable only if protocol is TCP or UDP.
- dst_
port_ strrange - The destination port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- protocol str
- The protocol of the incoming packet. Can be one of "ANY", "TCP" or "UDP". Default value is "ANY"
- qos_
rule_ strid - qosRuleId path parameter. Qos rule ID
- src_
port int - The source port of the incoming packet. Applicable only if protocol is TCP or UDP.
- src_
port_ strrange - The source port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- vlan int
- The VLAN of the incoming packet. A null value will match any VLAN.
- network
Id String - networkId path parameter. Network ID
- dscp Number
- DSCP tag. Set this to -1 to trust incoming DSCP. Default value is 0
- dst
Port Number - The destination port of the incoming packet. Applicable only if protocol is TCP or UDP.
- dst
Port StringRange - The destination port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- protocol String
- The protocol of the incoming packet. Can be one of "ANY", "TCP" or "UDP". Default value is "ANY"
- qos
Rule StringId - qosRuleId path parameter. Qos rule ID
- src
Port Number - The source port of the incoming packet. Applicable only if protocol is TCP or UDP.
- src
Port StringRange - The source port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- vlan Number
- The VLAN of the incoming packet. A null value will match any VLAN.
Outputs
All input properties are implicitly available as output properties. Additionally, the SwitchQosRulesOrder 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 SwitchQosRulesOrder Resource
Get an existing SwitchQosRulesOrder 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?: SwitchQosRulesOrderState, opts?: CustomResourceOptions): SwitchQosRulesOrder
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dscp: Optional[int] = None,
dst_port: Optional[int] = None,
dst_port_range: Optional[str] = None,
network_id: Optional[str] = None,
protocol: Optional[str] = None,
qos_rule_id: Optional[str] = None,
src_port: Optional[int] = None,
src_port_range: Optional[str] = None,
vlan: Optional[int] = None) -> SwitchQosRulesOrder
func GetSwitchQosRulesOrder(ctx *Context, name string, id IDInput, state *SwitchQosRulesOrderState, opts ...ResourceOption) (*SwitchQosRulesOrder, error)
public static SwitchQosRulesOrder Get(string name, Input<string> id, SwitchQosRulesOrderState? state, CustomResourceOptions? opts = null)
public static SwitchQosRulesOrder get(String name, Output<String> id, SwitchQosRulesOrderState 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.
- Dscp int
- DSCP tag. Set this to -1 to trust incoming DSCP. Default value is 0
- Dst
Port int - The destination port of the incoming packet. Applicable only if protocol is TCP or UDP.
- Dst
Port stringRange - The destination port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- Network
Id string - networkId path parameter. Network ID
- Protocol string
- The protocol of the incoming packet. Can be one of "ANY", "TCP" or "UDP". Default value is "ANY"
- Qos
Rule stringId - qosRuleId path parameter. Qos rule ID
- Src
Port int - The source port of the incoming packet. Applicable only if protocol is TCP or UDP.
- Src
Port stringRange - The source port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- Vlan int
- The VLAN of the incoming packet. A null value will match any VLAN.
- Dscp int
- DSCP tag. Set this to -1 to trust incoming DSCP. Default value is 0
- Dst
Port int - The destination port of the incoming packet. Applicable only if protocol is TCP or UDP.
- Dst
Port stringRange - The destination port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- Network
Id string - networkId path parameter. Network ID
- Protocol string
- The protocol of the incoming packet. Can be one of "ANY", "TCP" or "UDP". Default value is "ANY"
- Qos
Rule stringId - qosRuleId path parameter. Qos rule ID
- Src
Port int - The source port of the incoming packet. Applicable only if protocol is TCP or UDP.
- Src
Port stringRange - The source port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- Vlan int
- The VLAN of the incoming packet. A null value will match any VLAN.
- dscp Integer
- DSCP tag. Set this to -1 to trust incoming DSCP. Default value is 0
- dst
Port Integer - The destination port of the incoming packet. Applicable only if protocol is TCP or UDP.
- dst
Port StringRange - The destination port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- network
Id String - networkId path parameter. Network ID
- protocol String
- The protocol of the incoming packet. Can be one of "ANY", "TCP" or "UDP". Default value is "ANY"
- qos
Rule StringId - qosRuleId path parameter. Qos rule ID
- src
Port Integer - The source port of the incoming packet. Applicable only if protocol is TCP or UDP.
- src
Port StringRange - The source port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- vlan Integer
- The VLAN of the incoming packet. A null value will match any VLAN.
- dscp number
- DSCP tag. Set this to -1 to trust incoming DSCP. Default value is 0
- dst
Port number - The destination port of the incoming packet. Applicable only if protocol is TCP or UDP.
- dst
Port stringRange - The destination port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- network
Id string - networkId path parameter. Network ID
- protocol string
- The protocol of the incoming packet. Can be one of "ANY", "TCP" or "UDP". Default value is "ANY"
- qos
Rule stringId - qosRuleId path parameter. Qos rule ID
- src
Port number - The source port of the incoming packet. Applicable only if protocol is TCP or UDP.
- src
Port stringRange - The source port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- vlan number
- The VLAN of the incoming packet. A null value will match any VLAN.
- dscp int
- DSCP tag. Set this to -1 to trust incoming DSCP. Default value is 0
- dst_
port int - The destination port of the incoming packet. Applicable only if protocol is TCP or UDP.
- dst_
port_ strrange - The destination port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- network_
id str - networkId path parameter. Network ID
- protocol str
- The protocol of the incoming packet. Can be one of "ANY", "TCP" or "UDP". Default value is "ANY"
- qos_
rule_ strid - qosRuleId path parameter. Qos rule ID
- src_
port int - The source port of the incoming packet. Applicable only if protocol is TCP or UDP.
- src_
port_ strrange - The source port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- vlan int
- The VLAN of the incoming packet. A null value will match any VLAN.
- dscp Number
- DSCP tag. Set this to -1 to trust incoming DSCP. Default value is 0
- dst
Port Number - The destination port of the incoming packet. Applicable only if protocol is TCP or UDP.
- dst
Port StringRange - The destination port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- network
Id String - networkId path parameter. Network ID
- protocol String
- The protocol of the incoming packet. Can be one of "ANY", "TCP" or "UDP". Default value is "ANY"
- qos
Rule StringId - qosRuleId path parameter. Qos rule ID
- src
Port Number - The source port of the incoming packet. Applicable only if protocol is TCP or UDP.
- src
Port StringRange - The source port range of the incoming packet. Applicable only if protocol is set to TCP or UDP. Example: 70-80
- vlan Number
- The VLAN of the incoming packet. A null value will match any VLAN.
Import
$ pulumi import meraki:networks/switchQosRulesOrder:SwitchQosRulesOrder example "network_id,qos_rule_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.