junipermist.org.getPsks
Explore with Pulumi AI
This data source provides the list Org Psks.
A multi PSK (Pre-Shared Key) is a feature that allows the use of multiple PSKs for securing network connections.
It provides a simple and comprehensive way to onboard client devices without relying on client mac addresses.
Each psk has its own key name, which can be used for user-level accountability, key rotation, and visibility in the management platform. It supports the creation, rotation, and auto-expiration of psks, and allows vlan assignment and role assignment for dynamic per-user policies.
Multi PSKs create virtual broadcast domains and can be used for end-user onboarding via authenticated sso login.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/junipermist";
const psksVip = junipermist.org.getPsks({
orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
name: "psk_one",
role: "vip",
ssid: "psk_ssid",
});
import pulumi
import pulumi_junipermist as junipermist
psks_vip = junipermist.org.get_psks(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550",
name="psk_one",
role="vip",
ssid="psk_ssid")
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.GetPsks(ctx, &org.GetPsksArgs{
OrgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
Name: pulumi.StringRef("psk_one"),
Role: pulumi.StringRef("vip"),
Ssid: pulumi.StringRef("psk_ssid"),
}, nil)
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 psksVip = JuniperMist.Org.GetPsks.Invoke(new()
{
OrgId = "15fca2ac-b1a6-47cc-9953-cc6906281550",
Name = "psk_one",
Role = "vip",
Ssid = "psk_ssid",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.org.OrgFunctions;
import com.pulumi.junipermist.org.inputs.GetPsksArgs;
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) {
final var psksVip = OrgFunctions.getPsks(GetPsksArgs.builder()
.orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
.name("psk_one")
.role("vip")
.ssid("psk_ssid")
.build());
}
}
variables:
psksVip:
fn::invoke:
function: junipermist:org:getPsks
arguments:
orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
name: psk_one
role: vip
ssid: psk_ssid
Using getPsks
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPsks(args: GetPsksArgs, opts?: InvokeOptions): Promise<GetPsksResult>
function getPsksOutput(args: GetPsksOutputArgs, opts?: InvokeOptions): Output<GetPsksResult>
def get_psks(name: Optional[str] = None,
org_id: Optional[str] = None,
role: Optional[str] = None,
ssid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPsksResult
def get_psks_output(name: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
role: Optional[pulumi.Input[str]] = None,
ssid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPsksResult]
func GetPsks(ctx *Context, args *GetPsksArgs, opts ...InvokeOption) (*GetPsksResult, error)
func GetPsksOutput(ctx *Context, args *GetPsksOutputArgs, opts ...InvokeOption) GetPsksResultOutput
> Note: This function is named GetPsks
in the Go SDK.
public static class GetPsks
{
public static Task<GetPsksResult> InvokeAsync(GetPsksArgs args, InvokeOptions? opts = null)
public static Output<GetPsksResult> Invoke(GetPsksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPsksResult> getPsks(GetPsksArgs args, InvokeOptions options)
public static Output<GetPsksResult> getPsks(GetPsksArgs args, InvokeOptions options)
fn::invoke:
function: junipermist:org/getPsks:getPsks
arguments:
# arguments dictionary
The following arguments are supported:
getPsks Result
The following output properties are available:
Supporting Types
GetPsksOrgPsk
- Admin
Sso Id This property is required. string - sso id for psk created from psk portal
- Created
Time This property is required. double - When the object has been created, in epoch
- Email
This property is required. string - email to send psk expiring notifications to
- Expire
Time This property is required. int - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - Expiry
Notification Time This property is required. int - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- Id
This property is required. string - Unique ID of the object instance in the Mist Organization
- Mac
This property is required. string - If
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- Macs
This property is required. List<string> - If
usage
==macs
, this list contains N number of client mac addresses or mac patterns(1122*) or both. This list is capped at 5000 - Max
Usage This property is required. int - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- Modified
Time This property is required. double - When the object has been modified for the last time, in epoch
- Name
This property is required. string - Note
This property is required. string - Notify
Expiry This property is required. bool - If set to true, reminder notification will be sent when psk is about to expire
- Notify
On Create Or Edit This property is required. bool - If set to true, notification will be sent when psk is created or edited
- Old
Passphrase This property is required. string - previous passphrase of the PSK if it has been rotated
- Org
Id This property is required. string - Passphrase
This property is required. string - passphrase of the PSK (8-63 character or 64 in hex)
- Role
This property is required. string - Ssid
This property is required. string - SSID this PSK should be applicable to
- Usage
This property is required. string - enum:
macs
,multi
,single
- Vlan
Id This property is required. string
- Admin
Sso Id This property is required. string - sso id for psk created from psk portal
- Created
Time This property is required. float64 - When the object has been created, in epoch
- Email
This property is required. string - email to send psk expiring notifications to
- Expire
Time This property is required. int - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - Expiry
Notification Time This property is required. int - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- Id
This property is required. string - Unique ID of the object instance in the Mist Organization
- Mac
This property is required. string - If
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- Macs
This property is required. []string - If
usage
==macs
, this list contains N number of client mac addresses or mac patterns(1122*) or both. This list is capped at 5000 - Max
Usage This property is required. int - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- Modified
Time This property is required. float64 - When the object has been modified for the last time, in epoch
- Name
This property is required. string - Note
This property is required. string - Notify
Expiry This property is required. bool - If set to true, reminder notification will be sent when psk is about to expire
- Notify
On Create Or Edit This property is required. bool - If set to true, notification will be sent when psk is created or edited
- Old
Passphrase This property is required. string - previous passphrase of the PSK if it has been rotated
- Org
Id This property is required. string - Passphrase
This property is required. string - passphrase of the PSK (8-63 character or 64 in hex)
- Role
This property is required. string - Ssid
This property is required. string - SSID this PSK should be applicable to
- Usage
This property is required. string - enum:
macs
,multi
,single
- Vlan
Id This property is required. string
- admin
Sso Id This property is required. String - sso id for psk created from psk portal
- created
Time This property is required. Double - When the object has been created, in epoch
- email
This property is required. String - email to send psk expiring notifications to
- expire
Time This property is required. Integer - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - expiry
Notification Time This property is required. Integer - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- id
This property is required. String - Unique ID of the object instance in the Mist Organization
- mac
This property is required. String - If
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- macs
This property is required. List<String> - If
usage
==macs
, this list contains N number of client mac addresses or mac patterns(1122*) or both. This list is capped at 5000 - max
Usage This property is required. Integer - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- modified
Time This property is required. Double - When the object has been modified for the last time, in epoch
- name
This property is required. String - note
This property is required. String - notify
Expiry This property is required. Boolean - If set to true, reminder notification will be sent when psk is about to expire
- notify
On Create Or Edit This property is required. Boolean - If set to true, notification will be sent when psk is created or edited
- old
Passphrase This property is required. String - previous passphrase of the PSK if it has been rotated
- org
Id This property is required. String - passphrase
This property is required. String - passphrase of the PSK (8-63 character or 64 in hex)
- role
This property is required. String - ssid
This property is required. String - SSID this PSK should be applicable to
- usage
This property is required. String - enum:
macs
,multi
,single
- vlan
Id This property is required. String
- admin
Sso Id This property is required. string - sso id for psk created from psk portal
- created
Time This property is required. number - When the object has been created, in epoch
- email
This property is required. string - email to send psk expiring notifications to
- expire
Time This property is required. number - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - expiry
Notification Time This property is required. number - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- id
This property is required. string - Unique ID of the object instance in the Mist Organization
- mac
This property is required. string - If
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- macs
This property is required. string[] - If
usage
==macs
, this list contains N number of client mac addresses or mac patterns(1122*) or both. This list is capped at 5000 - max
Usage This property is required. number - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- modified
Time This property is required. number - When the object has been modified for the last time, in epoch
- name
This property is required. string - note
This property is required. string - notify
Expiry This property is required. boolean - If set to true, reminder notification will be sent when psk is about to expire
- notify
On Create Or Edit This property is required. boolean - If set to true, notification will be sent when psk is created or edited
- old
Passphrase This property is required. string - previous passphrase of the PSK if it has been rotated
- org
Id This property is required. string - passphrase
This property is required. string - passphrase of the PSK (8-63 character or 64 in hex)
- role
This property is required. string - ssid
This property is required. string - SSID this PSK should be applicable to
- usage
This property is required. string - enum:
macs
,multi
,single
- vlan
Id This property is required. string
- admin_
sso_ id This property is required. str - sso id for psk created from psk portal
- created_
time This property is required. float - When the object has been created, in epoch
- email
This property is required. str - email to send psk expiring notifications to
- expire_
time This property is required. int - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - expiry_
notification_ time This property is required. int - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- id
This property is required. str - Unique ID of the object instance in the Mist Organization
- mac
This property is required. str - If
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- macs
This property is required. Sequence[str] - If
usage
==macs
, this list contains N number of client mac addresses or mac patterns(1122*) or both. This list is capped at 5000 - max_
usage This property is required. int - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- modified_
time This property is required. float - When the object has been modified for the last time, in epoch
- name
This property is required. str - note
This property is required. str - notify_
expiry This property is required. bool - If set to true, reminder notification will be sent when psk is about to expire
- notify_
on_ create_ or_ edit This property is required. bool - If set to true, notification will be sent when psk is created or edited
- old_
passphrase This property is required. str - previous passphrase of the PSK if it has been rotated
- org_
id This property is required. str - passphrase
This property is required. str - passphrase of the PSK (8-63 character or 64 in hex)
- role
This property is required. str - ssid
This property is required. str - SSID this PSK should be applicable to
- usage
This property is required. str - enum:
macs
,multi
,single
- vlan_
id This property is required. str
- admin
Sso Id This property is required. String - sso id for psk created from psk portal
- created
Time This property is required. Number - When the object has been created, in epoch
- email
This property is required. String - email to send psk expiring notifications to
- expire
Time This property is required. Number - Expire time for this PSK key (epoch time in seconds). Default
null
(as no expiration) - expiry
Notification Time This property is required. Number - Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire
- id
This property is required. String - Unique ID of the object instance in the Mist Organization
- mac
This property is required. String - If
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- macs
This property is required. List<String> - If
usage
==macs
, this list contains N number of client mac addresses or mac patterns(1122*) or both. This list is capped at 5000 - max
Usage This property is required. Number - For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
- modified
Time This property is required. Number - When the object has been modified for the last time, in epoch
- name
This property is required. String - note
This property is required. String - notify
Expiry This property is required. Boolean - If set to true, reminder notification will be sent when psk is about to expire
- notify
On Create Or Edit This property is required. Boolean - If set to true, notification will be sent when psk is created or edited
- old
Passphrase This property is required. String - previous passphrase of the PSK if it has been rotated
- org
Id This property is required. String - passphrase
This property is required. String - passphrase of the PSK (8-63 character or 64 in hex)
- role
This property is required. String - ssid
This property is required. String - SSID this PSK should be applicable to
- usage
This property is required. String - enum:
macs
,multi
,single
- vlan
Id This property is required. String
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mist
Terraform Provider.