Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi
meraki.networks.getSwitchPortSchedules
Explore with Pulumi AI
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:
- Network
Id string - networkId path parameter. Network ID
- Network
Id string - networkId path parameter. Network ID
- network
Id String - networkId path parameter. Network ID
- network
Id string - networkId path parameter. Network ID
- network_
id str - networkId path parameter. Network ID
- network
Id 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<Get
Switch Port Schedules Item> - Array of ResponseSwitchGetNetworkSwitchPortSchedules
- Network
Id string - networkId path parameter. Network ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Switch Port Schedules Item - Array of ResponseSwitchGetNetworkSwitchPortSchedules
- Network
Id string - networkId path parameter. Network ID
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Switch Port Schedules Item> - Array of ResponseSwitchGetNetworkSwitchPortSchedules
- network
Id String - networkId path parameter. Network ID
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Switch Port Schedules Item[] - Array of ResponseSwitchGetNetworkSwitchPortSchedules
- network
Id string - networkId path parameter. Network ID
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Get
Switch Port Schedules Item] - 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
- network
Id String - networkId path parameter. Network ID
Supporting Types
GetSwitchPortSchedulesItem
- Id string
- Switch port schedule ID
- Name string
- Switch port schedule name
- Network
Id string - Network ID
- Port
Schedule GetSwitch Port Schedules Item Port Schedule - Port schedule
- Id string
- Switch port schedule ID
- Name string
- Switch port schedule name
- Network
Id string - Network ID
- Port
Schedule GetSwitch Port Schedules Item Port Schedule - Port schedule
- id String
- Switch port schedule ID
- name String
- Switch port schedule name
- network
Id String - Network ID
- port
Schedule GetSwitch Port Schedules Item Port Schedule - Port schedule
- id string
- Switch port schedule ID
- name string
- Switch port schedule name
- network
Id string - Network ID
- port
Schedule GetSwitch Port Schedules Item Port Schedule - Port schedule
- id str
- Switch port schedule ID
- name str
- Switch port schedule name
- network_
id str - Network ID
- port_
schedule GetSwitch Port Schedules Item Port Schedule - Port schedule
- id String
- Switch port schedule ID
- name String
- Switch port schedule name
- network
Id String - Network ID
- port
Schedule Property Map - Port schedule
GetSwitchPortSchedulesItemPortSchedule
- Friday
Get
Switch Port Schedules Item Port Schedule Friday - Friday schedule
- Monday
Get
Switch Port Schedules Item Port Schedule Monday - Monday schedule
- Saturday
Get
Switch Port Schedules Item Port Schedule Saturday - Saturday schedule
- Sunday
Get
Switch Port Schedules Item Port Schedule Sunday - Sunday schedule
- Thursday
Get
Switch Port Schedules Item Port Schedule Thursday - Thursday schedule
- Tuesday
Get
Switch Port Schedules Item Port Schedule Tuesday - Tuesday schedule
- Wednesday
Get
Switch Port Schedules Item Port Schedule Wednesday - Wednesday schedule
- Friday
Get
Switch Port Schedules Item Port Schedule Friday - Friday schedule
- Monday
Get
Switch Port Schedules Item Port Schedule Monday - Monday schedule
- Saturday
Get
Switch Port Schedules Item Port Schedule Saturday - Saturday schedule
- Sunday
Get
Switch Port Schedules Item Port Schedule Sunday - Sunday schedule
- Thursday
Get
Switch Port Schedules Item Port Schedule Thursday - Thursday schedule
- Tuesday
Get
Switch Port Schedules Item Port Schedule Tuesday - Tuesday schedule
- Wednesday
Get
Switch Port Schedules Item Port Schedule Wednesday - Wednesday schedule
- friday
Get
Switch Port Schedules Item Port Schedule Friday - Friday schedule
- monday
Get
Switch Port Schedules Item Port Schedule Monday - Monday schedule
- saturday
Get
Switch Port Schedules Item Port Schedule Saturday - Saturday schedule
- sunday
Get
Switch Port Schedules Item Port Schedule Sunday - Sunday schedule
- thursday
Get
Switch Port Schedules Item Port Schedule Thursday - Thursday schedule
- tuesday
Get
Switch Port Schedules Item Port Schedule Tuesday - Tuesday schedule
- wednesday
Get
Switch Port Schedules Item Port Schedule Wednesday - Wednesday schedule
- friday
Get
Switch Port Schedules Item Port Schedule Friday - Friday schedule
- monday
Get
Switch Port Schedules Item Port Schedule Monday - Monday schedule
- saturday
Get
Switch Port Schedules Item Port Schedule Saturday - Saturday schedule
- sunday
Get
Switch Port Schedules Item Port Schedule Sunday - Sunday schedule
- thursday
Get
Switch Port Schedules Item Port Schedule Thursday - Thursday schedule
- tuesday
Get
Switch Port Schedules Item Port Schedule Tuesday - Tuesday schedule
- wednesday
Get
Switch Port Schedules Item Port Schedule Wednesday - Wednesday schedule
- friday
Get
Switch Port Schedules Item Port Schedule Friday - Friday schedule
- monday
Get
Switch Port Schedules Item Port Schedule Monday - Monday schedule
- saturday
Get
Switch Port Schedules Item Port Schedule Saturday - Saturday schedule
- sunday
Get
Switch Port Schedules Item Port Schedule Sunday - Sunday schedule
- thursday
Get
Switch Port Schedules Item Port Schedule Thursday - Thursday schedule
- tuesday
Get
Switch Port Schedules Item Port Schedule Tuesday - Tuesday schedule
- wednesday
Get
Switch Port Schedules Item Port Schedule Wednesday - Wednesday schedule
- 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
GetSwitchPortSchedulesItemPortScheduleMonday
GetSwitchPortSchedulesItemPortScheduleSaturday
GetSwitchPortSchedulesItemPortScheduleSunday
GetSwitchPortSchedulesItemPortScheduleThursday
GetSwitchPortSchedulesItemPortScheduleTuesday
GetSwitchPortSchedulesItemPortScheduleWednesday
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.