1. Packages
  2. Juniper Mist Provider
  3. API Docs
  4. device
  5. Base
Juniper Mist v0.3.0 published on Wednesday, Apr 9, 2025 by Pulumi

junipermist.device.Base

Explore with Pulumi AI

Deprecated: junipermist.device/base.base has been deprecated in favor of junipermist.site/base.base

This resource manages the Site basic information.

This resource can be used to assign templates to a site, or to change basic information (e.g. Site Address)

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/juniper-mist";

const juniperFrance = new junipermist.site.Base("juniper_france", {
    orgId: terraformTest.id,
    name: "JNP-FR-PAR",
    countryCode: "FR",
    timezone: "Europe/Paris",
    address: "41 Rue de Villiers, 92100 Neuilly sur Seine, France",
    notes: "Created with Terraform, Updated with Terraform",
    latlng: {
        lat: 48.899268,
        lng: 2.214447,
    },
    sitegroupIds: [
        testGroup.id,
        testGroup2.id,
    ],
    networktemplateId: networktemplateOne.id,
    rftemplateId: rftemplateOne.id,
    gatewaytemplateId: gatewaytemplateOne.id,
    alarmtemplateId: alarmtemplateOne.id,
});
Copy
import pulumi
import pulumi_juniper_mist as junipermist

