1. Packages
  2. Cisco Meraki
  3. API Docs
  4. networks
  5. getSwitchPortSchedules
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

meraki.networks.getSwitchPortSchedules

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = meraki.networks.getSwitchPortSchedules({
        networkId: "string",
    });
    export const merakiNetworksSwitchPortSchedulesExample = example.then(example => example.items);
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.networks.get_switch_port_schedules(network_id="string")
    pulumi.export("merakiNetworksSwitchPortSchedulesExample", example.items)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/networks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := networks.LookupSwitchPortSchedules(ctx, &networks.LookupSwitchPortSchedulesArgs{
    			NetworkId: "string",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiNetworksSwitchPortSchedulesExample", example.Items)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Meraki.Networks.GetSwitchPortSchedules.Invoke(new()
        {
            NetworkId = "string",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiNetworksSwitchPortSchedulesExample"] = example.Apply(getSwitchPortSchedulesResult => getSwitchPortSchedulesResult.Items),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.networks.NetworksFunctions;
    import com.pulumi.meraki.networks.inputs.GetSwitchPortSchedulesArgs;
    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) {
            final var example = NetworksFunctions.getSwitchPortSchedules(GetSwitchPortSchedulesArgs.builder()
                .networkId("string")
                .build());
    
            ctx.export("merakiNetworksSwitchPortSchedulesExample", example.applyValue(getSwitchPortSchedulesResult -> getSwitchPortSchedulesResult.items()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: meraki:networks:getSwitchPortSchedules
          Arguments:
            networkId: string
    outputs:
      merakiNetworksSwitchPortSchedulesExample: ${example.items}
    

    Using getSwitchPortSchedules

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSwitchPortSchedules(args: GetSwitchPortSchedulesArgs, opts?: InvokeOptions): Promise<GetSwitchPortSchedulesResult>
    function getSwitchPortSchedulesOutput(args: GetSwitchPortSchedulesOutputArgs, opts?: InvokeOptions): Output<GetSwitchPortSchedulesResult>
    def get_switch_port_schedules(network_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetSwitchPortSchedulesResult
    def get_switch_port_schedules_output(network_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetSwitchPortSchedulesResult]
    func LookupSwitchPortSchedules(ctx *Context, args *LookupSwitchPortSchedulesArgs, opts ...InvokeOption) (*LookupSwitchPortSchedulesResult, error)
    func LookupSwitchPortSchedulesOutput(ctx *Context, args *LookupSwitchPortSchedulesOutputArgs, opts ...InvokeOption) LookupSwitchPortSchedulesResultOutput

    > Note: This function is named LookupSwitchPortSchedules in the Go SDK.

    public static class GetSwitchPortSchedules 
    {
        public static Task<GetSwitchPortSchedulesResult> InvokeAsync(GetSwitchPortSchedulesArgs args, InvokeOptions? opts = null)
        public static Output<GetSwitchPortSchedulesResult> Invoke(GetSwitchPortSchedulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSwitchPortSchedulesResult> getSwitchPortSchedules(GetSwitchPortSchedulesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: meraki:networks/getSwitchPortSchedules:getSwitchPortSchedules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NetworkId string
    networkId path parameter. Network ID
    NetworkId string
    networkId path parameter. Network ID
    networkId String
    networkId path parameter. Network ID
    networkId string
    networkId path parameter. Network ID
    network_id str
    networkId path parameter. Network ID
    networkId String
    networkId path parameter. Network ID

    getSwitchPortSchedules Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetSwitchPortSchedulesItem>
    Array of ResponseSwitchGetNetworkSwitchPortSchedules
    NetworkId string
    networkId path parameter. Network ID
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetSwitchPortSchedulesItem
    Array of ResponseSwitchGetNetworkSwitchPortSchedules
    NetworkId string
    networkId path parameter. Network ID
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetSwitchPortSchedulesItem>
    Array of ResponseSwitchGetNetworkSwitchPortSchedules
    networkId String
    networkId path parameter. Network ID
    id string
    The provider-assigned unique ID for this managed resource.
    items GetSwitchPortSchedulesItem[]
    Array of ResponseSwitchGetNetworkSwitchPortSchedules
    networkId string
    networkId path parameter. Network ID
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetSwitchPortSchedulesItem]
    Array of ResponseSwitchGetNetworkSwitchPortSchedules
    network_id str
    networkId path parameter. Network ID
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    Array of ResponseSwitchGetNetworkSwitchPortSchedules
    networkId String
    networkId path parameter. Network ID

    Supporting Types

    GetSwitchPortSchedulesItem

    Id string
    Switch port schedule ID
    Name string
    Switch port schedule name
    NetworkId string
    Network ID
    PortSchedule GetSwitchPortSchedulesItemPortSchedule
    Port schedule
    Id string
    Switch port schedule ID
    Name string
    Switch port schedule name
    NetworkId string
    Network ID
    PortSchedule GetSwitchPortSchedulesItemPortSchedule
    Port schedule
    id String
    Switch port schedule ID
    name String
    Switch port schedule name
    networkId String
    Network ID
    portSchedule GetSwitchPortSchedulesItemPortSchedule
    Port schedule
    id string
    Switch port schedule ID
    name string
    Switch port schedule name
    networkId string
    Network ID
    portSchedule GetSwitchPortSchedulesItemPortSchedule
    Port schedule
    id str
    Switch port schedule ID
    name str
    Switch port schedule name
    network_id str
    Network ID
    port_schedule GetSwitchPortSchedulesItemPortSchedule
    Port schedule
    id String
    Switch port schedule ID
    name String
    Switch port schedule name
    networkId String
    Network ID
    portSchedule Property Map
    Port schedule

    GetSwitchPortSchedulesItemPortSchedule

    friday Property Map
    Friday schedule
    monday Property Map
    Monday schedule
    saturday Property Map
    Saturday schedule
    sunday Property Map
    Sunday schedule
    thursday Property Map
    Thursday schedule
    tuesday Property Map
    Tuesday schedule
    wednesday Property Map
    Wednesday schedule

    GetSwitchPortSchedulesItemPortScheduleFriday

    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'
    active boolean
    Whether the schedule is active or inactive
    from string
    The time, from '00:00' to '24:00'
    to string
    The time, from '00:00' to '24:00'
    active bool
    Whether the schedule is active or inactive
    from_ str
    The time, from '00:00' to '24:00'
    to str
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'

    GetSwitchPortSchedulesItemPortScheduleMonday

    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'
    active boolean
    Whether the schedule is active or inactive
    from string
    The time, from '00:00' to '24:00'
    to string
    The time, from '00:00' to '24:00'
    active bool
    Whether the schedule is active or inactive
    from_ str
    The time, from '00:00' to '24:00'
    to str
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'

    GetSwitchPortSchedulesItemPortScheduleSaturday

    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'
    active boolean
    Whether the schedule is active or inactive
    from string
    The time, from '00:00' to '24:00'
    to string
    The time, from '00:00' to '24:00'
    active bool
    Whether the schedule is active or inactive
    from_ str
    The time, from '00:00' to '24:00'
    to str
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'

    GetSwitchPortSchedulesItemPortScheduleSunday

    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'
    active boolean
    Whether the schedule is active or inactive
    from string
    The time, from '00:00' to '24:00'
    to string
    The time, from '00:00' to '24:00'
    active bool
    Whether the schedule is active or inactive
    from_ str
    The time, from '00:00' to '24:00'
    to str
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'

    GetSwitchPortSchedulesItemPortScheduleThursday

    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'
    active boolean
    Whether the schedule is active or inactive
    from string
    The time, from '00:00' to '24:00'
    to string
    The time, from '00:00' to '24:00'
    active bool
    Whether the schedule is active or inactive
    from_ str
    The time, from '00:00' to '24:00'
    to str
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'

    GetSwitchPortSchedulesItemPortScheduleTuesday

    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'
    active boolean
    Whether the schedule is active or inactive
    from string
    The time, from '00:00' to '24:00'
    to string
    The time, from '00:00' to '24:00'
    active bool
    Whether the schedule is active or inactive
    from_ str
    The time, from '00:00' to '24:00'
    to str
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'

    GetSwitchPortSchedulesItemPortScheduleWednesday

    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    Active bool
    Whether the schedule is active or inactive
    From string
    The time, from '00:00' to '24:00'
    To string
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'
    active boolean
    Whether the schedule is active or inactive
    from string
    The time, from '00:00' to '24:00'
    to string
    The time, from '00:00' to '24:00'
    active bool
    Whether the schedule is active or inactive
    from_ str
    The time, from '00:00' to '24:00'
    to str
    The time, from '00:00' to '24:00'
    active Boolean
    Whether the schedule is active or inactive
    from String
    The time, from '00:00' to '24:00'
    to String
    The time, from '00:00' to '24:00'

    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.2.4 published on Friday, Jun 14, 2024 by Pulumi