junipermist.site.Psk
Explore with Pulumi AI
This data source provides the list of Site PSKs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/juniper-mist";
const pskOne = new junipermist.site.Psk("psk_one", {
siteId: terraformSite.id,
name: "JNP-FR-PAR",
passphrase: "secretone",
ssid: wlanOne.ssid,
usage: "multi",
});
import pulumi
import pulumi_juniper_mist as junipermist
psk_one = junipermist.site.Psk("psk_one",
site_id=terraform_site["id"],
name="JNP-FR-PAR",
passphrase="secretone",
ssid=wlan_one["ssid"],
usage="multi")
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.NewPsk(ctx, "psk_one", &site.PskArgs{
SiteId: pulumi.Any(terraformSite.Id),
Name: pulumi.String("JNP-FR-PAR"),
Passphrase: pulumi.String("secretone"),
Ssid: pulumi.Any(wlanOne.Ssid),
Usage: pulumi.String("multi"),
})
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 pskOne = new JuniperMist.Site.Psk("psk_one", new()
{
SiteId = terraformSite.Id,
Name = "JNP-FR-PAR",
Passphrase = "secretone",
Ssid = wlanOne.Ssid,
Usage = "multi",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.site.Psk;
import com.pulumi.junipermist.site.PskArgs;
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 pskOne = new Psk("pskOne", PskArgs.builder()
.siteId(terraformSite.id())
.name("JNP-FR-PAR")
.passphrase("secretone")
.ssid(wlanOne.ssid())
.usage("multi")
.build());
}
}
resources:
pskOne:
type: junipermist:site:Psk
name: psk_one
properties:
siteId: ${terraformSite.id}
name: JNP-FR-PAR
passphrase: secretone
ssid: ${wlanOne.ssid}
usage: multi
Create Psk Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Psk(name: string, args: PskArgs, opts?: CustomResourceOptions);
@overload
def Psk(resource_name: str,
args: PskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Psk(resource_name: str,
opts: Optional[ResourceOptions] = None,
passphrase: Optional[str] = None,
ssid: Optional[str] = None,
site_id: Optional[str] = None,
mac: Optional[str] = None,
name: Optional[str] = None,
note: Optional[str] = None,
notify_expiry: Optional[bool] = None,
notify_on_create_or_edit: Optional[bool] = None,
old_passphrase: Optional[str] = None,
email: Optional[str] = None,
role: Optional[str] = None,
expiry_notification_time: Optional[int] = None,
expire_time: Optional[int] = None,
usage: Optional[str] = None,
vlan_id: Optional[str] = None)
func NewPsk(ctx *Context, name string, args PskArgs, opts ...ResourceOption) (*Psk, error)
public Psk(string name, PskArgs args, CustomResourceOptions? opts = null)
type: junipermist:site:Psk
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 PskArgs
- 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 PskArgs
- 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 PskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PskArgs
- 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 junipermistPskResource = new JuniperMist.Site.Psk("junipermistPskResource", new()
{
Passphrase = "string",
Ssid = "string",
SiteId = "string",
Mac = "string",
Name = "string",
Note = "string",
NotifyExpiry = false,
NotifyOnCreateOrEdit = false,
OldPassphrase = "string",
Email = "string",
Role = "string",
ExpiryNotificationTime = 0,
ExpireTime = 0,
Usage = "string",
VlanId = "string",
});
example, err := site.NewPsk(ctx, "junipermistPskResource", &site.PskArgs{
Passphrase: pulumi.String("string"),
Ssid: pulumi.String("string"),
SiteId: pulumi.String("string"),
Mac: pulumi.String("string"),
Name: pulumi.String("string"),
Note: pulumi.String("string"),
NotifyExpiry: pulumi.Bool(false),
NotifyOnCreateOrEdit: pulumi.Bool(false),
OldPassphrase: pulumi.String("string"),
Email: pulumi.String("string"),
Role: pulumi.String("string"),
ExpiryNotificationTime: pulumi.Int(0),
ExpireTime: pulumi.Int(0),
Usage: pulumi.String("string"),
VlanId: pulumi.String("string"),
})
var junipermistPskResource = new Psk("junipermistPskResource", PskArgs.builder()
.passphrase("string")
.ssid("string")
.siteId("string")
.mac("string")
.name("string")
.note("string")
.notifyExpiry(false)
.notifyOnCreateOrEdit(false)
.oldPassphrase("string")
.email("string")
.role("string")
.expiryNotificationTime(0)
.expireTime(0)
.usage("string")
.vlanId("string")
.build());
junipermist_psk_resource = junipermist.site.Psk("junipermistPskResource",
passphrase="string",
ssid="string",
site_id="string",
mac="string",
name="string",
note="string",
notify_expiry=False,
notify_on_create_or_edit=False,
old_passphrase="string",
email="string",
role="string",
expiry_notification_time=0,
expire_time=0,
usage="string",
vlan_id="string")
const junipermistPskResource = new junipermist.site.Psk("junipermistPskResource", {
passphrase: "string",
ssid: "string",
siteId: "string",
mac: "string",
name: "string",
note: "string",
notifyExpiry: false,
notifyOnCreateOrEdit: false,
oldPassphrase: "string",
email: "string",
role: "string",
expiryNotificationTime: 0,
expireTime: 0,
usage: "string",
vlanId: "string",
});
type: junipermist:site:Psk
properties:
email: string
expireTime: 0
expiryNotificationTime: 0
mac: string
name: string
note: string
notifyExpiry: false
notifyOnCreateOrEdit: false
oldPassphrase: string
passphrase: string
role: string
siteId: string
ssid: string
usage: string
vlanId: string
Psk 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 Psk resource accepts the following input properties:
- Passphrase string
- passphrase of the PSK (8-63 character or 64 in hex)
- Site
Id string - Ssid string
- SSID this PSK should be applicable to
- Email string
- email to send psk expiring notifications to
- Expire
Time int - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - Expiry
Notification intTime - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- Mac string
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- Name string
- Note string
- Notify
Expiry bool - If set to true, reminder notification will be sent when psk is about to expire
- Notify
On boolCreate Or Edit - If set to true, notification will be sent when psk is created or edited
- Old
Passphrase string - previous passphrase of the PSK if it has been rotated
- Role string
- Usage string
- enum:
multi
,single
- Vlan
Id string
- Passphrase string
- passphrase of the PSK (8-63 character or 64 in hex)
- Site
Id string - Ssid string
- SSID this PSK should be applicable to
- Email string
- email to send psk expiring notifications to
- Expire
Time int - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - Expiry
Notification intTime - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- Mac string
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- Name string
- Note string
- Notify
Expiry bool - If set to true, reminder notification will be sent when psk is about to expire
- Notify
On boolCreate Or Edit - If set to true, notification will be sent when psk is created or edited
- Old
Passphrase string - previous passphrase of the PSK if it has been rotated
- Role string
- Usage string
- enum:
multi
,single
- Vlan
Id string
- passphrase String
- passphrase of the PSK (8-63 character or 64 in hex)
- site
Id String - ssid String
- SSID this PSK should be applicable to
- email String
- email to send psk expiring notifications to
- expire
Time Integer - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - expiry
Notification IntegerTime - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- mac String
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- name String
- note String
- notify
Expiry Boolean - If set to true, reminder notification will be sent when psk is about to expire
- notify
On BooleanCreate Or Edit - If set to true, notification will be sent when psk is created or edited
- old
Passphrase String - previous passphrase of the PSK if it has been rotated
- role String
- usage String
- enum:
multi
,single
- vlan
Id String
- passphrase string
- passphrase of the PSK (8-63 character or 64 in hex)
- site
Id string - ssid string
- SSID this PSK should be applicable to
- email string
- email to send psk expiring notifications to
- expire
Time number - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - expiry
Notification numberTime - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- mac string
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- name string
- note string
- notify
Expiry boolean - If set to true, reminder notification will be sent when psk is about to expire
- notify
On booleanCreate Or Edit - If set to true, notification will be sent when psk is created or edited
- old
Passphrase string - previous passphrase of the PSK if it has been rotated
- role string
- usage string
- enum:
multi
,single
- vlan
Id string
- passphrase str
- passphrase of the PSK (8-63 character or 64 in hex)
- site_
id str - ssid str
- SSID this PSK should be applicable to
- email str
- email to send psk expiring notifications to
- expire_
time int - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - expiry_
notification_ inttime - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- mac str
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- name str
- note str
- notify_
expiry bool - If set to true, reminder notification will be sent when psk is about to expire
- notify_
on_ boolcreate_ or_ edit - If set to true, notification will be sent when psk is created or edited
- old_
passphrase str - previous passphrase of the PSK if it has been rotated
- role str
- usage str
- enum:
multi
,single
- vlan_
id str
- passphrase String
- passphrase of the PSK (8-63 character or 64 in hex)
- site
Id String - ssid String
- SSID this PSK should be applicable to
- email String
- email to send psk expiring notifications to
- expire
Time Number - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - expiry
Notification NumberTime - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- mac String
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- name String
- note String
- notify
Expiry Boolean - If set to true, reminder notification will be sent when psk is about to expire
- notify
On BooleanCreate Or Edit - If set to true, notification will be sent when psk is created or edited
- old
Passphrase String - previous passphrase of the PSK if it has been rotated
- role String
- usage String
- enum:
multi
,single
- vlan
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the Psk resource produces the following output properties:
Look up Existing Psk Resource
Get an existing Psk 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?: PskState, opts?: CustomResourceOptions): Psk
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
email: Optional[str] = None,
expire_time: Optional[int] = None,
expiry_notification_time: Optional[int] = None,
mac: Optional[str] = None,
name: Optional[str] = None,
note: Optional[str] = None,
notify_expiry: Optional[bool] = None,
notify_on_create_or_edit: Optional[bool] = None,
old_passphrase: Optional[str] = None,
org_id: Optional[str] = None,
passphrase: Optional[str] = None,
role: Optional[str] = None,
site_id: Optional[str] = None,
ssid: Optional[str] = None,
usage: Optional[str] = None,
vlan_id: Optional[str] = None) -> Psk
func GetPsk(ctx *Context, name string, id IDInput, state *PskState, opts ...ResourceOption) (*Psk, error)
public static Psk Get(string name, Input<string> id, PskState? state, CustomResourceOptions? opts = null)
public static Psk get(String name, Output<String> id, PskState 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.
- Email string
- email to send psk expiring notifications to
- Expire
Time int - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - Expiry
Notification intTime - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- Mac string
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- Name string
- Note string
- Notify
Expiry bool - If set to true, reminder notification will be sent when psk is about to expire
- Notify
On boolCreate Or Edit - If set to true, notification will be sent when psk is created or edited
- Old
Passphrase string - previous passphrase of the PSK if it has been rotated
- Org
Id string - Passphrase string
- passphrase of the PSK (8-63 character or 64 in hex)
- Role string
- Site
Id string - Ssid string
- SSID this PSK should be applicable to
- Usage string
- enum:
multi
,single
- Vlan
Id string
- Email string
- email to send psk expiring notifications to
- Expire
Time int - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - Expiry
Notification intTime - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- Mac string
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- Name string
- Note string
- Notify
Expiry bool - If set to true, reminder notification will be sent when psk is about to expire
- Notify
On boolCreate Or Edit - If set to true, notification will be sent when psk is created or edited
- Old
Passphrase string - previous passphrase of the PSK if it has been rotated
- Org
Id string - Passphrase string
- passphrase of the PSK (8-63 character or 64 in hex)
- Role string
- Site
Id string - Ssid string
- SSID this PSK should be applicable to
- Usage string
- enum:
multi
,single
- Vlan
Id string
- email String
- email to send psk expiring notifications to
- expire
Time Integer - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - expiry
Notification IntegerTime - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- mac String
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- name String
- note String
- notify
Expiry Boolean - If set to true, reminder notification will be sent when psk is about to expire
- notify
On BooleanCreate Or Edit - If set to true, notification will be sent when psk is created or edited
- old
Passphrase String - previous passphrase of the PSK if it has been rotated
- org
Id String - passphrase String
- passphrase of the PSK (8-63 character or 64 in hex)
- role String
- site
Id String - ssid String
- SSID this PSK should be applicable to
- usage String
- enum:
multi
,single
- vlan
Id String
- email string
- email to send psk expiring notifications to
- expire
Time number - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - expiry
Notification numberTime - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- mac string
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- name string
- note string
- notify
Expiry boolean - If set to true, reminder notification will be sent when psk is about to expire
- notify
On booleanCreate Or Edit - If set to true, notification will be sent when psk is created or edited
- old
Passphrase string - previous passphrase of the PSK if it has been rotated
- org
Id string - passphrase string
- passphrase of the PSK (8-63 character or 64 in hex)
- role string
- site
Id string - ssid string
- SSID this PSK should be applicable to
- usage string
- enum:
multi
,single
- vlan
Id string
- email str
- email to send psk expiring notifications to
- expire_
time int - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - expiry_
notification_ inttime - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- mac str
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- name str
- note str
- notify_
expiry bool - If set to true, reminder notification will be sent when psk is about to expire
- notify_
on_ boolcreate_ or_ edit - If set to true, notification will be sent when psk is created or edited
- old_
passphrase str - previous passphrase of the PSK if it has been rotated
- org_
id str - passphrase str
- passphrase of the PSK (8-63 character or 64 in hex)
- role str
- site_
id str - ssid str
- SSID this PSK should be applicable to
- usage str
- enum:
multi
,single
- vlan_
id str
- email String
- email to send psk expiring notifications to
- expire
Time Number - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - expiry
Notification NumberTime - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- mac String
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- name String
- note String
- notify
Expiry Boolean - If set to true, reminder notification will be sent when psk is about to expire
- notify
On BooleanCreate Or Edit - If set to true, notification will be sent when psk is created or edited
- old
Passphrase String - previous passphrase of the PSK if it has been rotated
- org
Id String - passphrase String
- passphrase of the PSK (8-63 character or 64 in hex)
- role String
- site
Id String - ssid String
- SSID this PSK should be applicable to
- usage String
- enum:
multi
,single
- vlan
Id String
Import
Using pulumi import
, import mist_site_psk
with:
Site PSK can be imported by specifying the site_id and the psk_id
$ pulumi import junipermist:site/psk:Psk psk_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.