meraki.networks.SwitchLinkAggregations
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.SwitchLinkAggregations;
import com.pulumi.meraki.networks.SwitchLinkAggregationsArgs;
import com.pulumi.meraki.networks.inputs.SwitchLinkAggregationsSwitchPortArgs;
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 SwitchLinkAggregations("example", SwitchLinkAggregationsArgs.builder()
            .networkId("string")
            .switchPorts(SwitchLinkAggregationsSwitchPortArgs.builder()
                .port_id("1")
                .serial("Q234-ABCD-0001")
                .build())
            .build());
        ctx.export("merakiNetworksSwitchLinkAggregationsExample", example);
    }
}
resources:
  example:
    type: meraki:networks:SwitchLinkAggregations
    properties:
      networkId: string
      switchPorts:
        - port_id: '1'
          serial: Q234-ABCD-0001
outputs:
  merakiNetworksSwitchLinkAggregationsExample: ${example}
Create SwitchLinkAggregations Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SwitchLinkAggregations(name: string, args: SwitchLinkAggregationsArgs, opts?: CustomResourceOptions);@overload
def SwitchLinkAggregations(resource_name: str,
                           args: SwitchLinkAggregationsArgs,
                           opts: Optional[ResourceOptions] = None)
@overload
def SwitchLinkAggregations(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           network_id: Optional[str] = None,
                           link_aggregation_id: Optional[str] = None,
                           switch_ports: Optional[Sequence[SwitchLinkAggregationsSwitchPortArgs]] = None,
                           switch_profile_ports: Optional[Sequence[SwitchLinkAggregationsSwitchProfilePortArgs]] = None)func NewSwitchLinkAggregations(ctx *Context, name string, args SwitchLinkAggregationsArgs, opts ...ResourceOption) (*SwitchLinkAggregations, error)public SwitchLinkAggregations(string name, SwitchLinkAggregationsArgs args, CustomResourceOptions? opts = null)
public SwitchLinkAggregations(String name, SwitchLinkAggregationsArgs args)
public SwitchLinkAggregations(String name, SwitchLinkAggregationsArgs args, CustomResourceOptions options)
type: meraki:networks:SwitchLinkAggregations
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 SwitchLinkAggregationsArgs
- 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 SwitchLinkAggregationsArgs
- 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 SwitchLinkAggregationsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SwitchLinkAggregationsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SwitchLinkAggregationsArgs
- 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 switchLinkAggregationsResource = new Meraki.Networks.SwitchLinkAggregations("switchLinkAggregationsResource", new()
{
    NetworkId = "string",
    LinkAggregationId = "string",
    SwitchPorts = new[]
    {
        new Meraki.Networks.Inputs.SwitchLinkAggregationsSwitchPortArgs
        {
            PortId = "string",
            Serial = "string",
        },
    },
    SwitchProfilePorts = new[]
    {
        new Meraki.Networks.Inputs.SwitchLinkAggregationsSwitchProfilePortArgs
        {
            PortId = "string",
            Profile = "string",
        },
    },
});
example, err := networks.NewSwitchLinkAggregations(ctx, "switchLinkAggregationsResource", &networks.SwitchLinkAggregationsArgs{
	NetworkId:         pulumi.String("string"),
	LinkAggregationId: pulumi.String("string"),
	SwitchPorts: networks.SwitchLinkAggregationsSwitchPortArray{
		&networks.SwitchLinkAggregationsSwitchPortArgs{
			PortId: pulumi.String("string"),
			Serial: pulumi.String("string"),
		},
	},
	SwitchProfilePorts: networks.SwitchLinkAggregationsSwitchProfilePortArray{
		&networks.SwitchLinkAggregationsSwitchProfilePortArgs{
			PortId:  pulumi.String("string"),
			Profile: pulumi.String("string"),
		},
	},
})
var switchLinkAggregationsResource = new SwitchLinkAggregations("switchLinkAggregationsResource", SwitchLinkAggregationsArgs.builder()
    .networkId("string")
    .linkAggregationId("string")
    .switchPorts(SwitchLinkAggregationsSwitchPortArgs.builder()
        .portId("string")
        .serial("string")
        .build())
    .switchProfilePorts(SwitchLinkAggregationsSwitchProfilePortArgs.builder()
        .portId("string")
        .profile("string")
        .build())
    .build());
switch_link_aggregations_resource = meraki.networks.SwitchLinkAggregations("switchLinkAggregationsResource",
    network_id="string",
    link_aggregation_id="string",
    switch_ports=[{
        "port_id": "string",
        "serial": "string",
    }],
    switch_profile_ports=[{
        "port_id": "string",
        "profile": "string",
    }])
const switchLinkAggregationsResource = new meraki.networks.SwitchLinkAggregations("switchLinkAggregationsResource", {
    networkId: "string",
    linkAggregationId: "string",
    switchPorts: [{
        portId: "string",
        serial: "string",
    }],
    switchProfilePorts: [{
        portId: "string",
        profile: "string",
    }],
});
type: meraki:networks:SwitchLinkAggregations
properties:
    linkAggregationId: string
    networkId: string
    switchPorts:
        - portId: string
          serial: string
    switchProfilePorts:
        - portId: string
          profile: string
