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

meraki.networks.CellularGatewayDhcp

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 = new meraki.networks.CellularGatewayDhcp("example", {
        dhcpLeaseTime: "1 hour",
        dnsCustomNameservers: [
            "172.16.2.111",
            "172.16.2.30",
        ],
        dnsNameservers: "custom",
        networkId: "string",
    });
    export const merakiNetworksCellularGatewayDhcpExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.networks.CellularGatewayDhcp("example",
        dhcp_lease_time="1 hour",
        dns_custom_nameservers=[
            "172.16.2.111",
            "172.16.2.30",
        ],
        dns_nameservers="custom",
        network_id="string")
    pulumi.export("merakiNetworksCellularGatewayDhcpExample", example)
    
    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.NewCellularGatewayDhcp(ctx, "example", &networks.CellularGatewayDhcpArgs{
    			DhcpLeaseTime: pulumi.String("1 hour"),
    			DnsCustomNameservers: pulumi.StringArray{
    				pulumi.String("172.16.2.111"),
    				pulumi.String("172.16.2.30"),
    			},
    			DnsNameservers: pulumi.String("custom"),
    			NetworkId:      pulumi.String("string"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiNetworksCellularGatewayDhcpExample", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Meraki.Networks.CellularGatewayDhcp("example", new()
        {
            DhcpLeaseTime = "1 hour",
            DnsCustomNameservers = new[]
            {
                "172.16.2.111",
                "172.16.2.30",
            },
            DnsNameservers = "custom",
            NetworkId = "string",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiNetworksCellularGatewayDhcpExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.networks.CellularGatewayDhcp;
    import com.pulumi.meraki.networks.CellularGatewayDhcpArgs;
    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 CellularGatewayDhcp("example", CellularGatewayDhcpArgs.builder()
                .dhcpLeaseTime("1 hour")
                .dnsCustomNameservers(            
                    "172.16.2.111",
                    "172.16.2.30")
                .dnsNameservers("custom")
                .networkId("string")
                .build());
    
            ctx.export("merakiNetworksCellularGatewayDhcpExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:networks:CellularGatewayDhcp
        properties:
          dhcpLeaseTime: 1 hour
          dnsCustomNameservers:
            - 172.16.2.111
            - 172.16.2.30
          dnsNameservers: custom
          networkId: string
    outputs:
      merakiNetworksCellularGatewayDhcpExample: ${example}
    

    Create CellularGatewayDhcp Resource

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

    Constructor syntax

    new CellularGatewayDhcp(name: string, args: CellularGatewayDhcpArgs, opts?: CustomResourceOptions);
    @overload
    def CellularGatewayDhcp(resource_name: str,
                            args: CellularGatewayDhcpArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def CellularGatewayDhcp(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            network_id: Optional[str] = None,
                            dhcp_lease_time: Optional[str] = None,
                            dns_custom_nameservers: Optional[Sequence[str]] = None,
                            dns_nameservers: Optional[str] = None)
    func NewCellularGatewayDhcp(ctx *Context, name string, args CellularGatewayDhcpArgs, opts ...ResourceOption) (*CellularGatewayDhcp, error)
    public CellularGatewayDhcp(string name, CellularGatewayDhcpArgs args, CustomResourceOptions? opts = null)
    public CellularGatewayDhcp(String name, CellularGatewayDhcpArgs args)
    public CellularGatewayDhcp(String name, CellularGatewayDhcpArgs args, CustomResourceOptions options)
    
    type: meraki:networks:CellularGatewayDhcp
    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 CellularGatewayDhcpArgs
    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 CellularGatewayDhcpArgs
    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 CellularGatewayDhcpArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CellularGatewayDhcpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CellularGatewayDhcpArgs
    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 cellularGatewayDhcpResource = new Meraki.Networks.CellularGatewayDhcp("cellularGatewayDhcpResource", new()
    {
        NetworkId = "string",
        DhcpLeaseTime = "string",
        DnsCustomNameservers = new[]
        {
            "string",
        },
        DnsNameservers = "string",
    });
    
    example, err := networks.NewCellularGatewayDhcp(ctx, "cellularGatewayDhcpResource", &networks.CellularGatewayDhcpArgs{
    	NetworkId:     pulumi.String("string"),
    	DhcpLeaseTime: pulumi.String("string"),
    	DnsCustomNameservers: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DnsNameservers: pulumi.String("string"),
    })
    
    var cellularGatewayDhcpResource = new CellularGatewayDhcp("cellularGatewayDhcpResource", CellularGatewayDhcpArgs.builder()
        .networkId("string")
        .dhcpLeaseTime("string")
        .dnsCustomNameservers("string")
        .dnsNameservers("string")
        .build());
    
    cellular_gateway_dhcp_resource = meraki.networks.CellularGatewayDhcp("cellularGatewayDhcpResource",
        network_id="string",
        dhcp_lease_time="string",
        dns_custom_nameservers=["string"],
        dns_nameservers="string")
    
    const cellularGatewayDhcpResource = new meraki.networks.CellularGatewayDhcp("cellularGatewayDhcpResource", {
        networkId: "string",
        dhcpLeaseTime: "string",
        dnsCustomNameservers: ["string"],
        dnsNameservers: "string",
    });
    
    type: meraki:networks:CellularGatewayDhcp
    properties:
        dhcpLeaseTime: string
        dnsCustomNameservers:
            - string
        dnsNameservers: string
        networkId: string
    

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

    NetworkId string
    networkId path parameter. Network ID
    DhcpLeaseTime string
    DHCP Lease time for all MG in the network.
    DnsCustomNameservers List<string>
    List of fixed IPs representing the the DNS Name servers when the mode is 'custom'.
    DnsNameservers string
    DNS name servers mode for all MG in the network.
    NetworkId string
    networkId path parameter. Network ID
    DhcpLeaseTime string
    DHCP Lease time for all MG in the network.
    DnsCustomNameservers []string
    List of fixed IPs representing the the DNS Name servers when the mode is 'custom'.
    DnsNameservers string
    DNS name servers mode for all MG in the network.
    networkId String
    networkId path parameter. Network ID
    dhcpLeaseTime String
    DHCP Lease time for all MG in the network.
    dnsCustomNameservers List<String>
    List of fixed IPs representing the the DNS Name servers when the mode is 'custom'.
    dnsNameservers String
    DNS name servers mode for all MG in the network.
    networkId string
    networkId path parameter. Network ID
    dhcpLeaseTime string
    DHCP Lease time for all MG in the network.
    dnsCustomNameservers string[]
    List of fixed IPs representing the the DNS Name servers when the mode is 'custom'.
    dnsNameservers string
    DNS name servers mode for all MG in the network.
    network_id str
    networkId path parameter. Network ID
    dhcp_lease_time str
    DHCP Lease time for all MG in the network.
    dns_custom_nameservers Sequence[str]
    List of fixed IPs representing the the DNS Name servers when the mode is 'custom'.
    dns_nameservers str
    DNS name servers mode for all MG in the network.
    networkId String
    networkId path parameter. Network ID
    dhcpLeaseTime String
    DHCP Lease time for all MG in the network.
    dnsCustomNameservers List<String>
    List of fixed IPs representing the the DNS Name servers when the mode is 'custom'.
    dnsNameservers String
    DNS name servers mode for all MG in the network.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CellularGatewayDhcp Resource

    Get an existing CellularGatewayDhcp 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?: CellularGatewayDhcpState, opts?: CustomResourceOptions): CellularGatewayDhcp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dhcp_lease_time: Optional[str] = None,
            dns_custom_nameservers: Optional[Sequence[str]] = None,
            dns_nameservers: Optional[str] = None,
            network_id: Optional[str] = None) -> CellularGatewayDhcp
    func GetCellularGatewayDhcp(ctx *Context, name string, id IDInput, state *CellularGatewayDhcpState, opts ...ResourceOption) (*CellularGatewayDhcp, error)
    public static CellularGatewayDhcp Get(string name, Input<string> id, CellularGatewayDhcpState? state, CustomResourceOptions? opts = null)
    public static CellularGatewayDhcp get(String name, Output<String> id, CellularGatewayDhcpState 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.
    The following state arguments are supported:
    DhcpLeaseTime string
    DHCP Lease time for all MG in the network.
    DnsCustomNameservers List<string>
    List of fixed IPs representing the the DNS Name servers when the mode is 'custom'.
    DnsNameservers string
    DNS name servers mode for all MG in the network.
    NetworkId string
    networkId path parameter. Network ID
    DhcpLeaseTime string
    DHCP Lease time for all MG in the network.
    DnsCustomNameservers []string
    List of fixed IPs representing the the DNS Name servers when the mode is 'custom'.
    DnsNameservers string
    DNS name servers mode for all MG in the network.
    NetworkId string
    networkId path parameter. Network ID
    dhcpLeaseTime String
    DHCP Lease time for all MG in the network.
    dnsCustomNameservers List<String>
    List of fixed IPs representing the the DNS Name servers when the mode is 'custom'.
    dnsNameservers String
    DNS name servers mode for all MG in the network.
    networkId String
    networkId path parameter. Network ID
    dhcpLeaseTime string
    DHCP Lease time for all MG in the network.
    dnsCustomNameservers string[]
    List of fixed IPs representing the the DNS Name servers when the mode is 'custom'.
    dnsNameservers string
    DNS name servers mode for all MG in the network.
    networkId string
    networkId path parameter. Network ID
    dhcp_lease_time str
    DHCP Lease time for all MG in the network.
    dns_custom_nameservers Sequence[str]
    List of fixed IPs representing the the DNS Name servers when the mode is 'custom'.
    dns_nameservers str
    DNS name servers mode for all MG in the network.
    network_id str
    networkId path parameter. Network ID
    dhcpLeaseTime String
    DHCP Lease time for all MG in the network.
    dnsCustomNameservers List<String>
    List of fixed IPs representing the the DNS Name servers when the mode is 'custom'.
    dnsNameservers String
    DNS name servers mode for all MG in the network.
    networkId String
    networkId path parameter. Network ID

    Import

    $ pulumi import meraki:networks/cellularGatewayDhcp:CellularGatewayDhcp example "network_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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