junipermist.org.Base
Explore with Pulumi AI
This resource manages the Mist Organization. An organization usually represents a customer - which has inventories, licenses. An Organization can contain multiple sites. A site usually represents a deployment at the same location (a campus, an office).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/juniper-mist";
const orgOne = new junipermist.org.Base("org_one", {
name: "Org One",
alarmtemplateId: alarmtemplateOne.id,
});
import pulumi
import pulumi_juniper_mist as junipermist
org_one = junipermist.org.Base("org_one",
name="Org One",
alarmtemplate_id=alarmtemplate_one["id"])
package main
import (
"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/org"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := org.Newbase(ctx, "org_one", &org.baseArgs{
Name: pulumi.String("Org One"),
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 orgOne = new JuniperMist.Org.Base("org_one", new()
{
Name = "Org One",
AlarmtemplateId = alarmtemplateOne.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.org.base;
import com.pulumi.junipermist.org.BaseArgs;
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 orgOne = new Base("orgOne", BaseArgs.builder()
.name("Org One")
.alarmtemplateId(alarmtemplateOne.id())
.build());
}
}
resources:
orgOne:
type: junipermist:org:base
name: org_one
properties:
name: Org One
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: Optional[BaseArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Base(resource_name: str,
opts: Optional[ResourceOptions] = None,
alarmtemplate_id: Optional[str] = None,
allow_mist: Optional[bool] = None,
name: Optional[str] = None,
session_expiry: Optional[int] = None)
func NewBase(ctx *Context, name string, args *BaseArgs, opts ...ResourceOption) (*Base, error)
public Base(string name, BaseArgs? args = null, CustomResourceOptions? opts = null)
type: junipermist:org/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:
- Alarmtemplate
Id string - Allow
Mist bool - Name string
- Session
Expiry int
- Alarmtemplate
Id string - Allow
Mist bool - Name string
- Session
Expiry int
- alarmtemplate
Id String - allow
Mist Boolean - name String
- session
Expiry Integer
- alarmtemplate
Id string - allow
Mist boolean - name string
- session
Expiry number
- alarmtemplate_
id str - allow_
mist bool - name str
- session_
expiry int
- alarmtemplate
Id String - allow
Mist Boolean - name String
- session
Expiry Number
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.
- Msp
Id string - Msp
Logo stringUrl - logo uploaded by the MSP with advanced tier, only present if provided
- Msp
Name string - name of the msp the org belongs to
- Orggroup
Ids List<string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Msp
Id string - Msp
Logo stringUrl - logo uploaded by the MSP with advanced tier, only present if provided
- Msp
Name string - name of the msp the org belongs to
- Orggroup
Ids []string
- id String
- The provider-assigned unique ID for this managed resource.
- msp
Id String - msp
Logo StringUrl - logo uploaded by the MSP with advanced tier, only present if provided
- msp
Name String - name of the msp the org belongs to
- orggroup
Ids List<String>
- id string
- The provider-assigned unique ID for this managed resource.
- msp
Id string - msp
Logo stringUrl - logo uploaded by the MSP with advanced tier, only present if provided
- msp
Name string - name of the msp the org belongs to
- orggroup
Ids string[]
- id str
- The provider-assigned unique ID for this managed resource.
- msp_
id str - msp_
logo_ strurl - logo uploaded by the MSP with advanced tier, only present if provided
- msp_
name str - name of the msp the org belongs to
- orggroup_
ids Sequence[str]
- id String
- The provider-assigned unique ID for this managed resource.
- msp
Id String - msp
Logo StringUrl - logo uploaded by the MSP with advanced tier, only present if provided
- msp
Name String - name of the msp the org belongs to
- orggroup
Ids List<String>
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,
alarmtemplate_id: Optional[str] = None,
allow_mist: Optional[bool] = None,
msp_id: Optional[str] = None,
msp_logo_url: Optional[str] = None,
msp_name: Optional[str] = None,
name: Optional[str] = None,
orggroup_ids: Optional[Sequence[str]] = None,
session_expiry: 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)
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.
- Alarmtemplate
Id string - Allow
Mist bool - Msp
Id string - Msp
Logo stringUrl - logo uploaded by the MSP with advanced tier, only present if provided
- Msp
Name string - name of the msp the org belongs to
- Name string
- Orggroup
Ids List<string> - Session
Expiry int
- Alarmtemplate
Id string - Allow
Mist bool - Msp
Id string - Msp
Logo stringUrl - logo uploaded by the MSP with advanced tier, only present if provided
- Msp
Name string - name of the msp the org belongs to
- Name string
- Orggroup
Ids []string - Session
Expiry int
- alarmtemplate
Id String - allow
Mist Boolean - msp
Id String - msp
Logo StringUrl - logo uploaded by the MSP with advanced tier, only present if provided
- msp
Name String - name of the msp the org belongs to
- name String
- orggroup
Ids List<String> - session
Expiry Integer
- alarmtemplate
Id string - allow
Mist boolean - msp
Id string - msp
Logo stringUrl - logo uploaded by the MSP with advanced tier, only present if provided
- msp
Name string - name of the msp the org belongs to
- name string
- orggroup
Ids string[] - session
Expiry number
- alarmtemplate_
id str - allow_
mist bool - msp_
id str - msp_
logo_ strurl - logo uploaded by the MSP with advanced tier, only present if provided
- msp_
name str - name of the msp the org belongs to
- name str
- orggroup_
ids Sequence[str] - session_
expiry int
- alarmtemplate
Id String - allow
Mist Boolean - msp
Id String - msp
Logo StringUrl - logo uploaded by the MSP with advanced tier, only present if provided
- msp
Name String - name of the msp the org belongs to
- name String
- orggroup
Ids List<String> - session
Expiry Number
Import
Using pulumi import
, import mist_org
with:
Organization can be imported by specifying the org_id
$ pulumi import junipermist:org/base:base org_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a
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.