1. Packages
  2. Juniper Mist Provider
  3. API Docs
  4. org
  5. getPsks
Juniper Mist v0.3.1 published on Monday, Apr 14, 2025 by Pulumi

junipermist.org.getPsks

Explore with Pulumi AI

Juniper Mist v0.3.1 published on Monday, Apr 14, 2025 by Pulumi

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  psksVip:
    fn::invoke:
      function: junipermist:org:getPsks
      arguments:
        orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
        name: psk_one
        role: vip
        ssid: psk_ssid
Copy

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>
Copy
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]
Copy
func GetPsks(ctx *Context, args *GetPsksArgs, opts ...InvokeOption) (*GetPsksResult, error)
func GetPsksOutput(ctx *Context, args *GetPsksOutputArgs, opts ...InvokeOption) GetPsksResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetPsksResult> getPsks(GetPsksArgs args, InvokeOptions options)
public static Output<GetPsksResult> getPsks(GetPsksArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: junipermist:org/getPsks:getPsks
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

OrgId This property is required. string
Name string
Role string
Ssid string
OrgId This property is required. string
Name string
Role string
Ssid string
orgId This property is required. String
name String
role String
ssid String
orgId This property is required. string
name string
role string
ssid string
org_id This property is required. str
name str
role str
ssid str
orgId This property is required. String
name String
role String
ssid String

getPsks Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
OrgId string
OrgPsks List<Pulumi.JuniperMist.Org.Outputs.GetPsksOrgPsk>
Name string
Role string
Ssid string
Id string
The provider-assigned unique ID for this managed resource.
OrgId string
OrgPsks []GetPsksOrgPsk
Name string
Role string
Ssid string
id String
The provider-assigned unique ID for this managed resource.
orgId String
orgPsks List<GetPsksOrgPsk>
name String
role String
ssid String
id string
The provider-assigned unique ID for this managed resource.
orgId string
orgPsks GetPsksOrgPsk[]
name string
role string
ssid string
id str
The provider-assigned unique ID for this managed resource.
org_id str
org_psks Sequence[GetPsksOrgPsk]
name str
role str
ssid str
id String
The provider-assigned unique ID for this managed resource.
orgId String
orgPsks List<Property Map>
name String
role String
ssid String

Supporting Types

GetPsksOrgPsk

AdminSsoId This property is required. string
sso id for psk created from psk portal
CreatedTime 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
ExpireTime This property is required. int
Expire time for this PSK key (epoch time in seconds). Default null (as no expiration)
ExpiryNotificationTime 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 if auto-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
MaxUsage This property is required. int
For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
ModifiedTime 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
NotifyExpiry This property is required. bool
If set to true, reminder notification will be sent when psk is about to expire
NotifyOnCreateOrEdit This property is required. bool
If set to true, notification will be sent when psk is created or edited
OldPassphrase This property is required. string
previous passphrase of the PSK if it has been rotated
OrgId 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
VlanId This property is required. string
AdminSsoId This property is required. string
sso id for psk created from psk portal
CreatedTime 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
ExpireTime This property is required. int
Expire time for this PSK key (epoch time in seconds). Default null (as no expiration)
ExpiryNotificationTime 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 if auto-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
MaxUsage This property is required. int
For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
ModifiedTime 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
NotifyExpiry This property is required. bool
If set to true, reminder notification will be sent when psk is about to expire
NotifyOnCreateOrEdit This property is required. bool
If set to true, notification will be sent when psk is created or edited
OldPassphrase This property is required. string
previous passphrase of the PSK if it has been rotated
OrgId 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
VlanId This property is required. string
adminSsoId This property is required. String
sso id for psk created from psk portal
createdTime 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
expireTime This property is required. Integer
Expire time for this PSK key (epoch time in seconds). Default null (as no expiration)
expiryNotificationTime 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 if auto-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
maxUsage This property is required. Integer
For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
modifiedTime 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
notifyExpiry This property is required. Boolean
If set to true, reminder notification will be sent when psk is about to expire
notifyOnCreateOrEdit This property is required. Boolean
If set to true, notification will be sent when psk is created or edited
oldPassphrase This property is required. String
previous passphrase of the PSK if it has been rotated
orgId 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
vlanId This property is required. String
adminSsoId This property is required. string
sso id for psk created from psk portal
createdTime 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
expireTime This property is required. number
Expire time for this PSK key (epoch time in seconds). Default null (as no expiration)
expiryNotificationTime 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 if auto-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
maxUsage This property is required. number
For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
modifiedTime 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
notifyExpiry This property is required. boolean
If set to true, reminder notification will be sent when psk is about to expire
notifyOnCreateOrEdit This property is required. boolean
If set to true, notification will be sent when psk is created or edited
oldPassphrase This property is required. string
previous passphrase of the PSK if it has been rotated
orgId 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
vlanId 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 if auto-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
adminSsoId This property is required. String
sso id for psk created from psk portal
createdTime 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
expireTime This property is required. Number
Expire time for this PSK key (epoch time in seconds). Default null (as no expiration)
expiryNotificationTime 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 if auto-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
maxUsage This property is required. Number
For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
modifiedTime 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
notifyExpiry This property is required. Boolean
If set to true, reminder notification will be sent when psk is about to expire
notifyOnCreateOrEdit This property is required. Boolean
If set to true, notification will be sent when psk is created or edited
oldPassphrase This property is required. String
previous passphrase of the PSK if it has been rotated
orgId 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
vlanId 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.
Juniper Mist v0.3.1 published on Monday, Apr 14, 2025 by Pulumi