meraki.networks.SwitchStp
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.SwitchStp;
import com.pulumi.meraki.networks.SwitchStpArgs;
import com.pulumi.meraki.networks.inputs.SwitchStpStpBridgePriorityArgs;
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 SwitchStp("example", SwitchStpArgs.builder()
.networkId("string")
.rstpEnabled(true)
.stpBridgePriorities(SwitchStpStpBridgePriorityArgs.builder()
.stp_priority(4096)
.switches(
"Q234-ABCD-0001",
"Q234-ABCD-0002",
"Q234-ABCD-0003")
.build())
.build());
ctx.export("merakiNetworksSwitchStpExample", example);
}
}
resources:
example:
type: meraki:networks:SwitchStp
properties:
networkId: string
rstpEnabled: true
stpBridgePriorities:
- stp_priority: 4096
switches:
- Q234-ABCD-0001
- Q234-ABCD-0002
- Q234-ABCD-0003
outputs:
merakiNetworksSwitchStpExample: ${example}
Create SwitchStp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SwitchStp(name: string, args: SwitchStpArgs, opts?: CustomResourceOptions);
@overload
def SwitchStp(resource_name: str,
args: SwitchStpArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SwitchStp(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
rstp_enabled: Optional[bool] = None,
stp_bridge_priorities: Optional[Sequence[SwitchStpStpBridgePriorityArgs]] = None)
func NewSwitchStp(ctx *Context, name string, args SwitchStpArgs, opts ...ResourceOption) (*SwitchStp, error)
public SwitchStp(string name, SwitchStpArgs args, CustomResourceOptions? opts = null)
public SwitchStp(String name, SwitchStpArgs args)
public SwitchStp(String name, SwitchStpArgs args, CustomResourceOptions options)
type: meraki:networks:SwitchStp
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 SwitchStpArgs
- 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 SwitchStpArgs
- 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 SwitchStpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SwitchStpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SwitchStpArgs
- 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 switchStpResource = new Meraki.Networks.SwitchStp("switchStpResource", new()
{
NetworkId = "string",
RstpEnabled = false,
StpBridgePriorities = new[]
{
new Meraki.Networks.Inputs.SwitchStpStpBridgePriorityArgs
{
Stacks = new[]
{
"string",
},
StpPriority = 0,
SwitchProfiles = new[]
{
"string",
},
Switches = new[]
{
"string",
},
},
},
});
example, err := networks.NewSwitchStp(ctx, "switchStpResource", &networks.SwitchStpArgs{
NetworkId: pulumi.String("string"),
RstpEnabled: pulumi.Bool(false),
StpBridgePriorities: networks.SwitchStpStpBridgePriorityArray{
&networks.SwitchStpStpBridgePriorityArgs{
Stacks: pulumi.StringArray{
pulumi.String("string"),
},
StpPriority: pulumi.Int(0),
SwitchProfiles: pulumi.StringArray{
pulumi.String("string"),
},
Switches: pulumi.StringArray{
pulumi.String("string"),
},
},
},
})
var switchStpResource = new SwitchStp("switchStpResource", SwitchStpArgs.builder()
.networkId("string")
.rstpEnabled(false)
.stpBridgePriorities(SwitchStpStpBridgePriorityArgs.builder()
.stacks("string")
.stpPriority(0)
.switchProfiles("string")
.switches("string")
.build())
.build());
switch_stp_resource = meraki.networks.SwitchStp("switchStpResource",
network_id="string",
rstp_enabled=False,
stp_bridge_priorities=[meraki.networks.SwitchStpStpBridgePriorityArgs(
stacks=["string"],
stp_priority=0,
switch_profiles=["string"],
switches=["string"],
)])
const switchStpResource = new meraki.networks.SwitchStp("switchStpResource", {
networkId: "string",
rstpEnabled: false,
stpBridgePriorities: [{
stacks: ["string"],
stpPriority: 0,
switchProfiles: ["string"],
switches: ["string"],
}],
});
type: meraki:networks:SwitchStp
properties:
networkId: string
rstpEnabled: false
stpBridgePriorities:
- stacks:
- string
stpPriority: 0
switchProfiles:
- string
switches:
- string
SwitchStp 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 SwitchStp resource accepts the following input properties:
- Network
Id string - networkId path parameter. Network ID
- Rstp
Enabled bool - The spanning tree protocol status in network
- Stp
Bridge List<SwitchPriorities Stp Stp Bridge Priority> - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- Network
Id string - networkId path parameter. Network ID
- Rstp
Enabled bool - The spanning tree protocol status in network
- Stp
Bridge []SwitchPriorities Stp Stp Bridge Priority Args - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- network
Id String - networkId path parameter. Network ID
- rstp
Enabled Boolean - The spanning tree protocol status in network
- stp
Bridge List<SwitchPriorities Stp Stp Bridge Priority> - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- network
Id string - networkId path parameter. Network ID
- rstp
Enabled boolean - The spanning tree protocol status in network
- stp
Bridge SwitchPriorities Stp Stp Bridge Priority[] - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- network_
id str - networkId path parameter. Network ID
- rstp_
enabled bool - The spanning tree protocol status in network
- stp_
bridge_ Sequence[Switchpriorities Stp Stp Bridge Priority Args] - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- network
Id String - networkId path parameter. Network ID
- rstp
Enabled Boolean - The spanning tree protocol status in network
- stp
Bridge List<Property Map>Priorities - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
Outputs
All input properties are implicitly available as output properties. Additionally, the SwitchStp resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Stp
Bridge List<SwitchPriority Responses Stp Stp Bridge Priority Response> - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- Id string
- The provider-assigned unique ID for this managed resource.
- Stp
Bridge []SwitchPriority Responses Stp Stp Bridge Priority Response - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- id String
- The provider-assigned unique ID for this managed resource.
- stp
Bridge List<SwitchPriority Responses Stp Stp Bridge Priority Response> - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- id string
- The provider-assigned unique ID for this managed resource.
- stp
Bridge SwitchPriority Responses Stp Stp Bridge Priority Response[] - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- id str
- The provider-assigned unique ID for this managed resource.
- stp_
bridge_ Sequence[Switchpriority_ responses Stp Stp Bridge Priority Response] - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- id String
- The provider-assigned unique ID for this managed resource.
- stp
Bridge List<Property Map>Priority Responses - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
Look up Existing SwitchStp Resource
Get an existing SwitchStp 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?: SwitchStpState, opts?: CustomResourceOptions): SwitchStp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
rstp_enabled: Optional[bool] = None,
stp_bridge_priorities: Optional[Sequence[SwitchStpStpBridgePriorityArgs]] = None,
stp_bridge_priority_responses: Optional[Sequence[SwitchStpStpBridgePriorityResponseArgs]] = None) -> SwitchStp
func GetSwitchStp(ctx *Context, name string, id IDInput, state *SwitchStpState, opts ...ResourceOption) (*SwitchStp, error)
public static SwitchStp Get(string name, Input<string> id, SwitchStpState? state, CustomResourceOptions? opts = null)
public static SwitchStp get(String name, Output<String> id, SwitchStpState 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.
- Network
Id string - networkId path parameter. Network ID
- Rstp
Enabled bool - The spanning tree protocol status in network
- Stp
Bridge List<SwitchPriorities Stp Stp Bridge Priority> - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- Stp
Bridge List<SwitchPriority Responses Stp Stp Bridge Priority Response> - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- Network
Id string - networkId path parameter. Network ID
- Rstp
Enabled bool - The spanning tree protocol status in network
- Stp
Bridge []SwitchPriorities Stp Stp Bridge Priority Args - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- Stp
Bridge []SwitchPriority Responses Stp Stp Bridge Priority Response Args - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- network
Id String - networkId path parameter. Network ID
- rstp
Enabled Boolean - The spanning tree protocol status in network
- stp
Bridge List<SwitchPriorities Stp Stp Bridge Priority> - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- stp
Bridge List<SwitchPriority Responses Stp Stp Bridge Priority Response> - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- network
Id string - networkId path parameter. Network ID
- rstp
Enabled boolean - The spanning tree protocol status in network
- stp
Bridge SwitchPriorities Stp Stp Bridge Priority[] - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- stp
Bridge SwitchPriority Responses Stp Stp Bridge Priority Response[] - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- network_
id str - networkId path parameter. Network ID
- rstp_
enabled bool - The spanning tree protocol status in network
- stp_
bridge_ Sequence[Switchpriorities Stp Stp Bridge Priority Args] - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- stp_
bridge_ Sequence[Switchpriority_ responses Stp Stp Bridge Priority Response Args] - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- network
Id String - networkId path parameter. Network ID
- rstp
Enabled Boolean - The spanning tree protocol status in network
- stp
Bridge List<Property Map>Priorities - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
- stp
Bridge List<Property Map>Priority Responses - STP bridge priority for switches/stacks or switch templates. An empty array will clear the STP bridge priority settings.
Supporting Types
SwitchStpStpBridgePriority, SwitchStpStpBridgePriorityArgs
- Stacks List<string>
- List of stack IDs
- Stp
Priority int - STP priority for switch, stacks, or switch profiles
- Switch
Profiles List<string> - List of switch profile IDs
- Switches List<string>
- List of switch serial numbers
- Stacks []string
- List of stack IDs
- Stp
Priority int - STP priority for switch, stacks, or switch profiles
- Switch
Profiles []string - List of switch profile IDs
- Switches []string
- List of switch serial numbers
- stacks List<String>
- List of stack IDs
- stp
Priority Integer - STP priority for switch, stacks, or switch profiles
- switch
Profiles List<String> - List of switch profile IDs
- switches List<String>
- List of switch serial numbers
- stacks string[]
- List of stack IDs
- stp
Priority number - STP priority for switch, stacks, or switch profiles
- switch
Profiles string[] - List of switch profile IDs
- switches string[]
- List of switch serial numbers
- stacks Sequence[str]
- List of stack IDs
- stp_
priority int - STP priority for switch, stacks, or switch profiles
- switch_
profiles Sequence[str] - List of switch profile IDs
- switches Sequence[str]
- List of switch serial numbers
- stacks List<String>
- List of stack IDs
- stp
Priority Number - STP priority for switch, stacks, or switch profiles
- switch
Profiles List<String> - List of switch profile IDs
- switches List<String>
- List of switch serial numbers
SwitchStpStpBridgePriorityResponse, SwitchStpStpBridgePriorityResponseArgs
- Stacks List<string>
- List of stack IDs
- Stp
Priority int - STP priority for switch, stacks, or switch templates
- Switch
Profiles List<string> - List of switch template IDs
- Switches List<string>
- List of switch serial numbers
- Stacks []string
- List of stack IDs
- Stp
Priority int - STP priority for switch, stacks, or switch templates
- Switch
Profiles []string - List of switch template IDs
- Switches []string
- List of switch serial numbers
- stacks List<String>
- List of stack IDs
- stp
Priority Integer - STP priority for switch, stacks, or switch templates
- switch
Profiles List<String> - List of switch template IDs
- switches List<String>
- List of switch serial numbers
- stacks string[]
- List of stack IDs
- stp
Priority number - STP priority for switch, stacks, or switch templates
- switch
Profiles string[] - List of switch template IDs
- switches string[]
- List of switch serial numbers
- stacks Sequence[str]
- List of stack IDs
- stp_
priority int - STP priority for switch, stacks, or switch templates
- switch_
profiles Sequence[str] - List of switch template IDs
- switches Sequence[str]
- List of switch serial numbers
- stacks List<String>
- List of stack IDs
- stp
Priority Number - STP priority for switch, stacks, or switch templates
- switch
Profiles List<String> - List of switch template IDs
- switches List<String>
- List of switch serial numbers
Import
$ pulumi import meraki:networks/switchStp:SwitchStp 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.