junipermist.device.Base
Explore with Pulumi AI
This resources 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,
});
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"])
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
})
}
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,
});
});
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());
}
}
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}
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)
type: junipermist:device/base:base
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 BaseArgs
- 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 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 string
- The unique name of the resource.
- args BaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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
The Base resource accepts the following input properties:
- Address string
- full address of the site
- Org
Id string - Alarmtemplate
Id string - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- Aptemplate
Id string - AP Template ID, used by APs
- Country
Code string - country code for the site (for AP config generation), in two-character
- Gatewaytemplate
Id string - Gateway Template ID, used by gateways
- Latlng
Pulumi.
Juniper Mist. Device. Inputs. Base Latlng Args - Name string
- Networktemplate
Id string - Network Template ID, this takes precedence over Site Settings
- Notes string
- optional, any notes about the site
- Rftemplate
Id string - RF Template ID, this takes precedence over Site Settings
- Secpolicy
Id string - SecPolicy ID
- Sitegroup
Ids List<string> - sitegroups this site belongs to
- Sitetemplate
Id string - Site Template ID
- Timezone string
- Timezone the site is at
- Address string
- full address of the site
- Org
Id string - Alarmtemplate
Id string - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- Aptemplate
Id string - AP Template ID, used by APs
- Country
Code string - country code for the site (for AP config generation), in two-character
- Gatewaytemplate
Id string - Gateway Template ID, used by gateways
- Latlng
Base
Latlng Args - Name string
- Networktemplate
Id string - Network Template ID, this takes precedence over Site Settings
- Notes string
- optional, any notes about the site
- Rftemplate
Id string - RF Template ID, this takes precedence over Site Settings
- Secpolicy
Id string - SecPolicy ID
- Sitegroup
Ids []string - sitegroups this site belongs to
- Sitetemplate
Id string - Site Template ID
- Timezone string
- Timezone the site is at
- address String
- full address of the site
- org
Id String - alarmtemplate
Id String - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- aptemplate
Id String - AP Template ID, used by APs
- country
Code String - country code for the site (for AP config generation), in two-character
- gatewaytemplate
Id String - Gateway Template ID, used by gateways
- latlng
Base
Latlng Args - name String
- networktemplate
Id String - Network Template ID, this takes precedence over Site Settings
- notes String
- optional, any notes about the site
- rftemplate
Id String - RF Template ID, this takes precedence over Site Settings
- secpolicy
Id String - SecPolicy ID
- sitegroup
Ids List<String> - sitegroups this site belongs to
- sitetemplate
Id String - Site Template ID
- timezone String
- Timezone the site is at
- address string
- full address of the site
- org
Id string - alarmtemplate
Id string - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- aptemplate
Id string - AP Template ID, used by APs
- country
Code string - country code for the site (for AP config generation), in two-character
- gatewaytemplate
Id string - Gateway Template ID, used by gateways
- latlng
Base
Latlng Args - name string
- networktemplate
Id string - Network Template ID, this takes precedence over Site Settings
- notes string
- optional, any notes about the site
- rftemplate
Id string - RF Template ID, this takes precedence over Site Settings
- secpolicy
Id string - SecPolicy ID
- sitegroup
Ids string[] - sitegroups this site belongs to
- sitetemplate
Id string - Site Template ID
- timezone string
- Timezone the site is at
- address str
- full address of the site
- org_
id 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
Base
Latlng Args - 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 String
- full address of the site
- org
Id String - alarmtemplate
Id String - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- aptemplate
Id String - AP Template ID, used by APs
- country
Code String - country code for the site (for AP config generation), in two-character
- gatewaytemplate
Id String - Gateway Template ID, used by gateways
- latlng Property Map
- name String
- networktemplate
Id String - Network Template ID, this takes precedence over Site Settings
- notes String
- optional, any notes about the site
- rftemplate
Id String - RF Template ID, this takes precedence over Site Settings
- secpolicy
Id String - SecPolicy ID
- sitegroup
Ids List<String> - sitegroups this site belongs to
- sitetemplate
Id 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.
- 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 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) -> 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)
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.
- Address string
- full address of the site
- Alarmtemplate
Id string - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- Aptemplate
Id string - AP Template ID, used by APs
- Country
Code string - country code for the site (for AP config generation), in two-character
- Gatewaytemplate
Id string - Gateway Template ID, used by gateways
- Latlng
Pulumi.
Juniper Mist. Device. Inputs. Base Latlng Args - Name string
- Networktemplate
Id string - Network Template ID, this takes precedence over Site Settings
- Notes string
- optional, any notes about the site
- Org
Id string - Rftemplate
Id string - RF Template ID, this takes precedence over Site Settings
- Secpolicy
Id string - SecPolicy ID
- Sitegroup
Ids List<string> - sitegroups this site belongs to
- Sitetemplate
Id string - Site Template ID
- Timezone string
- Timezone the site is at
- Address string
- full address of the site
- Alarmtemplate
Id string - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- Aptemplate
Id string - AP Template ID, used by APs
- Country
Code string - country code for the site (for AP config generation), in two-character
- Gatewaytemplate
Id string - Gateway Template ID, used by gateways
- Latlng
Base
Latlng Args - Name string
- Networktemplate
Id string - Network Template ID, this takes precedence over Site Settings
- Notes string
- optional, any notes about the site
- Org
Id string - Rftemplate
Id string - RF Template ID, this takes precedence over Site Settings
- Secpolicy
Id string - SecPolicy ID
- Sitegroup
Ids []string - sitegroups this site belongs to
- Sitetemplate
Id string - Site Template ID
- Timezone string
- Timezone the site is at
- address String
- full address of the site
- alarmtemplate
Id String - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- aptemplate
Id String - AP Template ID, used by APs
- country
Code String - country code for the site (for AP config generation), in two-character
- gatewaytemplate
Id String - Gateway Template ID, used by gateways
- latlng
Base
Latlng Args - name String
- networktemplate
Id String - Network Template ID, this takes precedence over Site Settings
- notes String
- optional, any notes about the site
- org
Id String - rftemplate
Id String - RF Template ID, this takes precedence over Site Settings
- secpolicy
Id String - SecPolicy ID
- sitegroup
Ids List<String> - sitegroups this site belongs to
- sitetemplate
Id String - Site Template ID
- timezone String
- Timezone the site is at
- address string
- full address of the site
- alarmtemplate
Id string - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- aptemplate
Id string - AP Template ID, used by APs
- country
Code string - country code for the site (for AP config generation), in two-character
- gatewaytemplate
Id string - Gateway Template ID, used by gateways
- latlng
Base
Latlng Args - name string
- networktemplate
Id string - Network Template ID, this takes precedence over Site Settings
- notes string
- optional, any notes about the site
- org
Id string - rftemplate
Id string - RF Template ID, this takes precedence over Site Settings
- secpolicy
Id string - SecPolicy ID
- sitegroup
Ids string[] - sitegroups this site belongs to
- sitetemplate
Id string - Site Template ID
- timezone string
- Timezone the site is at
- 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
Base
Latlng Args - 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
- address String
- full address of the site
- alarmtemplate
Id String - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- aptemplate
Id String - AP Template ID, used by APs
- country
Code String - country code for the site (for AP config generation), in two-character
- gatewaytemplate
Id String - Gateway Template ID, used by gateways
- latlng Property Map
- name String
- networktemplate
Id String - Network Template ID, this takes precedence over Site Settings
- notes String
- optional, any notes about the site
- org
Id String - rftemplate
Id String - RF Template ID, this takes precedence over Site Settings
- secpolicy
Id String - SecPolicy ID
- sitegroup
Ids List<String> - sitegroups this site belongs to
- sitetemplate
Id String - Site Template ID
- timezone String
- Timezone the site is at
Supporting Types
BaseLatlng, BaseLatlngArgs
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
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.