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=[meraki.networks.SwitchLinkAggregationsSwitchPortArgs(
port_id="string",
serial="string",
)],
switch_profile_ports=[meraki.networks.SwitchLinkAggregationsSwitchProfilePortArgs(
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
The SwitchLinkAggregations resource accepts the following input properties:
- Network
Id string - networkId path parameter. Network ID
- Link
Aggregation stringId - linkAggregationId path parameter. Link aggregation ID
- Switch
Ports List<SwitchLink Aggregations Switch Port> - Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- Switch
Profile List<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 string - networkId path parameter. Network ID
- Link
Aggregation stringId - linkAggregationId path parameter. Link aggregation ID
- Switch
Ports []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 []SwitchPorts Link Aggregations Switch Profile Port Args - Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- network
Id String - networkId path parameter. Network ID
- link
Aggregation StringId - linkAggregationId path parameter. Link aggregation ID
- switch
Ports List<SwitchLink Aggregations Switch Port> - Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switch
Profile List<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 string - networkId path parameter. Network ID
- link
Aggregation stringId - linkAggregationId path parameter. Link aggregation ID
- switch
Ports SwitchLink Aggregations Switch Port[] - Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switch
Profile 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.
- network
Id String - networkId path parameter. Network ID
- link
Aggregation StringId - linkAggregationId path parameter. Link aggregation ID
- switch
Ports List<Property Map> - Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switch
Profile 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) -> SwitchLinkAggregations
func 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)
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.
- Link
Aggregation stringId - linkAggregationId path parameter. Link aggregation ID
- Network
Id string - networkId path parameter. Network ID
- Switch
Ports List<SwitchLink Aggregations Switch Port> - Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- Switch
Profile List<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 stringId - linkAggregationId path parameter. Link aggregation ID
- Network
Id string - networkId path parameter. Network ID
- Switch
Ports []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 []SwitchPorts Link Aggregations Switch Profile Port Args - Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- link
Aggregation StringId - linkAggregationId path parameter. Link aggregation ID
- network
Id String - networkId path parameter. Network ID
- switch
Ports List<SwitchLink Aggregations Switch Port> - Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switch
Profile List<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 stringId - linkAggregationId path parameter. Link aggregation ID
- network
Id string - networkId path parameter. Network ID
- switch
Ports SwitchLink Aggregations Switch Port[] - Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switch
Profile 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.
- link
Aggregation StringId - linkAggregationId path parameter. Link aggregation ID
- network
Id String - networkId path parameter. Network ID
- switch
Ports List<Property Map> - Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported.
- switch
Profile 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
meraki
Terraform Provider.