SwitchLinkAggregations 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 SwitchLinkAggregations resource accepts the following input properties:
- NetworkId string
- networkId path parameter. Network ID
- LinkAggregation stringId 
- linkAggregationId path parameter. Link aggregation ID
- SwitchPorts List<SwitchLink Aggregations Switch Port> 
- Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- SwitchProfile List<SwitchPorts Link Aggregations Switch Profile Port> 
- Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- NetworkId string
- networkId path parameter. Network ID
- LinkAggregation stringId 
- linkAggregationId path parameter. Link aggregation ID
- SwitchPorts []SwitchLink Aggregations Switch Port Args 
- Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- SwitchProfile []SwitchPorts Link Aggregations Switch Profile Port Args 
- Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- networkId String
- networkId path parameter. Network ID
- linkAggregation StringId 
- linkAggregationId path parameter. Link aggregation ID
- switchPorts List<SwitchLink Aggregations Switch Port> 
- Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switchProfile List<SwitchPorts Link Aggregations Switch Profile Port> 
- Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- networkId string
- networkId path parameter. Network ID
- linkAggregation stringId 
- linkAggregationId path parameter. Link aggregation ID
- switchPorts SwitchLink Aggregations Switch Port[] 
- Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switchProfile SwitchPorts Link Aggregations Switch Profile Port[] 
- Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- network_id str
- networkId path parameter. Network ID
- link_aggregation_ strid 
- linkAggregationId path parameter. Link aggregation ID
- switch_ports Sequence[SwitchLink Aggregations Switch Port Args] 
- Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switch_profile_ Sequence[Switchports Link Aggregations Switch Profile Port Args] 
- Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- networkId String
- networkId path parameter. Network ID
- linkAggregation StringId 
- linkAggregationId path parameter. Link aggregation ID
- switchPorts List<Property Map>
- Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switchProfile List<Property Map>Ports 
- Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
Outputs
All input properties are implicitly available as output properties. Additionally, the SwitchLinkAggregations 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 SwitchLinkAggregations Resource
Get an existing SwitchLinkAggregations 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?: SwitchLinkAggregationsState, opts?: CustomResourceOptions): SwitchLinkAggregations@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        link_aggregation_id: Optional[str] = None,
        network_id: Optional[str] = None,
        switch_ports: Optional[Sequence[SwitchLinkAggregationsSwitchPortArgs]] = None,
        switch_profile_ports: Optional[Sequence[SwitchLinkAggregationsSwitchProfilePortArgs]] = None) -> SwitchLinkAggregationsfunc GetSwitchLinkAggregations(ctx *Context, name string, id IDInput, state *SwitchLinkAggregationsState, opts ...ResourceOption) (*SwitchLinkAggregations, error)public static SwitchLinkAggregations Get(string name, Input<string> id, SwitchLinkAggregationsState? state, CustomResourceOptions? opts = null)public static SwitchLinkAggregations get(String name, Output<String> id, SwitchLinkAggregationsState state, CustomResourceOptions options)resources:  _:    type: meraki:networks:SwitchLinkAggregations    get:      id: ${id}- 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.
- LinkAggregation stringId 
- linkAggregationId path parameter. Link aggregation ID
- NetworkId string
- networkId path parameter. Network ID
- SwitchPorts List<SwitchLink Aggregations Switch Port> 
- Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- SwitchProfile List<SwitchPorts Link Aggregations Switch Profile Port> 
- Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- LinkAggregation stringId 
- linkAggregationId path parameter. Link aggregation ID
- NetworkId string
- networkId path parameter. Network ID
- SwitchPorts []SwitchLink Aggregations Switch Port Args 
- Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- SwitchProfile []SwitchPorts Link Aggregations Switch Profile Port Args 
- Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- linkAggregation StringId 
- linkAggregationId path parameter. Link aggregation ID
- networkId String
- networkId path parameter. Network ID
- switchPorts List<SwitchLink Aggregations Switch Port> 
- Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switchProfile List<SwitchPorts Link Aggregations Switch Profile Port> 
- Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- linkAggregation stringId 
- linkAggregationId path parameter. Link aggregation ID
- networkId string
- networkId path parameter. Network ID
- switchPorts SwitchLink Aggregations Switch Port[] 
- Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switchProfile SwitchPorts Link Aggregations Switch Profile Port[] 
- Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- link_aggregation_ strid 
- linkAggregationId path parameter. Link aggregation ID
- network_id str
- networkId path parameter. Network ID
- switch_ports Sequence[SwitchLink Aggregations Switch Port Args] 
- Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switch_profile_ Sequence[Switchports Link Aggregations Switch Profile Port Args] 
- Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- linkAggregation StringId 
- linkAggregationId path parameter. Link aggregation ID
- networkId String
- networkId path parameter. Network ID
- switchPorts List<Property Map>
- Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switchProfile List<Property Map>Ports 
- Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
Supporting Types
SwitchLinkAggregationsSwitchPort, SwitchLinkAggregationsSwitchPortArgs          
SwitchLinkAggregationsSwitchProfilePort, SwitchLinkAggregationsSwitchProfilePortArgs            
Import
$ pulumi import meraki:networks/switchLinkAggregations:SwitchLinkAggregations 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 merakiTerraform Provider.
