1. Packages
  2. Juniper Mist
  3. API Docs
  4. device
  5. Base
Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi

junipermist.device.Base

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi
    Deprecated: junipermist.device/base.base has been deprecated in favor of junipermist.site/base.base

    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)
    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 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

    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 string
    full address of the site
    OrgId 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 string
    full address of the site
    OrgId 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 String
    full address of the site
    orgId 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 string
    full address of the site
    orgId 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 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 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 String
    full address of the site
    orgId 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.
    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.
    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
    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
    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
    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
    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
    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

    Supporting Types

    BaseLatlng, BaseLatlngArgs

    Lat double
    Lng double
    Lat float64
    Lng float64
    lat Double
    lng Double
    lat number
    lng number
    lat float
    lng float
    lat Number
    lng 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
    

    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.
    junipermist logo
    Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi