1. Packages
  2. Meraki Provider
  3. API Docs
  4. networks
  5. SwitchDscpToCosMappings
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

meraki.networks.SwitchDscpToCosMappings

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.networks.SwitchDscpToCosMappings("example", {
        mappings: [{
            cos: 1,
            dscp: 1,
            title: "Video",
        }],
        networkId: "string",
    });
    export const merakiNetworksSwitchDscpToCosMappingsExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.networks.SwitchDscpToCosMappings("example",
        mappings=[{
            "cos": 1,
            "dscp": 1,
            "title": "Video",
        }],
        network_id="string")
    pulumi.export("merakiNetworksSwitchDscpToCosMappingsExample", 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.NewSwitchDscpToCosMappings(ctx, "example", &networks.SwitchDscpToCosMappingsArgs{
    			Mappings: networks.SwitchDscpToCosMappingsMappingArray{
    				&networks.SwitchDscpToCosMappingsMappingArgs{
    					Cos:   pulumi.Int(1),
    					Dscp:  pulumi.Int(1),
    					Title: pulumi.String("Video"),
    				},
    			},
    			NetworkId: pulumi.String("string"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiNetworksSwitchDscpToCosMappingsExample", 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.SwitchDscpToCosMappings("example", new()
        {
            Mappings = new[]
            {
                new Meraki.Networks.Inputs.SwitchDscpToCosMappingsMappingArgs
                {
                    Cos = 1,
                    Dscp = 1,
                    Title = "Video",
                },
            },
            NetworkId = "string",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiNetworksSwitchDscpToCosMappingsExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.networks.SwitchDscpToCosMappings;
    import com.pulumi.meraki.networks.SwitchDscpToCosMappingsArgs;
    import com.pulumi.meraki.networks.inputs.SwitchDscpToCosMappingsMappingArgs;
    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 SwitchDscpToCosMappings("example", SwitchDscpToCosMappingsArgs.builder()
                .mappings(SwitchDscpToCosMappingsMappingArgs.builder()
                    .cos(1)
                    .dscp(1)
                    .title("Video")
                    .build())
                .networkId("string")
                .build());
    
            ctx.export("merakiNetworksSwitchDscpToCosMappingsExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:networks:SwitchDscpToCosMappings
        properties:
          mappings:
            - cos: 1
              dscp: 1
              title: Video
          networkId: string
    outputs:
      merakiNetworksSwitchDscpToCosMappingsExample: ${example}
    

    Create SwitchDscpToCosMappings Resource

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

    Constructor syntax

    new SwitchDscpToCosMappings(name: string, args: SwitchDscpToCosMappingsArgs, opts?: CustomResourceOptions);
    @overload
    def SwitchDscpToCosMappings(resource_name: str,
                                args: SwitchDscpToCosMappingsArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def SwitchDscpToCosMappings(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                network_id: Optional[str] = None,
                                mappings: Optional[Sequence[SwitchDscpToCosMappingsMappingArgs]] = None)
    func NewSwitchDscpToCosMappings(ctx *Context, name string, args SwitchDscpToCosMappingsArgs, opts ...ResourceOption) (*SwitchDscpToCosMappings, error)
    public SwitchDscpToCosMappings(string name, SwitchDscpToCosMappingsArgs args, CustomResourceOptions? opts = null)
    public SwitchDscpToCosMappings(String name, SwitchDscpToCosMappingsArgs args)
    public SwitchDscpToCosMappings(String name, SwitchDscpToCosMappingsArgs args, CustomResourceOptions options)
    
    type: meraki:networks:SwitchDscpToCosMappings
    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 SwitchDscpToCosMappingsArgs
    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 SwitchDscpToCosMappingsArgs
    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 SwitchDscpToCosMappingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SwitchDscpToCosMappingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SwitchDscpToCosMappingsArgs
    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 switchDscpToCosMappingsResource = new Meraki.Networks.SwitchDscpToCosMappings("switchDscpToCosMappingsResource", new()
    {
        NetworkId = "string",
        Mappings = new[]
        {
            new Meraki.Networks.Inputs.SwitchDscpToCosMappingsMappingArgs
            {
                Cos = 0,
                Dscp = 0,
                Title = "string",
            },
        },
    });
    
    example, err := networks.NewSwitchDscpToCosMappings(ctx, "switchDscpToCosMappingsResource", &networks.SwitchDscpToCosMappingsArgs{
    	NetworkId: pulumi.String("string"),
    	Mappings: networks.SwitchDscpToCosMappingsMappingArray{
    		&networks.SwitchDscpToCosMappingsMappingArgs{
    			Cos:   pulumi.Int(0),
    			Dscp:  pulumi.Int(0),
    			Title: pulumi.String("string"),
    		},
    	},
    })
    
    var switchDscpToCosMappingsResource = new SwitchDscpToCosMappings("switchDscpToCosMappingsResource", SwitchDscpToCosMappingsArgs.builder()
        .networkId("string")
        .mappings(SwitchDscpToCosMappingsMappingArgs.builder()
            .cos(0)
            .dscp(0)
            .title("string")
            .build())
        .build());
    
    switch_dscp_to_cos_mappings_resource = meraki.networks.SwitchDscpToCosMappings("switchDscpToCosMappingsResource",
        network_id="string",
        mappings=[meraki.networks.SwitchDscpToCosMappingsMappingArgs(
            cos=0,
            dscp=0,
            title="string",
        )])
    
    const switchDscpToCosMappingsResource = new meraki.networks.SwitchDscpToCosMappings("switchDscpToCosMappingsResource", {
        networkId: "string",
        mappings: [{
            cos: 0,
            dscp: 0,
            title: "string",
        }],
    });
    
    type: meraki:networks:SwitchDscpToCosMappings
    properties:
        mappings:
            - cos: 0
              dscp: 0
              title: string
        networkId: string
    

    SwitchDscpToCosMappings 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 SwitchDscpToCosMappings resource accepts the following input properties:

    NetworkId string
    networkId path parameter. Network ID
    Mappings List<SwitchDscpToCosMappingsMapping>
    An array of DSCP to CoS mappings. An empty array will reset the mappings to default.
    NetworkId string
    networkId path parameter. Network ID
    Mappings []SwitchDscpToCosMappingsMappingArgs
    An array of DSCP to CoS mappings. An empty array will reset the mappings to default.
    networkId String
    networkId path parameter. Network ID
    mappings List<SwitchDscpToCosMappingsMapping>
    An array of DSCP to CoS mappings. An empty array will reset the mappings to default.
    networkId string
    networkId path parameter. Network ID
    mappings SwitchDscpToCosMappingsMapping[]
    An array of DSCP to CoS mappings. An empty array will reset the mappings to default.
    network_id str
    networkId path parameter. Network ID
    mappings Sequence[SwitchDscpToCosMappingsMappingArgs]
    An array of DSCP to CoS mappings. An empty array will reset the mappings to default.
    networkId String
    networkId path parameter. Network ID
    mappings List<Property Map>
    An array of DSCP to CoS mappings. An empty array will reset the mappings to default.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SwitchDscpToCosMappings 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 SwitchDscpToCosMappings Resource

    Get an existing SwitchDscpToCosMappings 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?: SwitchDscpToCosMappingsState, opts?: CustomResourceOptions): SwitchDscpToCosMappings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            mappings: Optional[Sequence[SwitchDscpToCosMappingsMappingArgs]] = None,
            network_id: Optional[str] = None) -> SwitchDscpToCosMappings
    func GetSwitchDscpToCosMappings(ctx *Context, name string, id IDInput, state *SwitchDscpToCosMappingsState, opts ...ResourceOption) (*SwitchDscpToCosMappings, error)
    public static SwitchDscpToCosMappings Get(string name, Input<string> id, SwitchDscpToCosMappingsState? state, CustomResourceOptions? opts = null)
    public static SwitchDscpToCosMappings get(String name, Output<String> id, SwitchDscpToCosMappingsState 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:
    Mappings List<SwitchDscpToCosMappingsMapping>
    An array of DSCP to CoS mappings. An empty array will reset the mappings to default.
    NetworkId string
    networkId path parameter. Network ID
    Mappings []SwitchDscpToCosMappingsMappingArgs
    An array of DSCP to CoS mappings. An empty array will reset the mappings to default.
    NetworkId string
    networkId path parameter. Network ID
    mappings List<SwitchDscpToCosMappingsMapping>
    An array of DSCP to CoS mappings. An empty array will reset the mappings to default.
    networkId String
    networkId path parameter. Network ID
    mappings SwitchDscpToCosMappingsMapping[]
    An array of DSCP to CoS mappings. An empty array will reset the mappings to default.
    networkId string
    networkId path parameter. Network ID
    mappings Sequence[SwitchDscpToCosMappingsMappingArgs]
    An array of DSCP to CoS mappings. An empty array will reset the mappings to default.
    network_id str
    networkId path parameter. Network ID
    mappings List<Property Map>
    An array of DSCP to CoS mappings. An empty array will reset the mappings to default.
    networkId String
    networkId path parameter. Network ID

    Supporting Types

    SwitchDscpToCosMappingsMapping, SwitchDscpToCosMappingsMappingArgs

    Cos int
    The actual layer-2 CoS queue the DSCP value is mapped to. These are not bits set on outgoing frames. Value can be in the range of 0 to 5 inclusive.
    Dscp int
    The Differentiated Services Code Point (DSCP) tag in the IP header that will be mapped to a particular Class-of-Service (CoS) queue. Value can be in the range of 0 to 63 inclusive.
    Title string
    Label for the mapping (optional).
    Cos int
    The actual layer-2 CoS queue the DSCP value is mapped to. These are not bits set on outgoing frames. Value can be in the range of 0 to 5 inclusive.
    Dscp int
    The Differentiated Services Code Point (DSCP) tag in the IP header that will be mapped to a particular Class-of-Service (CoS) queue. Value can be in the range of 0 to 63 inclusive.
    Title string
    Label for the mapping (optional).
    cos Integer
    The actual layer-2 CoS queue the DSCP value is mapped to. These are not bits set on outgoing frames. Value can be in the range of 0 to 5 inclusive.
    dscp Integer
    The Differentiated Services Code Point (DSCP) tag in the IP header that will be mapped to a particular Class-of-Service (CoS) queue. Value can be in the range of 0 to 63 inclusive.
    title String
    Label for the mapping (optional).
    cos number
    The actual layer-2 CoS queue the DSCP value is mapped to. These are not bits set on outgoing frames. Value can be in the range of 0 to 5 inclusive.
    dscp number
    The Differentiated Services Code Point (DSCP) tag in the IP header that will be mapped to a particular Class-of-Service (CoS) queue. Value can be in the range of 0 to 63 inclusive.
    title string
    Label for the mapping (optional).
    cos int
    The actual layer-2 CoS queue the DSCP value is mapped to. These are not bits set on outgoing frames. Value can be in the range of 0 to 5 inclusive.
    dscp int
    The Differentiated Services Code Point (DSCP) tag in the IP header that will be mapped to a particular Class-of-Service (CoS) queue. Value can be in the range of 0 to 63 inclusive.
    title str
    Label for the mapping (optional).
    cos Number
    The actual layer-2 CoS queue the DSCP value is mapped to. These are not bits set on outgoing frames. Value can be in the range of 0 to 5 inclusive.
    dscp Number
    The Differentiated Services Code Point (DSCP) tag in the IP header that will be mapped to a particular Class-of-Service (CoS) queue. Value can be in the range of 0 to 63 inclusive.
    title String
    Label for the mapping (optional).

    Import

    $ pulumi import meraki:networks/switchDscpToCosMappings:SwitchDscpToCosMappings example "network_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.
    meraki logo
    Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi