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

meraki.devices.SwitchPortsCycle

Explore with Pulumi AI

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

    ~>Warning: This resource does not represent a real-world entity in Meraki Dashboard, therefore changing or deleting this resource on its own has no immediate effect. Instead, it is a task part of a Meraki Dashboard workflow. It is executed in Meraki without any additional verification. It does not check if it was executed before or if a similar configuration or action already existed previously.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.devices.SwitchPortsCycle("example", {
        serial: "string",
        parameters: {
            ports: [
                "1",
                "2-5",
                "1_MA-MOD-8X10G_1",
                "1_MA-MOD-8X10G_2-1_MA-MOD-8X10G_8",
            ],
        },
    });
    export const merakiDevicesSwitchPortsCycleExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.devices.SwitchPortsCycle("example",
        serial="string",
        parameters={
            "ports": [
                "1",
                "2-5",
                "1_MA-MOD-8X10G_1",
                "1_MA-MOD-8X10G_2-1_MA-MOD-8X10G_8",
            ],
        })
    pulumi.export("merakiDevicesSwitchPortsCycleExample", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/devices"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := devices.NewSwitchPortsCycle(ctx, "example", &devices.SwitchPortsCycleArgs{
    			Serial: pulumi.String("string"),
    			Parameters: &devices.SwitchPortsCycleParametersArgs{
    				Ports: pulumi.StringArray{
    					pulumi.String("1"),
    					pulumi.String("2-5"),
    					pulumi.String("1_MA-MOD-8X10G_1"),
    					pulumi.String("1_MA-MOD-8X10G_2-1_MA-MOD-8X10G_8"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiDevicesSwitchPortsCycleExample", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Meraki.Devices.SwitchPortsCycle("example", new()
        {
            Serial = "string",
            Parameters = new Meraki.Devices.Inputs.SwitchPortsCycleParametersArgs
            {
                Ports = new[]
                {
                    "1",
                    "2-5",
                    "1_MA-MOD-8X10G_1",
                    "1_MA-MOD-8X10G_2-1_MA-MOD-8X10G_8",
                },
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiDevicesSwitchPortsCycleExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.devices.SwitchPortsCycle;
    import com.pulumi.meraki.devices.SwitchPortsCycleArgs;
    import com.pulumi.meraki.devices.inputs.SwitchPortsCycleParametersArgs;
    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 SwitchPortsCycle("example", SwitchPortsCycleArgs.builder()
                .serial("string")
                .parameters(SwitchPortsCycleParametersArgs.builder()
                    .ports(                
                        "1",
                        "2-5",
                        "1_MA-MOD-8X10G_1",
                        "1_MA-MOD-8X10G_2-1_MA-MOD-8X10G_8")
                    .build())
                .build());
    
            ctx.export("merakiDevicesSwitchPortsCycleExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:devices:SwitchPortsCycle
        properties:
          serial: string
          parameters:
            ports:
              - '1'
              - 2-5
              - 1_MA-MOD-8X10G_1
              - 1_MA-MOD-8X10G_2-1_MA-MOD-8X10G_8
    outputs:
      merakiDevicesSwitchPortsCycleExample: ${example}
    

    Create SwitchPortsCycle Resource

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

    Constructor syntax

    new SwitchPortsCycle(name: string, args: SwitchPortsCycleArgs, opts?: CustomResourceOptions);
    @overload
    def SwitchPortsCycle(resource_name: str,
                         args: SwitchPortsCycleArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def SwitchPortsCycle(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         parameters: Optional[SwitchPortsCycleParametersArgs] = None,
                         serial: Optional[str] = None)
    func NewSwitchPortsCycle(ctx *Context, name string, args SwitchPortsCycleArgs, opts ...ResourceOption) (*SwitchPortsCycle, error)
    public SwitchPortsCycle(string name, SwitchPortsCycleArgs args, CustomResourceOptions? opts = null)
    public SwitchPortsCycle(String name, SwitchPortsCycleArgs args)
    public SwitchPortsCycle(String name, SwitchPortsCycleArgs args, CustomResourceOptions options)
    
    type: meraki:devices:SwitchPortsCycle
    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 SwitchPortsCycleArgs
    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 SwitchPortsCycleArgs
    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 SwitchPortsCycleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SwitchPortsCycleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SwitchPortsCycleArgs
    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 switchPortsCycleResource = new Meraki.Devices.SwitchPortsCycle("switchPortsCycleResource", new()
    {
        Parameters = new Meraki.Devices.Inputs.SwitchPortsCycleParametersArgs
        {
            Ports = new[]
            {
                "string",
            },
        },
        Serial = "string",
    });
    
    example, err := devices.NewSwitchPortsCycle(ctx, "switchPortsCycleResource", &devices.SwitchPortsCycleArgs{
    	Parameters: &devices.SwitchPortsCycleParametersArgs{
    		Ports: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Serial: pulumi.String("string"),
    })
    
    var switchPortsCycleResource = new SwitchPortsCycle("switchPortsCycleResource", SwitchPortsCycleArgs.builder()
        .parameters(SwitchPortsCycleParametersArgs.builder()
            .ports("string")
            .build())
        .serial("string")
        .build());
    
    switch_ports_cycle_resource = meraki.devices.SwitchPortsCycle("switchPortsCycleResource",
        parameters={
            "ports": ["string"],
        },
        serial="string")
    
    const switchPortsCycleResource = new meraki.devices.SwitchPortsCycle("switchPortsCycleResource", {
        parameters: {
            ports: ["string"],
        },
        serial: "string",
    });
    
    type: meraki:devices:SwitchPortsCycle
    properties:
        parameters:
            ports:
                - string
        serial: string
    

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

    Parameters SwitchPortsCycleParameters
    Serial string
    serial path parameter.
    parameters SwitchPortsCycleParameters
    serial String
    serial path parameter.
    parameters SwitchPortsCycleParameters
    serial string
    serial path parameter.
    parameters Property Map
    serial String
    serial path parameter.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SwitchPortsCycle resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Item SwitchPortsCycleItem
    Id string
    The provider-assigned unique ID for this managed resource.
    Item SwitchPortsCycleItem
    id String
    The provider-assigned unique ID for this managed resource.
    item SwitchPortsCycleItem
    id string
    The provider-assigned unique ID for this managed resource.
    item SwitchPortsCycleItem
    id str
    The provider-assigned unique ID for this managed resource.
    item SwitchPortsCycleItem
    id String
    The provider-assigned unique ID for this managed resource.
    item Property Map

    Look up Existing SwitchPortsCycle Resource

    Get an existing SwitchPortsCycle 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?: SwitchPortsCycleState, opts?: CustomResourceOptions): SwitchPortsCycle
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            item: Optional[SwitchPortsCycleItemArgs] = None,
            parameters: Optional[SwitchPortsCycleParametersArgs] = None,
            serial: Optional[str] = None) -> SwitchPortsCycle
    func GetSwitchPortsCycle(ctx *Context, name string, id IDInput, state *SwitchPortsCycleState, opts ...ResourceOption) (*SwitchPortsCycle, error)
    public static SwitchPortsCycle Get(string name, Input<string> id, SwitchPortsCycleState? state, CustomResourceOptions? opts = null)
    public static SwitchPortsCycle get(String name, Output<String> id, SwitchPortsCycleState 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.

    Supporting Types

    SwitchPortsCycleItem, SwitchPortsCycleItemArgs

    Ports List<string>
    List of switch ports
    Ports []string
    List of switch ports
    ports List<String>
    List of switch ports
    ports string[]
    List of switch ports
    ports Sequence[str]
    List of switch ports
    ports List<String>
    List of switch ports

    SwitchPortsCycleParameters, SwitchPortsCycleParametersArgs

    Ports List<string>
    List of switch ports
    Ports []string
    List of switch ports
    ports List<String>
    List of switch ports
    ports string[]
    List of switch ports
    ports Sequence[str]
    List of switch ports
    ports List<String>
    List of switch ports

    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