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

meraki.networks.SwitchMtu

Explore with Pulumi AI

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

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.networks.SwitchMtu;
    import com.pulumi.meraki.networks.SwitchMtuArgs;
    import com.pulumi.meraki.networks.inputs.SwitchMtuOverrideArgs;
    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 SwitchMtu("example", SwitchMtuArgs.builder()
                .defaultMtuSize(9578)
                .networkId("string")
                .overrides(SwitchMtuOverrideArgs.builder()
                    .mtu_size(1500)
                    .switches(                
                        "Q234-ABCD-0001",
                        "Q234-ABCD-0002",
                        "Q234-ABCD-0003")
                    .build())
                .build());
    
            ctx.export("merakiNetworksSwitchMtuExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:networks:SwitchMtu
        properties:
          defaultMtuSize: 9578
          networkId: string
          overrides:
            - mtu_size: 1500
              switches:
                - Q234-ABCD-0001
                - Q234-ABCD-0002
                - Q234-ABCD-0003
    outputs:
      merakiNetworksSwitchMtuExample: ${example}
    

    Create SwitchMtu Resource

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

    Constructor syntax

    new SwitchMtu(name: string, args: SwitchMtuArgs, opts?: CustomResourceOptions);
    @overload
    def SwitchMtu(resource_name: str,
                  args: SwitchMtuArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def SwitchMtu(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  network_id: Optional[str] = None,
                  default_mtu_size: Optional[int] = None,
                  overrides: Optional[Sequence[SwitchMtuOverrideArgs]] = None)
    func NewSwitchMtu(ctx *Context, name string, args SwitchMtuArgs, opts ...ResourceOption) (*SwitchMtu, error)
    public SwitchMtu(string name, SwitchMtuArgs args, CustomResourceOptions? opts = null)
    public SwitchMtu(String name, SwitchMtuArgs args)
    public SwitchMtu(String name, SwitchMtuArgs args, CustomResourceOptions options)
    
    type: meraki:networks:SwitchMtu
    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 SwitchMtuArgs
    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 SwitchMtuArgs
    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 SwitchMtuArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SwitchMtuArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SwitchMtuArgs
    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 switchMtuResource = new Meraki.Networks.SwitchMtu("switchMtuResource", new()
    {
        NetworkId = "string",
        DefaultMtuSize = 0,
        Overrides = new[]
        {
            new Meraki.Networks.Inputs.SwitchMtuOverrideArgs
            {
                MtuSize = 0,
                SwitchProfiles = new[]
                {
                    "string",
                },
                Switches = new[]
                {
                    "string",
                },
            },
        },
    });
    
    example, err := networks.NewSwitchMtu(ctx, "switchMtuResource", &networks.SwitchMtuArgs{
    	NetworkId:      pulumi.String("string"),
    	DefaultMtuSize: pulumi.Int(0),
    	Overrides: networks.SwitchMtuOverrideArray{
    		&networks.SwitchMtuOverrideArgs{
    			MtuSize: pulumi.Int(0),
    			SwitchProfiles: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Switches: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var switchMtuResource = new SwitchMtu("switchMtuResource", SwitchMtuArgs.builder()
        .networkId("string")
        .defaultMtuSize(0)
        .overrides(SwitchMtuOverrideArgs.builder()
            .mtuSize(0)
            .switchProfiles("string")
            .switches("string")
            .build())
        .build());
    
    switch_mtu_resource = meraki.networks.SwitchMtu("switchMtuResource",
        network_id="string",
        default_mtu_size=0,
        overrides=[{
            "mtu_size": 0,
            "switch_profiles": ["string"],
            "switches": ["string"],
        }])
    
    const switchMtuResource = new meraki.networks.SwitchMtu("switchMtuResource", {
        networkId: "string",
        defaultMtuSize: 0,
        overrides: [{
            mtuSize: 0,
            switchProfiles: ["string"],
            switches: ["string"],
        }],
    });
    
    type: meraki:networks:SwitchMtu
    properties:
        defaultMtuSize: 0
        networkId: string
        overrides:
            - mtuSize: 0
              switchProfiles:
                - string
              switches:
                - string
    

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

    NetworkId string
    networkId path parameter. Network ID
    DefaultMtuSize int
    MTU size for the entire network. Default value is 9578.
    Overrides List<SwitchMtuOverride>
    Override MTU size for individual switches or switch templates. An empty array will clear overrides.
    NetworkId string
    networkId path parameter. Network ID
    DefaultMtuSize int
    MTU size for the entire network. Default value is 9578.
    Overrides []SwitchMtuOverrideArgs
    Override MTU size for individual switches or switch templates. An empty array will clear overrides.
    networkId String
    networkId path parameter. Network ID
    defaultMtuSize Integer
    MTU size for the entire network. Default value is 9578.
    overrides List<SwitchMtuOverride>
    Override MTU size for individual switches or switch templates. An empty array will clear overrides.
    networkId string
    networkId path parameter. Network ID
    defaultMtuSize number
    MTU size for the entire network. Default value is 9578.
    overrides SwitchMtuOverride[]
    Override MTU size for individual switches or switch templates. An empty array will clear overrides.
    network_id str
    networkId path parameter. Network ID
    default_mtu_size int
    MTU size for the entire network. Default value is 9578.
    overrides Sequence[SwitchMtuOverrideArgs]
    Override MTU size for individual switches or switch templates. An empty array will clear overrides.
    networkId String
    networkId path parameter. Network ID
    defaultMtuSize Number
    MTU size for the entire network. Default value is 9578.
    overrides List<Property Map>
    Override MTU size for individual switches or switch templates. An empty array will clear overrides.

    Outputs

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

    Get an existing SwitchMtu 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?: SwitchMtuState, opts?: CustomResourceOptions): SwitchMtu
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            default_mtu_size: Optional[int] = None,
            network_id: Optional[str] = None,
            overrides: Optional[Sequence[SwitchMtuOverrideArgs]] = None) -> SwitchMtu
    func GetSwitchMtu(ctx *Context, name string, id IDInput, state *SwitchMtuState, opts ...ResourceOption) (*SwitchMtu, error)
    public static SwitchMtu Get(string name, Input<string> id, SwitchMtuState? state, CustomResourceOptions? opts = null)
    public static SwitchMtu get(String name, Output<String> id, SwitchMtuState 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:
    DefaultMtuSize int
    MTU size for the entire network. Default value is 9578.
    NetworkId string
    networkId path parameter. Network ID
    Overrides List<SwitchMtuOverride>
    Override MTU size for individual switches or switch templates. An empty array will clear overrides.
    DefaultMtuSize int
    MTU size for the entire network. Default value is 9578.
    NetworkId string
    networkId path parameter. Network ID
    Overrides []SwitchMtuOverrideArgs
    Override MTU size for individual switches or switch templates. An empty array will clear overrides.
    defaultMtuSize Integer
    MTU size for the entire network. Default value is 9578.
    networkId String
    networkId path parameter. Network ID
    overrides List<SwitchMtuOverride>
    Override MTU size for individual switches or switch templates. An empty array will clear overrides.
    defaultMtuSize number
    MTU size for the entire network. Default value is 9578.
    networkId string
    networkId path parameter. Network ID
    overrides SwitchMtuOverride[]
    Override MTU size for individual switches or switch templates. An empty array will clear overrides.
    default_mtu_size int
    MTU size for the entire network. Default value is 9578.
    network_id str
    networkId path parameter. Network ID
    overrides Sequence[SwitchMtuOverrideArgs]
    Override MTU size for individual switches or switch templates. An empty array will clear overrides.
    defaultMtuSize Number
    MTU size for the entire network. Default value is 9578.
    networkId String
    networkId path parameter. Network ID
    overrides List<Property Map>
    Override MTU size for individual switches or switch templates. An empty array will clear overrides.

    Supporting Types

    SwitchMtuOverride, SwitchMtuOverrideArgs

    MtuSize int
    MTU size for the switches or switch templates.
    SwitchProfiles List<string>
    List of switch template IDs. Applicable only for template network.
    Switches List<string>
    List of switch serials. Applicable only for switch network.
    MtuSize int
    MTU size for the switches or switch templates.
    SwitchProfiles []string
    List of switch template IDs. Applicable only for template network.
    Switches []string
    List of switch serials. Applicable only for switch network.
    mtuSize Integer
    MTU size for the switches or switch templates.
    switchProfiles List<String>
    List of switch template IDs. Applicable only for template network.
    switches List<String>
    List of switch serials. Applicable only for switch network.
    mtuSize number
    MTU size for the switches or switch templates.
    switchProfiles string[]
    List of switch template IDs. Applicable only for template network.
    switches string[]
    List of switch serials. Applicable only for switch network.
    mtu_size int
    MTU size for the switches or switch templates.
    switch_profiles Sequence[str]
    List of switch template IDs. Applicable only for template network.
    switches Sequence[str]
    List of switch serials. Applicable only for switch network.
    mtuSize Number
    MTU size for the switches or switch templates.
    switchProfiles List<String>
    List of switch template IDs. Applicable only for template network.
    switches List<String>
    List of switch serials. Applicable only for switch network.

    Import

    $ pulumi import meraki:networks/switchMtu:SwitchMtu 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