meraki.networks.ApplianceVpnSiteToSiteVpn
Explore with Pulumi AI
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.ApplianceVpnSiteToSiteVpn;
import com.pulumi.meraki.networks.ApplianceVpnSiteToSiteVpnArgs;
import com.pulumi.meraki.networks.inputs.ApplianceVpnSiteToSiteVpnHubArgs;
import com.pulumi.meraki.networks.inputs.ApplianceVpnSiteToSiteVpnSubnetArgs;
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 ApplianceVpnSiteToSiteVpn("example", ApplianceVpnSiteToSiteVpnArgs.builder()
.hubs(ApplianceVpnSiteToSiteVpnHubArgs.builder()
.hub_id("N_4901849")
.use_default_route(true)
.build())
.mode("spoke")
.networkId("string")
.subnets(ApplianceVpnSiteToSiteVpnSubnetArgs.builder()
.local_subnet("192.168.1.0/24")
.use_vpn(true)
.build())
.build());
ctx.export("merakiNetworksApplianceVpnSiteToSiteVpnExample", example);
}
}
resources:
example:
type: meraki:networks:ApplianceVpnSiteToSiteVpn
properties:
hubs:
- hub_id: N_4901849
use_default_route: true
mode: spoke
networkId: string
subnets:
- local_subnet: 192.168.1.0/24
use_vpn: true
outputs:
merakiNetworksApplianceVpnSiteToSiteVpnExample: ${example}
Create ApplianceVpnSiteToSiteVpn Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApplianceVpnSiteToSiteVpn(name: string, args: ApplianceVpnSiteToSiteVpnArgs, opts?: CustomResourceOptions);
@overload
def ApplianceVpnSiteToSiteVpn(resource_name: str,
args: ApplianceVpnSiteToSiteVpnArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApplianceVpnSiteToSiteVpn(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
hubs: Optional[Sequence[ApplianceVpnSiteToSiteVpnHubArgs]] = None,
mode: Optional[str] = None,
subnets: Optional[Sequence[ApplianceVpnSiteToSiteVpnSubnetArgs]] = None)
func NewApplianceVpnSiteToSiteVpn(ctx *Context, name string, args ApplianceVpnSiteToSiteVpnArgs, opts ...ResourceOption) (*ApplianceVpnSiteToSiteVpn, error)
public ApplianceVpnSiteToSiteVpn(string name, ApplianceVpnSiteToSiteVpnArgs args, CustomResourceOptions? opts = null)
public ApplianceVpnSiteToSiteVpn(String name, ApplianceVpnSiteToSiteVpnArgs args)
public ApplianceVpnSiteToSiteVpn(String name, ApplianceVpnSiteToSiteVpnArgs args, CustomResourceOptions options)
type: meraki:networks:ApplianceVpnSiteToSiteVpn
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 ApplianceVpnSiteToSiteVpnArgs
- 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 ApplianceVpnSiteToSiteVpnArgs
- 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 ApplianceVpnSiteToSiteVpnArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplianceVpnSiteToSiteVpnArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplianceVpnSiteToSiteVpnArgs
- 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 applianceVpnSiteToSiteVpnResource = new Meraki.Networks.ApplianceVpnSiteToSiteVpn("applianceVpnSiteToSiteVpnResource", new()
{
NetworkId = "string",
Hubs = new[]
{
new Meraki.Networks.Inputs.ApplianceVpnSiteToSiteVpnHubArgs
{
HubId = "string",
UseDefaultRoute = false,
},
},
Mode = "string",
Subnets = new[]
{
new Meraki.Networks.Inputs.ApplianceVpnSiteToSiteVpnSubnetArgs
{
LocalSubnet = "string",
UseVpn = false,
},
},
});
example, err := networks.NewApplianceVpnSiteToSiteVpn(ctx, "applianceVpnSiteToSiteVpnResource", &networks.ApplianceVpnSiteToSiteVpnArgs{
NetworkId: pulumi.String("string"),
Hubs: networks.ApplianceVpnSiteToSiteVpnHubArray{
&networks.ApplianceVpnSiteToSiteVpnHubArgs{
HubId: pulumi.String("string"),
UseDefaultRoute: pulumi.Bool(false),
},
},
Mode: pulumi.String("string"),
Subnets: networks.ApplianceVpnSiteToSiteVpnSubnetArray{
&networks.ApplianceVpnSiteToSiteVpnSubnetArgs{
LocalSubnet: pulumi.String("string"),
UseVpn: pulumi.Bool(false),
},
},
})
var applianceVpnSiteToSiteVpnResource = new ApplianceVpnSiteToSiteVpn("applianceVpnSiteToSiteVpnResource", ApplianceVpnSiteToSiteVpnArgs.builder()
.networkId("string")
.hubs(ApplianceVpnSiteToSiteVpnHubArgs.builder()
.hubId("string")
.useDefaultRoute(false)
.build())
.mode("string")
.subnets(ApplianceVpnSiteToSiteVpnSubnetArgs.builder()
.localSubnet("string")
.useVpn(false)
.build())
.build());
appliance_vpn_site_to_site_vpn_resource = meraki.networks.ApplianceVpnSiteToSiteVpn("applianceVpnSiteToSiteVpnResource",
network_id="string",
hubs=[meraki.networks.ApplianceVpnSiteToSiteVpnHubArgs(
hub_id="string",
use_default_route=False,
)],
mode="string",
subnets=[meraki.networks.ApplianceVpnSiteToSiteVpnSubnetArgs(
local_subnet="string",
use_vpn=False,
)])
const applianceVpnSiteToSiteVpnResource = new meraki.networks.ApplianceVpnSiteToSiteVpn("applianceVpnSiteToSiteVpnResource", {
networkId: "string",
hubs: [{
hubId: "string",
useDefaultRoute: false,
}],
mode: "string",
subnets: [{
localSubnet: "string",
useVpn: false,
}],
});
type: meraki:networks:ApplianceVpnSiteToSiteVpn
properties:
hubs:
- hubId: string
useDefaultRoute: false
mode: string
networkId: string
subnets:
- localSubnet: string
useVpn: false
ApplianceVpnSiteToSiteVpn 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 ApplianceVpnSiteToSiteVpn resource accepts the following input properties:
- Network
Id string - networkId path parameter. Network ID
- Hubs
List<Appliance
Vpn Site To Site Vpn Hub> - The list of VPN hubs, in order of preference.
- Mode string
- The site-to-site VPN mode.
- Subnets
List<Appliance
Vpn Site To Site Vpn Subnet> - The list of subnets and their VPN presence.
- Network
Id string - networkId path parameter. Network ID
- Hubs
[]Appliance
Vpn Site To Site Vpn Hub Args - The list of VPN hubs, in order of preference.
- Mode string
- The site-to-site VPN mode.
- Subnets
[]Appliance
Vpn Site To Site Vpn Subnet Args - The list of subnets and their VPN presence.
- network
Id String - networkId path parameter. Network ID
- hubs
List<Appliance
Vpn Site To Site Vpn Hub> - The list of VPN hubs, in order of preference.
- mode String
- The site-to-site VPN mode.
- subnets
List<Appliance
Vpn Site To Site Vpn Subnet> - The list of subnets and their VPN presence.
- network
Id string - networkId path parameter. Network ID
- hubs
Appliance
Vpn Site To Site Vpn Hub[] - The list of VPN hubs, in order of preference.
- mode string
- The site-to-site VPN mode.
- subnets
Appliance
Vpn Site To Site Vpn Subnet[] - The list of subnets and their VPN presence.
- network_
id str - networkId path parameter. Network ID
- hubs
Sequence[Appliance
Vpn Site To Site Vpn Hub Args] - The list of VPN hubs, in order of preference.
- mode str
- The site-to-site VPN mode.
- subnets
Sequence[Appliance
Vpn Site To Site Vpn Subnet Args] - The list of subnets and their VPN presence.
- network
Id String - networkId path parameter. Network ID
- hubs List<Property Map>
- The list of VPN hubs, in order of preference.
- mode String
- The site-to-site VPN mode.
- subnets List<Property Map>
- The list of subnets and their VPN presence.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApplianceVpnSiteToSiteVpn 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 ApplianceVpnSiteToSiteVpn Resource
Get an existing ApplianceVpnSiteToSiteVpn 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?: ApplianceVpnSiteToSiteVpnState, opts?: CustomResourceOptions): ApplianceVpnSiteToSiteVpn
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
hubs: Optional[Sequence[ApplianceVpnSiteToSiteVpnHubArgs]] = None,
mode: Optional[str] = None,
network_id: Optional[str] = None,
subnets: Optional[Sequence[ApplianceVpnSiteToSiteVpnSubnetArgs]] = None) -> ApplianceVpnSiteToSiteVpn
func GetApplianceVpnSiteToSiteVpn(ctx *Context, name string, id IDInput, state *ApplianceVpnSiteToSiteVpnState, opts ...ResourceOption) (*ApplianceVpnSiteToSiteVpn, error)
public static ApplianceVpnSiteToSiteVpn Get(string name, Input<string> id, ApplianceVpnSiteToSiteVpnState? state, CustomResourceOptions? opts = null)
public static ApplianceVpnSiteToSiteVpn get(String name, Output<String> id, ApplianceVpnSiteToSiteVpnState 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.
- Hubs
List<Appliance
Vpn Site To Site Vpn Hub> - The list of VPN hubs, in order of preference.
- Mode string
- The site-to-site VPN mode.
- Network
Id string - networkId path parameter. Network ID
- Subnets
List<Appliance
Vpn Site To Site Vpn Subnet> - The list of subnets and their VPN presence.
- Hubs
[]Appliance
Vpn Site To Site Vpn Hub Args - The list of VPN hubs, in order of preference.
- Mode string
- The site-to-site VPN mode.
- Network
Id string - networkId path parameter. Network ID
- Subnets
[]Appliance
Vpn Site To Site Vpn Subnet Args - The list of subnets and their VPN presence.
- hubs
List<Appliance
Vpn Site To Site Vpn Hub> - The list of VPN hubs, in order of preference.
- mode String
- The site-to-site VPN mode.
- network
Id String - networkId path parameter. Network ID
- subnets
List<Appliance
Vpn Site To Site Vpn Subnet> - The list of subnets and their VPN presence.
- hubs
Appliance
Vpn Site To Site Vpn Hub[] - The list of VPN hubs, in order of preference.
- mode string
- The site-to-site VPN mode.
- network
Id string - networkId path parameter. Network ID
- subnets
Appliance
Vpn Site To Site Vpn Subnet[] - The list of subnets and their VPN presence.
- hubs
Sequence[Appliance
Vpn Site To Site Vpn Hub Args] - The list of VPN hubs, in order of preference.
- mode str
- The site-to-site VPN mode.
- network_
id str - networkId path parameter. Network ID
- subnets
Sequence[Appliance
Vpn Site To Site Vpn Subnet Args] - The list of subnets and their VPN presence.
- hubs List<Property Map>
- The list of VPN hubs, in order of preference.
- mode String
- The site-to-site VPN mode.
- network
Id String - networkId path parameter. Network ID
- subnets List<Property Map>
- The list of subnets and their VPN presence.
Supporting Types
ApplianceVpnSiteToSiteVpnHub, ApplianceVpnSiteToSiteVpnHubArgs
- Hub
Id string - The network ID of the hub.
- Use
Default boolRoute - Indicates whether default route traffic should be sent to this hub.
- Hub
Id string - The network ID of the hub.
- Use
Default boolRoute - Indicates whether default route traffic should be sent to this hub.
- hub
Id String - The network ID of the hub.
- use
Default BooleanRoute - Indicates whether default route traffic should be sent to this hub.
- hub
Id string - The network ID of the hub.
- use
Default booleanRoute - Indicates whether default route traffic should be sent to this hub.
- hub_
id str - The network ID of the hub.
- use_
default_ boolroute - Indicates whether default route traffic should be sent to this hub.
- hub
Id String - The network ID of the hub.
- use
Default BooleanRoute - Indicates whether default route traffic should be sent to this hub.
ApplianceVpnSiteToSiteVpnSubnet, ApplianceVpnSiteToSiteVpnSubnetArgs
- Local
Subnet string - The CIDR notation subnet used within the VPN
- Use
Vpn bool - Indicates the presence of the subnet in the VPN
- Local
Subnet string - The CIDR notation subnet used within the VPN
- Use
Vpn bool - Indicates the presence of the subnet in the VPN
- local
Subnet String - The CIDR notation subnet used within the VPN
- use
Vpn Boolean - Indicates the presence of the subnet in the VPN
- local
Subnet string - The CIDR notation subnet used within the VPN
- use
Vpn boolean - Indicates the presence of the subnet in the VPN
- local_
subnet str - The CIDR notation subnet used within the VPN
- use_
vpn bool - Indicates the presence of the subnet in the VPN
- local
Subnet String - The CIDR notation subnet used within the VPN
- use
Vpn Boolean - Indicates the presence of the subnet in the VPN
Import
$ pulumi import meraki:networks/applianceVpnSiteToSiteVpn:ApplianceVpnSiteToSiteVpn 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.