Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi
junipermist.site.getPsks
Explore with Pulumi AI
This data source provides the list of WAN Assurance Psks.
The Psks are used in the service_policies
from the Gateway configuration and Gateway templates
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/junipermist";
const psksVip = junipermist.site.getPsks({
siteId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
role: "vip",
});
import pulumi
import pulumi_junipermist as junipermist
psks_vip = junipermist.site.get_psks(site_id="15fca2ac-b1a6-47cc-9953-cc6906281550",
role="vip")
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.GetPsks(ctx, &site.GetPsksArgs{
SiteId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
Role: pulumi.StringRef("vip"),
}, 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.Site.GetPsks.Invoke(new()
{
SiteId = "15fca2ac-b1a6-47cc-9953-cc6906281550",
Role = "vip",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.site.SiteFunctions;
import com.pulumi.junipermist.site.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 = SiteFunctions.getPsks(GetPsksArgs.builder()
.siteId("15fca2ac-b1a6-47cc-9953-cc6906281550")
.role("vip")
.build());
}
}
variables:
psksVip:
fn::invoke:
Function: junipermist:site:getPsks
Arguments:
siteId: 15fca2ac-b1a6-47cc-9953-cc6906281550
role: vip
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(limit: Optional[int] = None,
name: Optional[str] = None,
page: Optional[int] = None,
role: Optional[str] = None,
site_id: Optional[str] = None,
ssid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPsksResult
def get_psks_output(limit: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
page: Optional[pulumi.Input[int]] = None,
role: Optional[pulumi.Input[str]] = None,
site_id: 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: junipermist:site/getPsks:getPsks
arguments:
# arguments dictionary
The following arguments are supported:
getPsks Result
The following output properties are available:
Supporting Types
GetPsksSitePsk
- Admin
Sso stringId - sso id for psk created from psk portal
- Created
Time double - 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
- Id string
- Mac string
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- Modified
Time double - 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:
macs
,multi
,single
- Vlan
Id string
- Admin
Sso stringId - sso id for psk created from psk portal
- Created
Time float64 - 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
- Id string
- Mac string
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- Modified
Time float64 - 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:
macs
,multi
,single
- Vlan
Id string
- admin
Sso StringId - sso id for psk created from psk portal
- created
Time Double - 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
- id String
- mac String
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- modified
Time Double - 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:
macs
,multi
,single
- vlan
Id String
- admin
Sso stringId - sso id for psk created from psk portal
- created
Time number - 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
- id string
- mac string
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- modified
Time number - 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:
macs
,multi
,single
- vlan
Id string
- admin_
sso_ strid - sso id for psk created from psk portal
- created_
time float - 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
- id str
- mac str
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- modified_
time float - 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:
macs
,multi
,single
- vlan_
id str
- admin
Sso StringId - sso id for psk created from psk portal
- created
Time Number - 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
- id String
- mac String
- if
usage
==single
, the mac that this PSK ties to, empty ifauto-binding
- modified
Time Number - 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:
macs
,multi
,single
- vlan
Id String
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mist
Terraform Provider.