junipermist.org.Psk
Explore with Pulumi AI
This data source provides the list of Org PSKs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/juniper-mist";
const pskOne = new junipermist.org.Psk("psk_one", {
orgId: terraformTest.id,
name: "JNP-FR-PAR",
passphrase: "secretone",
ssid: wlanOne.ssid,
usage: "multi",
});
import pulumi
import pulumi_juniper_mist as junipermist
psk_one = junipermist.org.Psk("psk_one",
org_id=terraform_test["id"],
name="JNP-FR-PAR",
passphrase="secretone",
ssid=wlan_one["ssid"],
usage="multi")
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.NewPsk(ctx, "psk_one", &org.PskArgs{
OrgId: pulumi.Any(terraformTest.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.Org.Psk("psk_one", new()
{
OrgId = terraformTest.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.org.Psk;
import com.pulumi.junipermist.org.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()
.orgId(terraformTest.id())
.name("JNP-FR-PAR")
.passphrase("secretone")
.ssid(wlanOne.ssid())
.usage("multi")
.build());
}
}
resources:
pskOne:
type: junipermist:org:Psk
name: psk_one
properties:
orgId: ${terraformTest.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,
org_id: Optional[str] = None,
ssid: Optional[str] = None,
passphrase: Optional[str] = None,
macs: Optional[Sequence[str]] = None,
old_passphrase: Optional[str] = None,
max_usage: Optional[int] = None,
name: Optional[str] = None,
note: Optional[str] = None,
notify_expiry: Optional[bool] = None,
notify_on_create_or_edit: Optional[bool] = None,
email: Optional[str] = None,
mac: Optional[str] = None,
expiry_notification_time: Optional[int] = None,
role: Optional[str] = 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:org: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 pskResource = new JuniperMist.Org.Psk("pskResource", new()
{
OrgId = "string",
Ssid = "string",
Passphrase = "string",
Macs = new[]
{
"string",
},
OldPassphrase = "string",
MaxUsage = 0,
Name = "string",
Note = "string",
NotifyExpiry = false,
NotifyOnCreateOrEdit = false,
Email = "string",
Mac = "string",
ExpiryNotificationTime = 0,
Role = "string",
ExpireTime = 0,
Usage = "string",
VlanId = "string",
});
example, err := org.NewPsk(ctx, "pskResource", &org.PskArgs{
OrgId: pulumi.String("string"),
Ssid: pulumi.String("string"),
Passphrase: pulumi.String("string"),
Macs: pulumi.StringArray{
pulumi.String("string"),
},
OldPassphrase: pulumi.String("string"),
MaxUsage: pulumi.Int(0),
Name: pulumi.String("string"),
Note: pulumi.String("string"),
NotifyExpiry: pulumi.Bool(false),
NotifyOnCreateOrEdit: pulumi.Bool(false),
Email: pulumi.String("string"),
Mac: pulumi.String("string"),
ExpiryNotificationTime: pulumi.Int(0),
Role: pulumi.String("string"),
ExpireTime: pulumi.Int(0),
Usage: pulumi.String("string"),
VlanId: pulumi.String("string"),
})
var pskResource = new Psk("pskResource", PskArgs.builder()
.orgId("string")
.ssid("string")
.passphrase("string")
.macs("string")
.oldPassphrase("string")
.maxUsage(0)
.name("string")
.note("string")
.notifyExpiry(false)
.notifyOnCreateOrEdit(false)
.email("string")
.mac("string")
.expiryNotificationTime(0)
.role("string")
.expireTime(0)
.usage("string")
.vlanId("string")
.build());
psk_resource = junipermist.org.Psk("pskResource",
org_id="string",
ssid="string",
passphrase="string",
macs=["string"],
old_passphrase="string",
max_usage=0,
name="string",
note="string",
notify_expiry=False,
notify_on_create_or_edit=False,
email="string",
mac="string",
expiry_notification_time=0,
role="string",
expire_time=0,
usage="string",
vlan_id="string")
const pskResource = new junipermist.org.Psk("pskResource", {
orgId: "string",
ssid: "string",
passphrase: "string",
macs: ["string"],
oldPassphrase: "string",
maxUsage: 0,
name: "string",
note: "string",
notifyExpiry: false,
notifyOnCreateOrEdit: false,
email: "string",
mac: "string",
expiryNotificationTime: 0,
role: "string",
expireTime: 0,
usage: "string",
vlanId: "string",
});
type: junipermist:org:Psk
properties:
email: string
expireTime: 0
expiryNotificationTime: 0
mac: string
macs:
- string
maxUsage: 0
name: string
note: string
notifyExpiry: false
notifyOnCreateOrEdit: false
oldPassphrase: string
orgId: string
passphrase: string
role: 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
The Psk resource accepts the following input properties:
- Org
Id string - Passphrase string
- passphrase of the PSK (8-63 character or 64 in hex)
- 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
- Macs List<string>
- if
usage
==macs
, this list contains N number of client mac addresses or mac patterns(11:22:*) or both. This list is capped at 5000 - Max
Usage int - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- 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:
macs
,multi
,single
- Vlan
Id string
- Org
Id string - Passphrase string
- passphrase of the PSK (8-63 character or 64 in hex)
- 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
- Macs []string
- if
usage
==macs
, this list contains N number of client mac addresses or mac patterns(11:22:*) or both. This list is capped at 5000 - Max
Usage int - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- 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:
macs
,multi
,single
- Vlan
Id string
- org
Id String - passphrase String
- passphrase of the PSK (8-63 character or 64 in hex)
- 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
- macs List<String>
- if
usage
==macs
, this list contains N number of client mac addresses or mac patterns(11:22:*) or both. This list is capped at 5000 - max
Usage Integer - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- 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:
macs
,multi
,single
- vlan
Id String
- org
Id string - passphrase string
- passphrase of the PSK (8-63 character or 64 in hex)
- 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
- macs string[]
- if
usage
==macs
, this list contains N number of client mac addresses or mac patterns(11:22:*) or both. This list is capped at 5000 - max
Usage number - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- 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:
macs
,multi
,single
- vlan
Id string
- org_
id str - passphrase str
- passphrase of the PSK (8-63 character or 64 in hex)
- 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
- macs Sequence[str]
- if
usage
==macs
, this list contains N number of client mac addresses or mac patterns(11:22:*) or both. This list is capped at 5000 - max_
usage int - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- 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:
macs
,multi
,single
- vlan_
id str
- org
Id String - passphrase String
- passphrase of the PSK (8-63 character or 64 in hex)
- 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
- macs List<String>
- if
usage
==macs
, this list contains N number of client mac addresses or mac patterns(11:22:*) or both. This list is capped at 5000 - max
Usage Number - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- 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:
macs
,multi
,single
- vlan
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the Psk 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 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,
macs: Optional[Sequence[str]] = None,
max_usage: Optional[int] = 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,
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
- Macs List<string>
- if
usage
==macs
, this list contains N number of client mac addresses or mac patterns(11:22:*) or both. This list is capped at 5000 - Max
Usage int - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- 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
- Ssid string
- SSID this PSK should be applicable to
- Usage string
- enum:
macs
,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
- Macs []string
- if
usage
==macs
, this list contains N number of client mac addresses or mac patterns(11:22:*) or both. This list is capped at 5000 - Max
Usage int - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- 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
- Ssid string
- SSID this PSK should be applicable to
- Usage string
- enum:
macs
,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
- macs List<String>
- if
usage
==macs
, this list contains N number of client mac addresses or mac patterns(11:22:*) or both. This list is capped at 5000 - max
Usage Integer - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- 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
- ssid String
- SSID this PSK should be applicable to
- usage String
- enum:
macs
,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
- macs string[]
- if
usage
==macs
, this list contains N number of client mac addresses or mac patterns(11:22:*) or both. This list is capped at 5000 - max
Usage number - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- 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
- ssid string
- SSID this PSK should be applicable to
- usage string
- enum:
macs
,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
- macs Sequence[str]
- if
usage
==macs
, this list contains N number of client mac addresses or mac patterns(11:22:*) or both. This list is capped at 5000 - max_
usage int - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- 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
- ssid str
- SSID this PSK should be applicable to
- usage str
- enum:
macs
,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
- macs List<String>
- if
usage
==macs
, this list contains N number of client mac addresses or mac patterns(11:22:*) or both. This list is capped at 5000 - max
Usage Number - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- 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
- ssid String
- SSID this PSK should be applicable to
- usage String
- enum:
macs
,multi
,single
- vlan
Id String
Import
Using pulumi import
, import mist_org_psk
with:
Org PSK can be imported by specifying the org_id and the psk_id
$ pulumi import junipermist:org/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.