meraki.networks.SwitchMtu
Explore with Pulumi AI
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:
- Network
Id string - networkId path parameter. Network ID
- Default
Mtu intSize - MTU size for the entire network. Default value is 9578.
- Overrides
List<Switch
Mtu Override> - Override MTU size for individual switches or switch templates. An empty array will clear overrides.
- Network
Id string - networkId path parameter. Network ID
- Default
Mtu intSize - MTU size for the entire network. Default value is 9578.
- Overrides
[]Switch
Mtu Override Args - Override MTU size for individual switches or switch templates. An empty array will clear overrides.
- network
Id String - networkId path parameter. Network ID
- default
Mtu IntegerSize - MTU size for the entire network. Default value is 9578.
- overrides
List<Switch
Mtu Override> - Override MTU size for individual switches or switch templates. An empty array will clear overrides.
- network
Id string - networkId path parameter. Network ID
- default
Mtu numberSize - MTU size for the entire network. Default value is 9578.
- overrides
Switch
Mtu Override[] - 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_ intsize - MTU size for the entire network. Default value is 9578.
- overrides
Sequence[Switch
Mtu Override Args] - Override MTU size for individual switches or switch templates. An empty array will clear overrides.
- network
Id String - networkId path parameter. Network ID
- default
Mtu NumberSize - 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.
- Default
Mtu intSize - MTU size for the entire network. Default value is 9578.
- Network
Id string - networkId path parameter. Network ID
- Overrides
List<Switch
Mtu Override> - Override MTU size for individual switches or switch templates. An empty array will clear overrides.
- Default
Mtu intSize - MTU size for the entire network. Default value is 9578.
- Network
Id string - networkId path parameter. Network ID
- Overrides
[]Switch
Mtu Override Args - Override MTU size for individual switches or switch templates. An empty array will clear overrides.
- default
Mtu IntegerSize - MTU size for the entire network. Default value is 9578.
- network
Id String - networkId path parameter. Network ID
- overrides
List<Switch
Mtu Override> - Override MTU size for individual switches or switch templates. An empty array will clear overrides.
- default
Mtu numberSize - MTU size for the entire network. Default value is 9578.
- network
Id string - networkId path parameter. Network ID
- overrides
Switch
Mtu Override[] - Override MTU size for individual switches or switch templates. An empty array will clear overrides.
- default_
mtu_ intsize - MTU size for the entire network. Default value is 9578.
- network_
id str - networkId path parameter. Network ID
- overrides
Sequence[Switch
Mtu Override Args] - Override MTU size for individual switches or switch templates. An empty array will clear overrides.
- default
Mtu NumberSize - MTU size for the entire network. Default value is 9578.
- network
Id 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
- Mtu
Size int - MTU size for the switches or switch templates.
- Switch
Profiles List<string> - List of switch template IDs. Applicable only for template network.
- Switches List<string>
- List of switch serials. Applicable only for switch network.
- Mtu
Size int - MTU size for the switches or switch templates.
- Switch
Profiles []string - List of switch template IDs. Applicable only for template network.
- Switches []string
- List of switch serials. Applicable only for switch network.
- mtu
Size Integer - MTU size for the switches or switch templates.
- switch
Profiles List<String> - List of switch template IDs. Applicable only for template network.
- switches List<String>
- List of switch serials. Applicable only for switch network.
- mtu
Size number - MTU size for the switches or switch templates.
- switch
Profiles 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.
- mtu
Size Number - MTU size for the switches or switch templates.
- switch
Profiles 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.