1. Packages
  2. Juniper Mist Provider
  3. API Docs
  4. device
  5. getVersions
Juniper Mist v0.6.3 published on Saturday, Sep 6, 2025 by Pulumi

junipermist.device.getVersions

Start a Neo task
Explain and create a junipermist.device.getVersions resource
junipermist logo
Juniper Mist v0.6.3 published on Saturday, Sep 6, 2025 by Pulumi

    This data source provides the list of available Firmware Versions.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as junipermist from "@pulumi/juniper-mist";
    
    const ap24Versions = junipermist.device.getVersions({
        orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
        type: "ap",
        model: "AP24",
    });
    
    import pulumi
    import pulumi_junipermist as junipermist
    
    ap24_versions = junipermist.device.get_versions(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550",
        type="ap",
        model="AP24")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/device"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := device.GetVersions(ctx, &device.GetVersionsArgs{
    			OrgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
    			Type:  "ap",
    			Model: "AP24",
    		}, 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 ap24Versions = JuniperMist.Device.GetVersions.Invoke(new()
        {
            OrgId = "15fca2ac-b1a6-47cc-9953-cc6906281550",
            Type = "ap",
            Model = "AP24",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.junipermist.device.DeviceFunctions;
    import com.pulumi.junipermist.device.inputs.GetVersionsArgs;
    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 ap24Versions = DeviceFunctions.getVersions(GetVersionsArgs.builder()
                .orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
                .type("ap")
                .model("AP24")
                .build());
    
        }
    }
    
    variables:
      ap24Versions:
        fn::invoke:
          function: junipermist:device:getVersions
          arguments:
            orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
            type: ap
            model: AP24
    

    Using getVersions

    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 getVersions(args: GetVersionsArgs, opts?: InvokeOptions): Promise<GetVersionsResult>
    function getVersionsOutput(args: GetVersionsOutputArgs, opts?: InvokeOptions): Output<GetVersionsResult>
    def get_versions(model: Optional[str] = None,
                     org_id: Optional[str] = None,
                     type: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetVersionsResult
    def get_versions_output(model: Optional[pulumi.Input[str]] = None,
                     org_id: Optional[pulumi.Input[str]] = None,
                     type: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetVersionsResult]
    func GetVersions(ctx *Context, args *GetVersionsArgs, opts ...InvokeOption) (*GetVersionsResult, error)
    func GetVersionsOutput(ctx *Context, args *GetVersionsOutputArgs, opts ...InvokeOption) GetVersionsResultOutput

    > Note: This function is named GetVersions in the Go SDK.

    public static class GetVersions 
    {
        public static Task<GetVersionsResult> InvokeAsync(GetVersionsArgs args, InvokeOptions? opts = null)
        public static Output<GetVersionsResult> Invoke(GetVersionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVersionsResult> getVersions(GetVersionsArgs args, InvokeOptions options)
    public static Output<GetVersionsResult> getVersions(GetVersionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: junipermist:device/getVersions:getVersions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Model string
    Fetch version for device model, use/combine with type as needed (for switch and gateway devices)
    OrgId string
    Type string
    enum: ap, gateway, switch
    Model string
    Fetch version for device model, use/combine with type as needed (for switch and gateway devices)
    OrgId string
    Type string
    enum: ap, gateway, switch
    model String
    Fetch version for device model, use/combine with type as needed (for switch and gateway devices)
    orgId String
    type String
    enum: ap, gateway, switch
    model string
    Fetch version for device model, use/combine with type as needed (for switch and gateway devices)
    orgId string
    type string
    enum: ap, gateway, switch
    model str
    Fetch version for device model, use/combine with type as needed (for switch and gateway devices)
    org_id str
    type str
    enum: ap, gateway, switch
    model String
    Fetch version for device model, use/combine with type as needed (for switch and gateway devices)
    orgId String
    type String
    enum: ap, gateway, switch

    getVersions Result

    The following output properties are available:

    DeviceVersions List<Pulumi.JuniperMist.Device.Outputs.GetVersionsDeviceVersion>
    Id string
    The provider-assigned unique ID for this managed resource.
    Model string
    Fetch version for device model, use/combine with type as needed (for switch and gateway devices)
    OrgId string
    Type string
    enum: ap, gateway, switch
    DeviceVersions []GetVersionsDeviceVersion
    Id string
    The provider-assigned unique ID for this managed resource.
    Model string
    Fetch version for device model, use/combine with type as needed (for switch and gateway devices)
    OrgId string
    Type string
    enum: ap, gateway, switch
    deviceVersions List<GetVersionsDeviceVersion>
    id String
    The provider-assigned unique ID for this managed resource.
    model String
    Fetch version for device model, use/combine with type as needed (for switch and gateway devices)
    orgId String
    type String
    enum: ap, gateway, switch
    deviceVersions GetVersionsDeviceVersion[]
    id string
    The provider-assigned unique ID for this managed resource.
    model string
    Fetch version for device model, use/combine with type as needed (for switch and gateway devices)
    orgId string
    type string
    enum: ap, gateway, switch
    device_versions Sequence[GetVersionsDeviceVersion]
    id str
    The provider-assigned unique ID for this managed resource.
    model str
    Fetch version for device model, use/combine with type as needed (for switch and gateway devices)
    org_id str
    type str
    enum: ap, gateway, switch
    deviceVersions List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    model String
    Fetch version for device model, use/combine with type as needed (for switch and gateway devices)
    orgId String
    type String
    enum: ap, gateway, switch

    Supporting Types

    GetVersionsDeviceVersion

    Model string
    Device model (as seen in the device stats)
    Tag string
    Annotation, stable / beta / alpha. Or it can be empty or nothing which is likely a dev build
    Version string
    Firmware version
    Model string
    Device model (as seen in the device stats)
    Tag string
    Annotation, stable / beta / alpha. Or it can be empty or nothing which is likely a dev build
    Version string
    Firmware version
    model String
    Device model (as seen in the device stats)
    tag String
    Annotation, stable / beta / alpha. Or it can be empty or nothing which is likely a dev build
    version String
    Firmware version
    model string
    Device model (as seen in the device stats)
    tag string
    Annotation, stable / beta / alpha. Or it can be empty or nothing which is likely a dev build
    version string
    Firmware version
    model str
    Device model (as seen in the device stats)
    tag str
    Annotation, stable / beta / alpha. Or it can be empty or nothing which is likely a dev build
    version str
    Firmware version
    model String
    Device model (as seen in the device stats)
    tag String
    Annotation, stable / beta / alpha. Or it can be empty or nothing which is likely a dev build
    version String
    Firmware version

    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.6.3 published on Saturday, Sep 6, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate