1. Packages
  2. Juniper Mist
  3. API Docs
  4. org
  5. getPsks
Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi

junipermist.org.getPsks

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi

    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.org.getPsks({
        orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
        role: "vip",
    });
    
    import pulumi
    import pulumi_junipermist as junipermist
    
    psks_vip = junipermist.org.get_psks(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550",
        role="vip")
    
    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",
    			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.Org.GetPsks.Invoke(new()
        {
            OrgId = "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.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")
                .role("vip")
                .build());
    
        }
    }
    
    variables:
      psksVip:
        fn::invoke:
          Function: junipermist:org:getPsks
          Arguments:
            orgId: 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,
                 org_id: Optional[str] = None,
                 page: Optional[int] = None,
                 role: 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,
                 org_id: Optional[pulumi.Input[str]] = None,
                 page: Optional[pulumi.Input[int]] = 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: junipermist:org/getPsks:getPsks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrgId string
    Limit int
    Name string
    Page int
    Role string
    Ssid string
    OrgId string
    Limit int
    Name string
    Page int
    Role string
    Ssid string
    orgId String
    limit Integer
    name String
    page Integer
    role String
    ssid String
    orgId string
    limit number
    name string
    page number
    role string
    ssid string
    org_id str
    limit int
    name str
    page int
    role str
    ssid str
    orgId String
    limit Number
    name String
    page Number
    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>
    Limit int
    Name string
    Page int
    Role string
    Ssid string
    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    OrgPsks []GetPsksOrgPsk
    Limit int
    Name string
    Page int
    Role string
    Ssid string
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    orgPsks List<GetPsksOrgPsk>
    limit Integer
    name String
    page Integer
    role String
    ssid String
    id string
    The provider-assigned unique ID for this managed resource.
    orgId string
    orgPsks GetPsksOrgPsk[]
    limit number
    name string
    page number
    role string
    ssid string
    id str
    The provider-assigned unique ID for this managed resource.
    org_id str
    org_psks Sequence[GetPsksOrgPsk]
    limit int
    name str
    page int
    role str
    ssid str
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    orgPsks List<Property Map>
    limit Number
    name String
    page Number
    role String
    ssid String

    Supporting Types

    GetPsksOrgPsk

    AdminSsoId string
    sso id for psk created from psk portal
    CreatedTime double
    Email string
    email to send psk expiring notifications to
    ExpireTime int
    Expire time for this PSK key (epoch time in seconds). Default null (as no expiration)
    ExpiryNotificationTime 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 string
    Mac string
    if usage==single, the mac that this PSK ties to, empty if auto-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
    MaxUsage int
    For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
    ModifiedTime double
    Name string
    Note string
    NotifyExpiry bool
    If set to true, reminder notification will be sent when psk is about to expire
    NotifyOnCreateOrEdit bool
    If set to true, notification will be sent when psk is created or edited
    OldPassphrase string
    previous passphrase of the PSK if it has been rotated
    OrgId 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
    VlanId string
    AdminSsoId string
    sso id for psk created from psk portal
    CreatedTime float64
    Email string
    email to send psk expiring notifications to
    ExpireTime int
    Expire time for this PSK key (epoch time in seconds). Default null (as no expiration)
    ExpiryNotificationTime 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 string
    Mac string
    if usage==single, the mac that this PSK ties to, empty if auto-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
    MaxUsage int
    For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
    ModifiedTime float64
    Name string
    Note string
    NotifyExpiry bool
    If set to true, reminder notification will be sent when psk is about to expire
    NotifyOnCreateOrEdit bool
    If set to true, notification will be sent when psk is created or edited
    OldPassphrase string
    previous passphrase of the PSK if it has been rotated
    OrgId 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
    VlanId string
    adminSsoId String
    sso id for psk created from psk portal
    createdTime Double
    email String
    email to send psk expiring notifications to
    expireTime Integer
    Expire time for this PSK key (epoch time in seconds). Default null (as no expiration)
    expiryNotificationTime 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 String
    mac String
    if usage==single, the mac that this PSK ties to, empty if auto-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
    maxUsage Integer
    For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
    modifiedTime Double
    name String
    note String
    notifyExpiry Boolean
    If set to true, reminder notification will be sent when psk is about to expire
    notifyOnCreateOrEdit Boolean
    If set to true, notification will be sent when psk is created or edited
    oldPassphrase String
    previous passphrase of the PSK if it has been rotated
    orgId 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
    vlanId String
    adminSsoId string
    sso id for psk created from psk portal
    createdTime number
    email string
    email to send psk expiring notifications to
    expireTime number
    Expire time for this PSK key (epoch time in seconds). Default null (as no expiration)
    expiryNotificationTime 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 string
    mac string
    if usage==single, the mac that this PSK ties to, empty if auto-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
    maxUsage number
    For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
    modifiedTime number
    name string
    note string
    notifyExpiry boolean
    If set to true, reminder notification will be sent when psk is about to expire
    notifyOnCreateOrEdit boolean
    If set to true, notification will be sent when psk is created or edited
    oldPassphrase string
    previous passphrase of the PSK if it has been rotated
    orgId 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
    vlanId string
    admin_sso_id str
    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_time 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 str
    mac str
    if usage==single, the mac that this PSK ties to, empty if auto-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)
    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_create_or_edit bool
    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
    adminSsoId String
    sso id for psk created from psk portal
    createdTime Number
    email String
    email to send psk expiring notifications to
    expireTime Number
    Expire time for this PSK key (epoch time in seconds). Default null (as no expiration)
    expiryNotificationTime 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 String
    mac String
    if usage==single, the mac that this PSK ties to, empty if auto-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
    maxUsage Number
    For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)
    modifiedTime Number
    name String
    note String
    notifyExpiry Boolean
    If set to true, reminder notification will be sent when psk is about to expire
    notifyOnCreateOrEdit Boolean
    If set to true, notification will be sent when psk is created or edited
    oldPassphrase String
    previous passphrase of the PSK if it has been rotated
    orgId 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
    vlanId String

    Package Details

    Repository
    junipermist pulumi/pulumi-junipermist
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mist Terraform Provider.
    junipermist logo
    Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi