1. Packages
  2. Cisco Meraki
  3. API Docs
  4. networks
  5. CellularGatewaySubnetPool
Cisco Meraki v0.2.0 published on Friday, May 24, 2024 by Pulumi

meraki.networks.CellularGatewaySubnetPool

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.0 published on Friday, May 24, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.networks.CellularGatewaySubnetPool("example", {
        cidr: "192.168.0.0/16",
        mask: 24,
        networkId: "string",
    });
    export const merakiNetworksCellularGatewaySubnetPoolExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.networks.CellularGatewaySubnetPool("example",
        cidr="192.168.0.0/16",
        mask=24,
        network_id="string")
    pulumi.export("merakiNetworksCellularGatewaySubnetPoolExample", 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.NewCellularGatewaySubnetPool(ctx, "example", &networks.CellularGatewaySubnetPoolArgs{
    			Cidr:      pulumi.String("192.168.0.0/16"),
    			Mask:      pulumi.Int(24),
    			NetworkId: pulumi.String("string"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiNetworksCellularGatewaySubnetPoolExample", 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.CellularGatewaySubnetPool("example", new()
        {
            Cidr = "192.168.0.0/16",
            Mask = 24,
            NetworkId = "string",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiNetworksCellularGatewaySubnetPoolExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.networks.CellularGatewaySubnetPool;
    import com.pulumi.meraki.networks.CellularGatewaySubnetPoolArgs;
    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 CellularGatewaySubnetPool("example", CellularGatewaySubnetPoolArgs.builder()
                .cidr("192.168.0.0/16")
                .mask(24)
                .networkId("string")
                .build());
    
            ctx.export("merakiNetworksCellularGatewaySubnetPoolExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:networks:CellularGatewaySubnetPool
        properties:
          cidr: 192.168.0.0/16
          mask: 24
          networkId: string
    outputs:
      merakiNetworksCellularGatewaySubnetPoolExample: ${example}
    

    Create CellularGatewaySubnetPool Resource

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

    Constructor syntax

    new CellularGatewaySubnetPool(name: string, args: CellularGatewaySubnetPoolArgs, opts?: CustomResourceOptions);
    @overload
    def CellularGatewaySubnetPool(resource_name: str,
                                  args: CellularGatewaySubnetPoolArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def CellularGatewaySubnetPool(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  network_id: Optional[str] = None,
                                  cidr: Optional[str] = None,
                                  mask: Optional[int] = None)
    func NewCellularGatewaySubnetPool(ctx *Context, name string, args CellularGatewaySubnetPoolArgs, opts ...ResourceOption) (*CellularGatewaySubnetPool, error)
    public CellularGatewaySubnetPool(string name, CellularGatewaySubnetPoolArgs args, CustomResourceOptions? opts = null)
    public CellularGatewaySubnetPool(String name, CellularGatewaySubnetPoolArgs args)
    public CellularGatewaySubnetPool(String name, CellularGatewaySubnetPoolArgs args, CustomResourceOptions options)
    
    type: meraki:networks:CellularGatewaySubnetPool
    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 CellularGatewaySubnetPoolArgs
    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 CellularGatewaySubnetPoolArgs
    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 CellularGatewaySubnetPoolArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CellularGatewaySubnetPoolArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CellularGatewaySubnetPoolArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var cellularGatewaySubnetPoolResource = new Meraki.Networks.CellularGatewaySubnetPool("cellularGatewaySubnetPoolResource", new()
    {
        NetworkId = "string",
        Cidr = "string",
        Mask = 0,
    });
    
    example, err := networks.NewCellularGatewaySubnetPool(ctx, "cellularGatewaySubnetPoolResource", &networks.CellularGatewaySubnetPoolArgs{
    	NetworkId: pulumi.String("string"),
    	Cidr:      pulumi.String("string"),
    	Mask:      pulumi.Int(0),
    })
    
    var cellularGatewaySubnetPoolResource = new CellularGatewaySubnetPool("cellularGatewaySubnetPoolResource", CellularGatewaySubnetPoolArgs.builder()        
        .networkId("string")
        .cidr("string")
        .mask(0)
        .build());
    
    cellular_gateway_subnet_pool_resource = meraki.networks.CellularGatewaySubnetPool("cellularGatewaySubnetPoolResource",
        network_id="string",
        cidr="string",
        mask=0)
    
    const cellularGatewaySubnetPoolResource = new meraki.networks.CellularGatewaySubnetPool("cellularGatewaySubnetPoolResource", {
        networkId: "string",
        cidr: "string",
        mask: 0,
    });
    
    type: meraki:networks:CellularGatewaySubnetPool
    properties:
        cidr: string
        mask: 0
        networkId: string
    

    CellularGatewaySubnetPool Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The CellularGatewaySubnetPool resource accepts the following input properties:

    NetworkId string
    networkId path parameter. Network ID
    Cidr string
    CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
    Mask int
    Mask used for the subnet of all MGs in this network.
    NetworkId string
    networkId path parameter. Network ID
    Cidr string
    CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
    Mask int
    Mask used for the subnet of all MGs in this network.
    networkId String
    networkId path parameter. Network ID
    cidr String
    CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
    mask Integer
    Mask used for the subnet of all MGs in this network.
    networkId string
    networkId path parameter. Network ID
    cidr string
    CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
    mask number
    Mask used for the subnet of all MGs in this network.
    network_id str
    networkId path parameter. Network ID
    cidr str
    CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
    mask int
    Mask used for the subnet of all MGs in this network.
    networkId String
    networkId path parameter. Network ID
    cidr String
    CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
    mask Number
    Mask used for the subnet of all MGs in this network.

    Outputs

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

    DeploymentMode string
    Id string
    The provider-assigned unique ID for this managed resource.
    Subnets List<CellularGatewaySubnetPoolSubnet>
    DeploymentMode string
    Id string
    The provider-assigned unique ID for this managed resource.
    Subnets []CellularGatewaySubnetPoolSubnet
    deploymentMode String
    id String
    The provider-assigned unique ID for this managed resource.
    subnets List<CellularGatewaySubnetPoolSubnet>
    deploymentMode string
    id string
    The provider-assigned unique ID for this managed resource.
    subnets CellularGatewaySubnetPoolSubnet[]
    deployment_mode str
    id str
    The provider-assigned unique ID for this managed resource.
    subnets Sequence[CellularGatewaySubnetPoolSubnet]
    deploymentMode String
    id String
    The provider-assigned unique ID for this managed resource.
    subnets List<Property Map>

    Look up Existing CellularGatewaySubnetPool Resource

    Get an existing CellularGatewaySubnetPool 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?: CellularGatewaySubnetPoolState, opts?: CustomResourceOptions): CellularGatewaySubnetPool
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cidr: Optional[str] = None,
            deployment_mode: Optional[str] = None,
            mask: Optional[int] = None,
            network_id: Optional[str] = None,
            subnets: Optional[Sequence[CellularGatewaySubnetPoolSubnetArgs]] = None) -> CellularGatewaySubnetPool
    func GetCellularGatewaySubnetPool(ctx *Context, name string, id IDInput, state *CellularGatewaySubnetPoolState, opts ...ResourceOption) (*CellularGatewaySubnetPool, error)
    public static CellularGatewaySubnetPool Get(string name, Input<string> id, CellularGatewaySubnetPoolState? state, CustomResourceOptions? opts = null)
    public static CellularGatewaySubnetPool get(String name, Output<String> id, CellularGatewaySubnetPoolState 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:
    Cidr string
    CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
    DeploymentMode string
    Mask int
    Mask used for the subnet of all MGs in this network.
    NetworkId string
    networkId path parameter. Network ID
    Subnets List<CellularGatewaySubnetPoolSubnet>
    Cidr string
    CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
    DeploymentMode string
    Mask int
    Mask used for the subnet of all MGs in this network.
    NetworkId string
    networkId path parameter. Network ID
    Subnets []CellularGatewaySubnetPoolSubnetArgs
    cidr String
    CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
    deploymentMode String
    mask Integer
    Mask used for the subnet of all MGs in this network.
    networkId String
    networkId path parameter. Network ID
    subnets List<CellularGatewaySubnetPoolSubnet>
    cidr string
    CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
    deploymentMode string
    mask number
    Mask used for the subnet of all MGs in this network.
    networkId string
    networkId path parameter. Network ID
    subnets CellularGatewaySubnetPoolSubnet[]
    cidr str
    CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
    deployment_mode str
    mask int
    Mask used for the subnet of all MGs in this network.
    network_id str
    networkId path parameter. Network ID
    subnets Sequence[CellularGatewaySubnetPoolSubnetArgs]
    cidr String
    CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
    deploymentMode String
    mask Number
    Mask used for the subnet of all MGs in this network.
    networkId String
    networkId path parameter. Network ID
    subnets List<Property Map>

    Supporting Types

    CellularGatewaySubnetPoolSubnet, CellularGatewaySubnetPoolSubnetArgs

    ApplianceIp string
    Name string
    Serial string
    Subnet string
    ApplianceIp string
    Name string
    Serial string
    Subnet string
    applianceIp String
    name String
    serial String
    subnet String
    applianceIp string
    name string
    serial string
    subnet string
    applianceIp String
    name String
    serial String
    subnet String

    Import

    $ pulumi import meraki:networks/cellularGatewaySubnetPool:CellularGatewaySubnetPool 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.2.0 published on Friday, May 24, 2024 by Pulumi