Cisco Meraki v0.4.1 published on Saturday, Mar 15, 2025 by Pulumi
meraki.devices.getCellularGatewayPortForwardingRules
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = meraki.devices.getCellularGatewayPortForwardingRules({
    serial: "string",
});
export const merakiDevicesCellularGatewayPortForwardingRulesExample = example.then(example => example.item);
import pulumi
import pulumi_meraki as meraki
example = meraki.devices.get_cellular_gateway_port_forwarding_rules(serial="string")
pulumi.export("merakiDevicesCellularGatewayPortForwardingRulesExample", example.item)
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.LookupCellularGatewayPortForwardingRules(ctx, &devices.LookupCellularGatewayPortForwardingRulesArgs{
			Serial: "string",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("merakiDevicesCellularGatewayPortForwardingRulesExample", example.Item)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() => 
{
    var example = Meraki.Devices.GetCellularGatewayPortForwardingRules.Invoke(new()
    {
        Serial = "string",
    });
    return new Dictionary<string, object?>
    {
        ["merakiDevicesCellularGatewayPortForwardingRulesExample"] = example.Apply(getCellularGatewayPortForwardingRulesResult => getCellularGatewayPortForwardingRulesResult.Item),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.devices.DevicesFunctions;
import com.pulumi.meraki.devices.inputs.GetCellularGatewayPortForwardingRulesArgs;
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 = DevicesFunctions.getCellularGatewayPortForwardingRules(GetCellularGatewayPortForwardingRulesArgs.builder()
            .serial("string")
            .build());
        ctx.export("merakiDevicesCellularGatewayPortForwardingRulesExample", example.applyValue(getCellularGatewayPortForwardingRulesResult -> getCellularGatewayPortForwardingRulesResult.item()));
    }
}
variables:
  example:
    fn::invoke:
      function: meraki:devices:getCellularGatewayPortForwardingRules
      arguments:
        serial: string
outputs:
  merakiDevicesCellularGatewayPortForwardingRulesExample: ${example.item}
Using getCellularGatewayPortForwardingRules
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 getCellularGatewayPortForwardingRules(args: GetCellularGatewayPortForwardingRulesArgs, opts?: InvokeOptions): Promise<GetCellularGatewayPortForwardingRulesResult>
function getCellularGatewayPortForwardingRulesOutput(args: GetCellularGatewayPortForwardingRulesOutputArgs, opts?: InvokeOptions): Output<GetCellularGatewayPortForwardingRulesResult>def get_cellular_gateway_port_forwarding_rules(serial: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetCellularGatewayPortForwardingRulesResult
def get_cellular_gateway_port_forwarding_rules_output(serial: Optional[pulumi.Input[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetCellularGatewayPortForwardingRulesResult]func LookupCellularGatewayPortForwardingRules(ctx *Context, args *LookupCellularGatewayPortForwardingRulesArgs, opts ...InvokeOption) (*LookupCellularGatewayPortForwardingRulesResult, error)
func LookupCellularGatewayPortForwardingRulesOutput(ctx *Context, args *LookupCellularGatewayPortForwardingRulesOutputArgs, opts ...InvokeOption) LookupCellularGatewayPortForwardingRulesResultOutput> Note: This function is named LookupCellularGatewayPortForwardingRules in the Go SDK.
public static class GetCellularGatewayPortForwardingRules 
{
    public static Task<GetCellularGatewayPortForwardingRulesResult> InvokeAsync(GetCellularGatewayPortForwardingRulesArgs args, InvokeOptions? opts = null)
    public static Output<GetCellularGatewayPortForwardingRulesResult> Invoke(GetCellularGatewayPortForwardingRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCellularGatewayPortForwardingRulesResult> getCellularGatewayPortForwardingRules(GetCellularGatewayPortForwardingRulesArgs args, InvokeOptions options)
public static Output<GetCellularGatewayPortForwardingRulesResult> getCellularGatewayPortForwardingRules(GetCellularGatewayPortForwardingRulesArgs args, InvokeOptions options)
fn::invoke:
  function: meraki:devices/getCellularGatewayPortForwardingRules:getCellularGatewayPortForwardingRules
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Serial string
- serial path parameter.
- Serial string
- serial path parameter.
- serial String
- serial path parameter.
- serial string
- serial path parameter.
- serial str
- serial path parameter.
- serial String
- serial path parameter.
getCellularGatewayPortForwardingRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
GetCellular Gateway Port Forwarding Rules Item 
- Serial string
- serial path parameter.
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
GetCellular Gateway Port Forwarding Rules Item 
- Serial string
- serial path parameter.
- id String
- The provider-assigned unique ID for this managed resource.
- item
GetCellular Gateway Port Forwarding Rules Item 
- serial String
- serial path parameter.
- id string
- The provider-assigned unique ID for this managed resource.
- item
GetCellular Gateway Port Forwarding Rules Item 
- serial string
- serial path parameter.
- id str
- The provider-assigned unique ID for this managed resource.
- item
GetCellular Gateway Port Forwarding Rules Item 
- serial str
- serial path parameter.
- id String
- The provider-assigned unique ID for this managed resource.
- item Property Map
- serial String
- serial path parameter.
Supporting Types
GetCellularGatewayPortForwardingRulesItem      
GetCellularGatewayPortForwardingRulesItemRule       
- access str
- lan_ip str
- local_port str
- name str
- protocol str
- public_port str
- uplink str
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the merakiTerraform Provider.