juniper_france = junipermist.site.Base("juniper_france",
    org_id=terraform_test["id"],
    name="JNP-FR-PAR",
    country_code="FR",
    timezone="Europe/Paris",
    address="41 Rue de Villiers, 92100 Neuilly sur Seine, France",
    notes="Created with Terraform, Updated with Terraform",
    latlng={
        "lat": 48.899268,
        "lng": 2.214447,
    },
    sitegroup_ids=[
        test_group["id"],
        test_group2["id"],
    ],
    networktemplate_id=networktemplate_one["id"],
    rftemplate_id=rftemplate_one["id"],
    gatewaytemplate_id=gatewaytemplate_one["id"],
    alarmtemplate_id=alarmtemplate_one["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/site"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := site.Newbase(ctx, "juniper_france", &site.baseArgs{
			OrgId:       pulumi.Any(terraformTest.Id),
			Name:        pulumi.String("JNP-FR-PAR"),
			CountryCode: pulumi.String("FR"),
			Timezone:    pulumi.String("Europe/Paris"),
			Address:     pulumi.String("41 Rue de Villiers, 92100 Neuilly sur Seine, France"),
			Notes:       pulumi.String("Created with Terraform, Updated with Terraform"),
			Latlng: &site.BaseLatlngArgs{
				Lat: pulumi.Float64(48.899268),
				Lng: pulumi.Float64(2.214447),
			},
			SitegroupIds: pulumi.StringArray{
				testGroup.Id,
				testGroup2.Id,
			},
			NetworktemplateId: pulumi.Any(networktemplateOne.Id),
			RftemplateId:      pulumi.Any(rftemplateOne.Id),
			GatewaytemplateId: pulumi.Any(gatewaytemplateOne.Id),
			AlarmtemplateId:   pulumi.Any(alarmtemplateOne.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using JuniperMist = Pulumi.JuniperMist;

return await Deployment.RunAsync(() => 
{
    var juniperFrance = new JuniperMist.Site.Base("juniper_france", new()
    {
        OrgId = terraformTest.Id,
        Name = "JNP-FR-PAR",
        CountryCode = "FR",
        Timezone = "Europe/Paris",
        Address = "41 Rue de Villiers, 92100 Neuilly sur Seine, France",
        Notes = "Created with Terraform, Updated with Terraform",
        Latlng = new JuniperMist.Site.Inputs.BaseLatlngArgs
        {
            Lat = 48.899268,
            Lng = 2.214447,
        },
        SitegroupIds = new[]
        {
            testGroup.Id,
            testGroup2.Id,
        },
        NetworktemplateId = networktemplateOne.Id,
        RftemplateId = rftemplateOne.Id,
        GatewaytemplateId = gatewaytemplateOne.Id,
        AlarmtemplateId = alarmtemplateOne.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.site.base;
import com.pulumi.junipermist.site.baseArgs;
import com.pulumi.junipermist.site.inputs.BaseLatlngArgs;
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 juniperFrance = new Base("juniperFrance", BaseArgs.builder()
            .orgId(terraformTest.id())
            .name("JNP-FR-PAR")
            .countryCode("FR")
            .timezone("Europe/Paris")
            .address("41 Rue de Villiers, 92100 Neuilly sur Seine, France")
            .notes("Created with Terraform, Updated with Terraform")
            .latlng(BaseLatlngArgs.builder()
                .lat(48.899268)
                .lng(2.214447)
                .build())
            .sitegroupIds(            
                testGroup.id(),
                testGroup2.id())
            .networktemplateId(networktemplateOne.id())
            .rftemplateId(rftemplateOne.id())
            .gatewaytemplateId(gatewaytemplateOne.id())
            .alarmtemplateId(alarmtemplateOne.id())
            .build());

    }
}
Copy
resources:
  juniperFrance:
    type: junipermist:site:base
    name: juniper_france
    properties:
      orgId: ${terraformTest.id}
      name: JNP-FR-PAR
      countryCode: FR
      timezone: Europe/Paris
      address: 41 Rue de Villiers, 92100 Neuilly sur Seine, France
      notes: Created with Terraform, Updated with Terraform
      latlng:
        lat: 48.899268
        lng: 2.214447
      sitegroupIds:
        - ${testGroup.id}
        - ${testGroup2.id}
      networktemplateId: ${networktemplateOne.id}
      rftemplateId: ${rftemplateOne.id}
      gatewaytemplateId: ${gatewaytemplateOne.id}
      alarmtemplateId: ${alarmtemplateOne.id}
Copy

Create Base Resource

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

Constructor syntax

new Base(name: string, args: BaseArgs, opts?: CustomResourceOptions);
@overload
def Base(resource_name: str,
         args: BaseArgs,
         opts: Optional[ResourceOptions] = None)

@overload
def Base(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         address: Optional[str] = None,
         alarmtemplate_id: Optional[str] = None,
         aptemplate_id: Optional[str] = None,
         country_code: Optional[str] = None,
         gatewaytemplate_id: Optional[str] = None,
         latlng: Optional[BaseLatlngArgs] = None,
         name: Optional[str] = None,
         networktemplate_id: Optional[str] = None,
         notes: Optional[str] = None,
         org_id: Optional[str] = None,
         rftemplate_id: Optional[str] = None,
         secpolicy_id: Optional[str] = None,
         sitegroup_ids: Optional[Sequence[str]] = None,
         sitetemplate_id: Optional[str] = None,
         timezone: Optional[str] = None)
func NewBase(ctx *Context, name string, args BaseArgs, opts ...ResourceOption) (*Base, error)
public Base(string name, BaseArgs args, CustomResourceOptions? opts = null)
public Base(String name, BaseArgs args)
public Base(String name, BaseArgs args, CustomResourceOptions options)
type: junipermist:device/base:base
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BaseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. BaseArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. BaseArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BaseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. BaseArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Address This property is required. string
full address of the site
OrgId This property is required. string
AlarmtemplateId string
Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
AptemplateId string
AP Template ID, used by APs
CountryCode string
Country code for the site (for AP config generation), in two-character
GatewaytemplateId string
Gateway Template ID, used by gateways
Latlng Pulumi.JuniperMist.Device.Inputs.BaseLatlngArgs
Name string
NetworktemplateId string
Network Template ID, this takes precedence over Site Settings
Notes string
Optional, any notes about the site
RftemplateId string
RF Template ID, this takes precedence over Site Settings
SecpolicyId string
SecPolicy ID
SitegroupIds List<string>
Sitegroups this site belongs to
SitetemplateId string
Site Template ID
Timezone string
Timezone the site is at
Address This property is required. string
full address of the site
OrgId This property is required. string
AlarmtemplateId string
Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
AptemplateId string
AP Template ID, used by APs
CountryCode string
Country code for the site (for AP config generation), in two-character
GatewaytemplateId string
Gateway Template ID, used by gateways
Latlng BaseLatlngArgs
Name string
NetworktemplateId string
Network Template ID, this takes precedence over Site Settings
Notes string
Optional, any notes about the site
RftemplateId string
RF Template ID, this takes precedence over Site Settings
SecpolicyId string
SecPolicy ID
SitegroupIds []string
Sitegroups this site belongs to
SitetemplateId string
Site Template ID
Timezone string
Timezone the site is at
address This property is required. String
full address of the site
orgId This property is required. String
alarmtemplateId String
Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
aptemplateId String
AP Template ID, used by APs
countryCode String
Country code for the site (for AP config generation), in two-character
gatewaytemplateId String
Gateway Template ID, used by gateways
latlng BaseLatlngArgs
name String
networktemplateId String
Network Template ID, this takes precedence over Site Settings
notes String
Optional, any notes about the site
rftemplateId String
RF Template ID, this takes precedence over Site Settings
secpolicyId String
SecPolicy ID
sitegroupIds List<String>
Sitegroups this site belongs to
sitetemplateId String
Site Template ID
timezone String
Timezone the site is at
address This property is required. string
full address of the site
orgId This property is required. string
alarmtemplateId string
Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
aptemplateId string
AP Template ID, used by APs
countryCode string
Country code for the site (for AP config generation), in two-character
gatewaytemplateId string
Gateway Template ID, used by gateways
latlng BaseLatlngArgs
name string
networktemplateId string
Network Template ID, this takes precedence over Site Settings
notes string
Optional, any notes about the site
rftemplateId string
RF Template ID, this takes precedence over Site Settings
secpolicyId string
SecPolicy ID
sitegroupIds string[]
Sitegroups this site belongs to
sitetemplateId string
Site Template ID
timezone string
Timezone the site is at
address This property is required. str
full address of the site
org_id This property is required. str
alarmtemplate_id str
Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
aptemplate_id str
AP Template ID, used by APs
country_code str
Country code for the site (for AP config generation), in two-character
gatewaytemplate_id str
Gateway Template ID, used by gateways
latlng BaseLatlngArgs
name str
networktemplate_id str
Network Template ID, this takes precedence over Site Settings
notes str
Optional, any notes about the site
rftemplate_id str
RF Template ID, this takes precedence over Site Settings
secpolicy_id str
SecPolicy ID
sitegroup_ids Sequence[str]
Sitegroups this site belongs to
sitetemplate_id str
Site Template ID
timezone str
Timezone the site is at
address This property is required. String
full address of the site
orgId This property is required. String
alarmtemplateId String
Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
aptemplateId String
AP Template ID, used by APs
countryCode String
Country code for the site (for AP config generation), in two-character
gatewaytemplateId String
Gateway Template ID, used by gateways
latlng Property Map
name String
networktemplateId String
Network Template ID, this takes precedence over Site Settings
notes String
Optional, any notes about the site
rftemplateId String
RF Template ID, this takes precedence over Site Settings
secpolicyId String
SecPolicy ID
sitegroupIds List<String>
Sitegroups this site belongs to
sitetemplateId String
Site Template ID
timezone String
Timezone the site is at

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Tzoffset int
Id string
The provider-assigned unique ID for this managed resource.
Tzoffset int
id String
The provider-assigned unique ID for this managed resource.
tzoffset Integer
id string
The provider-assigned unique ID for this managed resource.
tzoffset number
id str
The provider-assigned unique ID for this managed resource.
tzoffset int
id String
The provider-assigned unique ID for this managed resource.
tzoffset Number

Look up Existing Base Resource

Get an existing Base 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?: BaseState, opts?: CustomResourceOptions): Base
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        address: Optional[str] = None,
        alarmtemplate_id: Optional[str] = None,
        aptemplate_id: Optional[str] = None,
        country_code: Optional[str] = None,
        gatewaytemplate_id: Optional[str] = None,
        latlng: Optional[BaseLatlngArgs] = None,
        name: Optional[str] = None,
        networktemplate_id: Optional[str] = None,
        notes: Optional[str] = None,
        org_id: Optional[str] = None,
        rftemplate_id: Optional[str] = None,
        secpolicy_id: Optional[str] = None,
        sitegroup_ids: Optional[Sequence[str]] = None,
        sitetemplate_id: Optional[str] = None,
        timezone: Optional[str] = None,
        tzoffset: Optional[int] = None) -> Base
func GetBase(ctx *Context, name string, id IDInput, state *BaseState, opts ...ResourceOption) (*Base, error)
public static Base Get(string name, Input<string> id, BaseState? state, CustomResourceOptions? opts = null)
public static Base get(String name, Output<String> id, BaseState state, CustomResourceOptions options)
resources:  _:    type: junipermist:device/base:base    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Address string
full address of the site
AlarmtemplateId string
Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
AptemplateId string
AP Template ID, used by APs
CountryCode string
Country code for the site (for AP config generation), in two-character
GatewaytemplateId string
Gateway Template ID, used by gateways
Latlng Pulumi.JuniperMist.Device.Inputs.BaseLatlngArgs
Name string
NetworktemplateId string
Network Template ID, this takes precedence over Site Settings
Notes string
Optional, any notes about the site
OrgId string
RftemplateId string
RF Template ID, this takes precedence over Site Settings
SecpolicyId string
SecPolicy ID
SitegroupIds List<string>
Sitegroups this site belongs to
SitetemplateId string
Site Template ID
Timezone string
Timezone the site is at
Tzoffset int
Address string
full address of the site
AlarmtemplateId string
Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
AptemplateId string
AP Template ID, used by APs
CountryCode string
Country code for the site (for AP config generation), in two-character
GatewaytemplateId string
Gateway Template ID, used by gateways
Latlng BaseLatlngArgs
Name string
NetworktemplateId string
Network Template ID, this takes precedence over Site Settings
Notes string
Optional, any notes about the site
OrgId string
RftemplateId string
RF Template ID, this takes precedence over Site Settings
SecpolicyId string
SecPolicy ID
SitegroupIds []string
Sitegroups this site belongs to
SitetemplateId string
Site Template ID
Timezone string
Timezone the site is at
Tzoffset int
address String
full address of the site
alarmtemplateId String
Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
aptemplateId String
AP Template ID, used by APs
countryCode String
Country code for the site (for AP config generation), in two-character
gatewaytemplateId String
Gateway Template ID, used by gateways
latlng BaseLatlngArgs
name String
networktemplateId String
Network Template ID, this takes precedence over Site Settings
notes String
Optional, any notes about the site
orgId String
rftemplateId String
RF Template ID, this takes precedence over Site Settings
secpolicyId String
SecPolicy ID
sitegroupIds List<String>
Sitegroups this site belongs to
sitetemplateId String
Site Template ID
timezone String
Timezone the site is at
tzoffset Integer
address string
full address of the site
alarmtemplateId string
Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
aptemplateId string
AP Template ID, used by APs
countryCode string
Country code for the site (for AP config generation), in two-character
gatewaytemplateId string
Gateway Template ID, used by gateways
latlng BaseLatlngArgs
name string
networktemplateId string
Network Template ID, this takes precedence over Site Settings
notes string
Optional, any notes about the site
orgId string
rftemplateId string
RF Template ID, this takes precedence over Site Settings
secpolicyId string
SecPolicy ID
sitegroupIds string[]
Sitegroups this site belongs to
sitetemplateId string
Site Template ID
timezone string
Timezone the site is at
tzoffset number
address str
full address of the site
alarmtemplate_id str
Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
aptemplate_id str
AP Template ID, used by APs
country_code str
Country code for the site (for AP config generation), in two-character
gatewaytemplate_id str
Gateway Template ID, used by gateways
latlng BaseLatlngArgs
name str
networktemplate_id str
Network Template ID, this takes precedence over Site Settings
notes str
Optional, any notes about the site
org_id str
rftemplate_id str
RF Template ID, this takes precedence over Site Settings
secpolicy_id str
SecPolicy ID
sitegroup_ids Sequence[str]
Sitegroups this site belongs to
sitetemplate_id str
Site Template ID
timezone str
Timezone the site is at
tzoffset int
address String
full address of the site
alarmtemplateId String
Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
aptemplateId String
AP Template ID, used by APs
countryCode String
Country code for the site (for AP config generation), in two-character
gatewaytemplateId String
Gateway Template ID, used by gateways
latlng Property Map
name String
networktemplateId String
Network Template ID, this takes precedence over Site Settings
notes String
Optional, any notes about the site
orgId String
rftemplateId String
RF Template ID, this takes precedence over Site Settings
secpolicyId String
SecPolicy ID
sitegroupIds List<String>
Sitegroups this site belongs to
sitetemplateId String
Site Template ID
timezone String
Timezone the site is at
tzoffset Number

Supporting Types

BaseLatlng
, BaseLatlngArgs

Lat This property is required. double
Lng This property is required. double
Lat This property is required. float64
Lng This property is required. float64
lat This property is required. Double
lng This property is required. Double
lat This property is required. number
lng This property is required. number
lat This property is required. float
lng This property is required. float
lat This property is required. Number
lng This property is required. Number

Import

Using pulumi import, import mist_site with:

Site can be imported by specifying the site_id

$ pulumi import junipermist:device/base:base site_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309
Copy

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

Package Details

Repository
junipermist pulumi/pulumi-junipermist
License
Apache-2.0
Notes
This Pulumi package is based on the mist Terraform Provider.