meraki.networks.CellularGatewaySubnetPool
Explore with Pulumi AI
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.
Constructor 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CellularGatewaySubnetPool resource accepts the following input properties:
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the CellularGatewaySubnetPool resource produces the following output properties:
- Deployment
Mode string - Id string
- The provider-assigned unique ID for this managed resource.
- Subnets
List<Cellular
Gateway Subnet Pool Subnet>
- Deployment
Mode string - Id string
- The provider-assigned unique ID for this managed resource.
- Subnets
[]Cellular
Gateway Subnet Pool Subnet
- deployment
Mode String - id String
- The provider-assigned unique ID for this managed resource.
- subnets
List<Cellular
Gateway Subnet Pool Subnet>
- deployment
Mode string - id string
- The provider-assigned unique ID for this managed resource.
- subnets
Cellular
Gateway Subnet Pool Subnet[]
- deployment_
mode str - id str
- The provider-assigned unique ID for this managed resource.
- subnets
Sequence[Cellular
Gateway Subnet Pool Subnet]
- deployment
Mode 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.
- Cidr string
- CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
- Deployment
Mode string - Mask int
- Mask used for the subnet of all MGs in this network.
- Network
Id string - networkId path parameter. Network ID
- Subnets
List<Cellular
Gateway Subnet Pool Subnet>
- Cidr string
- CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
- Deployment
Mode string - Mask int
- Mask used for the subnet of all MGs in this network.
- Network
Id string - networkId path parameter. Network ID
- Subnets
[]Cellular
Gateway Subnet Pool Subnet Args
- cidr String
- CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
- deployment
Mode String - mask Integer
- Mask used for the subnet of all MGs in this network.
- network
Id String - networkId path parameter. Network ID
- subnets
List<Cellular
Gateway Subnet Pool Subnet>
- cidr string
- CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
- deployment
Mode string - mask number
- Mask used for the subnet of all MGs in this network.
- network
Id string - networkId path parameter. Network ID
- subnets
Cellular
Gateway Subnet Pool Subnet[]
- 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[Cellular
Gateway Subnet Pool Subnet Args]
- cidr String
- CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
- deployment
Mode String - mask Number
- Mask used for the subnet of all MGs in this network.
- network
Id String - networkId path parameter. Network ID
- subnets List<Property Map>
Supporting Types
CellularGatewaySubnetPoolSubnet, CellularGatewaySubnetPoolSubnetArgs
- Appliance
Ip string - Name string
- Serial string
- Subnet string
- Appliance
Ip string - Name string
- Serial string
- Subnet string
- appliance
Ip String - name String
- serial String
- subnet String
- appliance
Ip string - name string
- serial string
- subnet string
- appliance_
ip str - name str
- serial str
- subnet str
- appliance
Ip 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.