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

meraki.networks.getSwitchAccessControlLists

Explore with Pulumi AI

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = meraki.networks.getSwitchAccessControlLists({
        networkId: "string",
    });
    export const merakiNetworksSwitchAccessControlListsExample = example.then(example => example.item);
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.networks.get_switch_access_control_lists(network_id="string")
    pulumi.export("merakiNetworksSwitchAccessControlListsExample", example.item)
    
    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.LookupSwitchAccessControlLists(ctx, &networks.LookupSwitchAccessControlListsArgs{
    			NetworkId: "string",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiNetworksSwitchAccessControlListsExample", example.Item)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Meraki.Networks.GetSwitchAccessControlLists.Invoke(new()
        {
            NetworkId = "string",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiNetworksSwitchAccessControlListsExample"] = example.Apply(getSwitchAccessControlListsResult => getSwitchAccessControlListsResult.Item),
        };
    });
    
    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.GetSwitchAccessControlListsArgs;
    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.getSwitchAccessControlLists(GetSwitchAccessControlListsArgs.builder()
                .networkId("string")
                .build());
    
            ctx.export("merakiNetworksSwitchAccessControlListsExample", example.applyValue(getSwitchAccessControlListsResult -> getSwitchAccessControlListsResult.item()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: meraki:networks:getSwitchAccessControlLists
          Arguments:
            networkId: string
    outputs:
      merakiNetworksSwitchAccessControlListsExample: ${example.item}
    

    Using getSwitchAccessControlLists

    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 getSwitchAccessControlLists(args: GetSwitchAccessControlListsArgs, opts?: InvokeOptions): Promise<GetSwitchAccessControlListsResult>
    function getSwitchAccessControlListsOutput(args: GetSwitchAccessControlListsOutputArgs, opts?: InvokeOptions): Output<GetSwitchAccessControlListsResult>
    def get_switch_access_control_lists(network_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetSwitchAccessControlListsResult
    def get_switch_access_control_lists_output(network_id: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetSwitchAccessControlListsResult]
    func LookupSwitchAccessControlLists(ctx *Context, args *LookupSwitchAccessControlListsArgs, opts ...InvokeOption) (*LookupSwitchAccessControlListsResult, error)
    func LookupSwitchAccessControlListsOutput(ctx *Context, args *LookupSwitchAccessControlListsOutputArgs, opts ...InvokeOption) LookupSwitchAccessControlListsResultOutput

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

    public static class GetSwitchAccessControlLists 
    {
        public static Task<GetSwitchAccessControlListsResult> InvokeAsync(GetSwitchAccessControlListsArgs args, InvokeOptions? opts = null)
        public static Output<GetSwitchAccessControlListsResult> Invoke(GetSwitchAccessControlListsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSwitchAccessControlListsResult> getSwitchAccessControlLists(GetSwitchAccessControlListsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: meraki:networks/getSwitchAccessControlLists:getSwitchAccessControlLists
      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

    getSwitchAccessControlLists Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Item GetSwitchAccessControlListsItem
    NetworkId string
    networkId path parameter. Network ID
    Id string
    The provider-assigned unique ID for this managed resource.
    Item GetSwitchAccessControlListsItem
    NetworkId string
    networkId path parameter. Network ID
    id String
    The provider-assigned unique ID for this managed resource.
    item GetSwitchAccessControlListsItem
    networkId String
    networkId path parameter. Network ID
    id string
    The provider-assigned unique ID for this managed resource.
    item GetSwitchAccessControlListsItem
    networkId string
    networkId path parameter. Network ID
    id str
    The provider-assigned unique ID for this managed resource.
    item GetSwitchAccessControlListsItem
    network_id str
    networkId path parameter. Network ID
    id String
    The provider-assigned unique ID for this managed resource.
    item Property Map
    networkId String
    networkId path parameter. Network ID

    Supporting Types

    GetSwitchAccessControlListsItem

    Rules List<GetSwitchAccessControlListsItemRule>
    An ordered array of the access control list rules
    Rules []GetSwitchAccessControlListsItemRule
    An ordered array of the access control list rules
    rules List<GetSwitchAccessControlListsItemRule>
    An ordered array of the access control list rules
    rules GetSwitchAccessControlListsItemRule[]
    An ordered array of the access control list rules
    rules Sequence[GetSwitchAccessControlListsItemRule]
    An ordered array of the access control list rules
    rules List<Property Map>
    An ordered array of the access control list rules

    GetSwitchAccessControlListsItemRule

    Comment string
    Description of the rule (optional)
    DstCidr string
    Destination IP address (in IP or CIDR notation)
    DstPort string
    Destination port
    IpVersion string
    IP address version
    Policy string
    'allow' or 'deny' traffic specified by this rule
    Protocol string
    The type of protocol
    SrcCidr string
    Source IP address (in IP or CIDR notation)
    SrcPort string
    Source port
    Vlan string
    ncoming traffic VLAN
    Comment string
    Description of the rule (optional)
    DstCidr string
    Destination IP address (in IP or CIDR notation)
    DstPort string
    Destination port
    IpVersion string
    IP address version
    Policy string
    'allow' or 'deny' traffic specified by this rule
    Protocol string
    The type of protocol
    SrcCidr string
    Source IP address (in IP or CIDR notation)
    SrcPort string
    Source port
    Vlan string
    ncoming traffic VLAN
    comment String
    Description of the rule (optional)
    dstCidr String
    Destination IP address (in IP or CIDR notation)
    dstPort String
    Destination port
    ipVersion String
    IP address version
    policy String
    'allow' or 'deny' traffic specified by this rule
    protocol String
    The type of protocol
    srcCidr String
    Source IP address (in IP or CIDR notation)
    srcPort String
    Source port
    vlan String
    ncoming traffic VLAN
    comment string
    Description of the rule (optional)
    dstCidr string
    Destination IP address (in IP or CIDR notation)
    dstPort string
    Destination port
    ipVersion string
    IP address version
    policy string
    'allow' or 'deny' traffic specified by this rule
    protocol string
    The type of protocol
    srcCidr string
    Source IP address (in IP or CIDR notation)
    srcPort string
    Source port
    vlan string
    ncoming traffic VLAN
    comment str
    Description of the rule (optional)
    dst_cidr str
    Destination IP address (in IP or CIDR notation)
    dst_port str
    Destination port
    ip_version str
    IP address version
    policy str
    'allow' or 'deny' traffic specified by this rule
    protocol str
    The type of protocol
    src_cidr str
    Source IP address (in IP or CIDR notation)
    src_port str
    Source port
    vlan str
    ncoming traffic VLAN
    comment String
    Description of the rule (optional)
    dstCidr String
    Destination IP address (in IP or CIDR notation)
    dstPort String
    Destination port
    ipVersion String
    IP address version
    policy String
    'allow' or 'deny' traffic specified by this rule
    protocol String
    The type of protocol
    srcCidr String
    Source IP address (in IP or CIDR notation)
    srcPort String
    Source port
    vlan String
    ncoming traffic VLAN

    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