Juniper Mist v0.2.4 published on Saturday, Mar 1, 2025 by Pulumi
junipermist.device.getVersions
Explore with Pulumi AI
This data source provides the list of available Firmware Versions.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/junipermist";
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 dictionaryThe following arguments are supported:
getVersions Result
The following output properties are available:
- DeviceVersions List<Pulumi.Juniper Mist. Device. Outputs. Get Versions Device Version> 
- Id string
- The provider-assigned unique ID for this managed resource.
- Model string
- Fetch version for device model, use/combine with typeas needed (for switch and gateway devices)
- OrgId string
- Type string
- enum: ap,gateway,switch
- DeviceVersions []GetVersions Device Version 
- Id string
- The provider-assigned unique ID for this managed resource.
- Model string
- Fetch version for device model, use/combine with typeas needed (for switch and gateway devices)
- OrgId string
- Type string
- enum: ap,gateway,switch
- deviceVersions List<GetVersions Device Version> 
- id String
- The provider-assigned unique ID for this managed resource.
- model String
- Fetch version for device model, use/combine with typeas needed (for switch and gateway devices)
- orgId String
- type String
- enum: ap,gateway,switch
- deviceVersions GetVersions Device Version[] 
- id string
- The provider-assigned unique ID for this managed resource.
- model string
- Fetch version for device model, use/combine with typeas needed (for switch and gateway devices)
- orgId string
- type string
- enum: ap,gateway,switch
- device_versions Sequence[GetVersions Device Version] 
- id str
- The provider-assigned unique ID for this managed resource.
- model str
- Fetch version for device model, use/combine with typeas 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 typeas needed (for switch and gateway devices)
- orgId String
- type String
- enum: ap,gateway,switch
Supporting Types
GetVersionsDeviceVersion   
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the mistTerraform Provider.
