published on Saturday, Jul 11, 2026 by Pulumi
published on Saturday, Jul 11, 2026 by Pulumi
This resource can be used to upgrade the firmware of a single device (Wi-Fi Access Points, Switches and SRX/SSR Gateways).
The resource will send the upgrade command to Mist, which will take care of deploying the new firmware version to the device, and reboot it if required.
The time required to upgrade a device depends on the type of device and its hardware. By default, the resource will track the upgrade process and only return the result once the device is upgraded and rebooted (unless reboot==false or rebootAt is set).
If required it is possible to run the upgrade in async mode (attribute sync=false). In this case, the resource will only trigger the upgrade and return the Mist response, but will not track the upgrade progress.
The list of available firmware versions can be retrieved with the junipermist.device.getVersions data source.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/juniper-mist";
const apUpgrade = new junipermist.UpgradeDevice("ap_upgrade", {
siteId: terraformTest.id,
deviceId: apOne.id,
targetVersion: "0.14.29543",
});
const switchUpgrade = new junipermist.UpgradeDevice("switch_upgrade", {
siteId: terraformTest.id,
deviceId: switchOne.id,
targetVersion: "24.2R1-S1.10",
reboot: true,
syncUpgradeTimeout: 3600,
});
import pulumi
import pulumi_juniper_mist as junipermist
ap_upgrade = junipermist.UpgradeDevice("ap_upgrade",
site_id=terraform_test["id"],
device_id=ap_one["id"],
target_version="0.14.29543")
switch_upgrade = junipermist.UpgradeDevice("switch_upgrade",
site_id=terraform_test["id"],
device_id=switch_one["id"],
target_version="24.2R1-S1.10",
reboot=True,
sync_upgrade_timeout=3600)
package main
import (
"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := junipermist.NewUpgradeDevice(ctx, "ap_upgrade", &junipermist.UpgradeDeviceArgs{
SiteId: pulumi.Any(terraformTest.Id),
DeviceId: pulumi.Any(apOne.Id),
TargetVersion: pulumi.String("0.14.29543"),
})
if err != nil {
return err
}
_, err = junipermist.NewUpgradeDevice(ctx, "switch_upgrade", &junipermist.UpgradeDeviceArgs{
SiteId: pulumi.Any(terraformTest.Id),
DeviceId: pulumi.Any(switchOne.Id),
TargetVersion: pulumi.String("24.2R1-S1.10"),
Reboot: pulumi.Bool(true),
SyncUpgradeTimeout: pulumi.Int(3600),
})
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 apUpgrade = new JuniperMist.UpgradeDevice("ap_upgrade", new()
{
SiteId = terraformTest.Id,
DeviceId = apOne.Id,
TargetVersion = "0.14.29543",
});
var switchUpgrade = new JuniperMist.UpgradeDevice("switch_upgrade", new()
{
SiteId = terraformTest.Id,
DeviceId = switchOne.Id,
TargetVersion = "24.2R1-S1.10",
Reboot = true,
SyncUpgradeTimeout = 3600,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.UpgradeDevice;
import com.pulumi.junipermist.UpgradeDeviceArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
var apUpgrade = new UpgradeDevice("apUpgrade", UpgradeDeviceArgs.builder()
.siteId(terraformTest.id())
.deviceId(apOne.id())
.targetVersion("0.14.29543")
.build());
var switchUpgrade = new UpgradeDevice("switchUpgrade", UpgradeDeviceArgs.builder()
.siteId(terraformTest.id())
.deviceId(switchOne.id())
.targetVersion("24.2R1-S1.10")
.reboot(true)
.syncUpgradeTimeout(3600)
.build());
}
}
resources:
apUpgrade:
type: junipermist:UpgradeDevice
name: ap_upgrade
properties:
siteId: ${terraformTest.id}
deviceId: ${apOne.id}
targetVersion: 0.14.29543
switchUpgrade:
type: junipermist:UpgradeDevice
name: switch_upgrade
properties:
siteId: ${terraformTest.id}
deviceId: ${switchOne.id}
targetVersion: 24.2R1-S1.10
reboot: true
syncUpgradeTimeout: 3600
pulumi {
required_providers {
junipermist = {
source = "pulumi/junipermist"
}
}
}
resource "junipermist_upgradedevice" "ap_upgrade" {
site_id = terraformTest.id
device_id = apOne.id
target_version = "0.14.29543"
}
resource "junipermist_upgradedevice" "switch_upgrade" {
site_id = terraformTest.id
device_id = switchOne.id
target_version = "24.2R1-S1.10"
reboot = true
sync_upgrade_timeout = 3600
}
Create UpgradeDevice Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UpgradeDevice(name: string, args: UpgradeDeviceArgs, opts?: CustomResourceOptions);@overload
def UpgradeDevice(resource_name: str,
args: UpgradeDeviceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UpgradeDevice(resource_name: str,
opts: Optional[ResourceOptions] = None,
device_id: Optional[str] = None,
site_id: Optional[str] = None,
target_version: Optional[str] = None,
reboot: Optional[bool] = None,
reboot_at: Optional[int] = None,
snapshot: Optional[bool] = None,
start_time: Optional[int] = None,
sync_upgrade: Optional[bool] = None,
sync_upgrade_refresh_interval: Optional[int] = None,
sync_upgrade_start_timeout: Optional[int] = None,
sync_upgrade_timeout: Optional[int] = None)func NewUpgradeDevice(ctx *Context, name string, args UpgradeDeviceArgs, opts ...ResourceOption) (*UpgradeDevice, error)public UpgradeDevice(string name, UpgradeDeviceArgs args, CustomResourceOptions? opts = null)
public UpgradeDevice(String name, UpgradeDeviceArgs args)
public UpgradeDevice(String name, UpgradeDeviceArgs args, CustomResourceOptions options)
type: junipermist:UpgradeDevice
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "junipermist_upgrade_device" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args UpgradeDeviceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UpgradeDeviceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UpgradeDeviceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UpgradeDeviceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UpgradeDeviceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var upgradeDeviceResource = new JuniperMist.UpgradeDevice("upgradeDeviceResource", new()
{
DeviceId = "string",
SiteId = "string",
TargetVersion = "string",
Reboot = false,
RebootAt = 0,
Snapshot = false,
StartTime = 0,
SyncUpgrade = false,
SyncUpgradeRefreshInterval = 0,
SyncUpgradeStartTimeout = 0,
SyncUpgradeTimeout = 0,
});
example, err := junipermist.NewUpgradeDevice(ctx, "upgradeDeviceResource", &junipermist.UpgradeDeviceArgs{
DeviceId: pulumi.String("string"),
SiteId: pulumi.String("string"),
TargetVersion: pulumi.String("string"),
Reboot: pulumi.Bool(false),
RebootAt: pulumi.Int(0),
Snapshot: pulumi.Bool(false),
StartTime: pulumi.Int(0),
SyncUpgrade: pulumi.Bool(false),
SyncUpgradeRefreshInterval: pulumi.Int(0),
SyncUpgradeStartTimeout: pulumi.Int(0),
SyncUpgradeTimeout: pulumi.Int(0),
})
resource "junipermist_upgrade_device" "upgradeDeviceResource" {
lifecycle {
create_before_destroy = true
}
device_id = "string"
site_id = "string"
target_version = "string"
reboot = false
reboot_at = 0
snapshot = false
start_time = 0
sync_upgrade = false
sync_upgrade_refresh_interval = 0
sync_upgrade_start_timeout = 0
sync_upgrade_timeout = 0
}
var upgradeDeviceResource = new UpgradeDevice("upgradeDeviceResource", UpgradeDeviceArgs.builder()
.deviceId("string")
.siteId("string")
.targetVersion("string")
.reboot(false)
.rebootAt(0)
.snapshot(false)
.startTime(0)
.syncUpgrade(false)
.syncUpgradeRefreshInterval(0)
.syncUpgradeStartTimeout(0)
.syncUpgradeTimeout(0)
.build());
upgrade_device_resource = junipermist.UpgradeDevice("upgradeDeviceResource",
device_id="string",
site_id="string",
target_version="string",
reboot=False,
reboot_at=0,
snapshot=False,
start_time=0,
sync_upgrade=False,
sync_upgrade_refresh_interval=0,
sync_upgrade_start_timeout=0,
sync_upgrade_timeout=0)
const upgradeDeviceResource = new junipermist.UpgradeDevice("upgradeDeviceResource", {
deviceId: "string",
siteId: "string",
targetVersion: "string",
reboot: false,
rebootAt: 0,
snapshot: false,
startTime: 0,
syncUpgrade: false,
syncUpgradeRefreshInterval: 0,
syncUpgradeStartTimeout: 0,
syncUpgradeTimeout: 0,
});
type: junipermist:UpgradeDevice
properties:
deviceId: string
reboot: false
rebootAt: 0
siteId: string
snapshot: false
startTime: 0
syncUpgrade: false
syncUpgradeRefreshInterval: 0
syncUpgradeStartTimeout: 0
syncUpgradeTimeout: 0
targetVersion: string
UpgradeDevice Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The UpgradeDevice resource accepts the following input properties:
- Device
Id string - Site
Id string - Associated site identifier for the switch statistics record
- Target
Version string - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - Reboot bool
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- Reboot
At int - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - Snapshot bool
- For Junos devices only. Perform recovery snapshot after device is rebooted
- Start
Time int - Firmware download start time in epoch
- Sync
Upgrade bool - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - Sync
Upgrade intRefresh Interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - Sync
Upgrade intStart Timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - Sync
Upgrade intTimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800
- Device
Id string - Site
Id string - Associated site identifier for the switch statistics record
- Target
Version string - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - Reboot bool
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- Reboot
At int - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - Snapshot bool
- For Junos devices only. Perform recovery snapshot after device is rebooted
- Start
Time int - Firmware download start time in epoch
- Sync
Upgrade bool - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - Sync
Upgrade intRefresh Interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - Sync
Upgrade intStart Timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - Sync
Upgrade intTimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800
- device_
id string - site_
id string - Associated site identifier for the switch statistics record
- target_
version string - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - reboot bool
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- reboot_
at number - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - snapshot bool
- For Junos devices only. Perform recovery snapshot after device is rebooted
- start_
time number - Firmware download start time in epoch
- sync_
upgrade bool - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - sync_
upgrade_ numberrefresh_ interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - sync_
upgrade_ numberstart_ timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - sync_
upgrade_ numbertimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800
- device
Id String - site
Id String - Associated site identifier for the switch statistics record
- target
Version String - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - reboot Boolean
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- reboot
At Integer - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - snapshot Boolean
- For Junos devices only. Perform recovery snapshot after device is rebooted
- start
Time Integer - Firmware download start time in epoch
- sync
Upgrade Boolean - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - sync
Upgrade IntegerRefresh Interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - sync
Upgrade IntegerStart Timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - sync
Upgrade IntegerTimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800
- device
Id string - site
Id string - Associated site identifier for the switch statistics record
- target
Version string - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - reboot boolean
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- reboot
At number - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - snapshot boolean
- For Junos devices only. Perform recovery snapshot after device is rebooted
- start
Time number - Firmware download start time in epoch
- sync
Upgrade boolean - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - sync
Upgrade numberRefresh Interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - sync
Upgrade numberStart Timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - sync
Upgrade numberTimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800
- device_
id str - site_
id str - Associated site identifier for the switch statistics record
- target_
version str - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - reboot bool
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- reboot_
at int - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - snapshot bool
- For Junos devices only. Perform recovery snapshot after device is rebooted
- start_
time int - Firmware download start time in epoch
- sync_
upgrade bool - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - sync_
upgrade_ intrefresh_ interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - sync_
upgrade_ intstart_ timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - sync_
upgrade_ inttimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800
- device
Id String - site
Id String - Associated site identifier for the switch statistics record
- target
Version String - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - reboot Boolean
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- reboot
At Number - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - snapshot Boolean
- For Junos devices only. Perform recovery snapshot after device is rebooted
- start
Time Number - Firmware download start time in epoch
- sync
Upgrade Boolean - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - sync
Upgrade NumberRefresh Interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - sync
Upgrade NumberStart Timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - sync
Upgrade NumberTimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800
Outputs
All input properties are implicitly available as output properties. Additionally, the UpgradeDevice resource produces the following output properties:
- Auto
Upgrade Pulumi.Stat Juniper Mist. Outputs. Upgrade Device Auto Upgrade Stat - Automatic firmware upgrade status for the switch
- Config
Timestamp int - Time when the switch configuration status was last updated, in epoch seconds
- Config
Version int - Currently applied configuration version for the switch
- Device
Version string - current device firmware version
- Ext
Ip string - Public IP address observed for the switch
- Fwupdate
Pulumi.
Juniper Mist. Outputs. Upgrade Device Fwupdate - Firmware update status for the switch
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Current status of the requested device upgrade
- Tag
Id int - Numeric inventory tag identifier associated with the switch
- Tag
Uuid string - Inventory tag UUID associated with the switch
- Timestamp double
- Epoch timestamp when the device upgrade status was reported
- Auto
Upgrade UpgradeStat Device Auto Upgrade Stat - Automatic firmware upgrade status for the switch
- Config
Timestamp int - Time when the switch configuration status was last updated, in epoch seconds
- Config
Version int - Currently applied configuration version for the switch
- Device
Version string - current device firmware version
- Ext
Ip string - Public IP address observed for the switch
- Fwupdate
Upgrade
Device Fwupdate - Firmware update status for the switch
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Current status of the requested device upgrade
- Tag
Id int - Numeric inventory tag identifier associated with the switch
- Tag
Uuid string - Inventory tag UUID associated with the switch
- Timestamp float64
- Epoch timestamp when the device upgrade status was reported
- auto_
upgrade_ objectstat - Automatic firmware upgrade status for the switch
- config_
timestamp number - Time when the switch configuration status was last updated, in epoch seconds
- config_
version number - Currently applied configuration version for the switch
- device_
version string - current device firmware version
- ext_
ip string - Public IP address observed for the switch
- fwupdate object
- Firmware update status for the switch
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Current status of the requested device upgrade
- tag_
id number - Numeric inventory tag identifier associated with the switch
- tag_
uuid string - Inventory tag UUID associated with the switch
- timestamp number
- Epoch timestamp when the device upgrade status was reported
- auto
Upgrade UpgradeStat Device Auto Upgrade Stat - Automatic firmware upgrade status for the switch
- config
Timestamp Integer - Time when the switch configuration status was last updated, in epoch seconds
- config
Version Integer - Currently applied configuration version for the switch
- device
Version String - current device firmware version
- ext
Ip String - Public IP address observed for the switch
- fwupdate
Upgrade
Device Fwupdate - Firmware update status for the switch
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Current status of the requested device upgrade
- tag
Id Integer - Numeric inventory tag identifier associated with the switch
- tag
Uuid String - Inventory tag UUID associated with the switch
- timestamp Double
- Epoch timestamp when the device upgrade status was reported
- auto
Upgrade UpgradeStat Device Auto Upgrade Stat - Automatic firmware upgrade status for the switch
- config
Timestamp number - Time when the switch configuration status was last updated, in epoch seconds
- config
Version number - Currently applied configuration version for the switch
- device
Version string - current device firmware version
- ext
Ip string - Public IP address observed for the switch
- fwupdate
Upgrade
Device Fwupdate - Firmware update status for the switch
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Current status of the requested device upgrade
- tag
Id number - Numeric inventory tag identifier associated with the switch
- tag
Uuid string - Inventory tag UUID associated with the switch
- timestamp number
- Epoch timestamp when the device upgrade status was reported
- auto_
upgrade_ Upgradestat Device Auto Upgrade Stat - Automatic firmware upgrade status for the switch
- config_
timestamp int - Time when the switch configuration status was last updated, in epoch seconds
- config_
version int - Currently applied configuration version for the switch
- device_
version str - current device firmware version
- ext_
ip str - Public IP address observed for the switch
- fwupdate
Upgrade
Device Fwupdate - Firmware update status for the switch
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Current status of the requested device upgrade
- tag_
id int - Numeric inventory tag identifier associated with the switch
- tag_
uuid str - Inventory tag UUID associated with the switch
- timestamp float
- Epoch timestamp when the device upgrade status was reported
- auto
Upgrade Property MapStat - Automatic firmware upgrade status for the switch
- config
Timestamp Number - Time when the switch configuration status was last updated, in epoch seconds
- config
Version Number - Currently applied configuration version for the switch
- device
Version String - current device firmware version
- ext
Ip String - Public IP address observed for the switch
- fwupdate Property Map
- Firmware update status for the switch
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Current status of the requested device upgrade
- tag
Id Number - Numeric inventory tag identifier associated with the switch
- tag
Uuid String - Inventory tag UUID associated with the switch
- timestamp Number
- Epoch timestamp when the device upgrade status was reported
Look up Existing UpgradeDevice Resource
Get an existing UpgradeDevice resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: UpgradeDeviceState, opts?: CustomResourceOptions): UpgradeDevice@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_upgrade_stat: Optional[UpgradeDeviceAutoUpgradeStatArgs] = None,
config_timestamp: Optional[int] = None,
config_version: Optional[int] = None,
device_id: Optional[str] = None,
device_version: Optional[str] = None,
ext_ip: Optional[str] = None,
fwupdate: Optional[UpgradeDeviceFwupdateArgs] = None,
reboot: Optional[bool] = None,
reboot_at: Optional[int] = None,
site_id: Optional[str] = None,
snapshot: Optional[bool] = None,
start_time: Optional[int] = None,
status: Optional[str] = None,
sync_upgrade: Optional[bool] = None,
sync_upgrade_refresh_interval: Optional[int] = None,
sync_upgrade_start_timeout: Optional[int] = None,
sync_upgrade_timeout: Optional[int] = None,
tag_id: Optional[int] = None,
tag_uuid: Optional[str] = None,
target_version: Optional[str] = None,
timestamp: Optional[float] = None) -> UpgradeDevicefunc GetUpgradeDevice(ctx *Context, name string, id IDInput, state *UpgradeDeviceState, opts ...ResourceOption) (*UpgradeDevice, error)public static UpgradeDevice Get(string name, Input<string> id, UpgradeDeviceState? state, CustomResourceOptions? opts = null)public static UpgradeDevice get(String name, Output<String> id, UpgradeDeviceState state, CustomResourceOptions options)resources: _: type: junipermist:UpgradeDevice get: id: ${id}import {
to = junipermist_upgrade_device.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Upgrade Pulumi.Stat Juniper Mist. Inputs. Upgrade Device Auto Upgrade Stat - Automatic firmware upgrade status for the switch
- Config
Timestamp int - Time when the switch configuration status was last updated, in epoch seconds
- Config
Version int - Currently applied configuration version for the switch
- Device
Id string - Device
Version string - current device firmware version
- Ext
Ip string - Public IP address observed for the switch
- Fwupdate
Pulumi.
Juniper Mist. Inputs. Upgrade Device Fwupdate - Firmware update status for the switch
- Reboot bool
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- Reboot
At int - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - Site
Id string - Associated site identifier for the switch statistics record
- Snapshot bool
- For Junos devices only. Perform recovery snapshot after device is rebooted
- Start
Time int - Firmware download start time in epoch
- Status string
- Current status of the requested device upgrade
- Sync
Upgrade bool - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - Sync
Upgrade intRefresh Interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - Sync
Upgrade intStart Timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - Sync
Upgrade intTimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800 - Tag
Id int - Numeric inventory tag identifier associated with the switch
- Tag
Uuid string - Inventory tag UUID associated with the switch
- Target
Version string - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - Timestamp double
- Epoch timestamp when the device upgrade status was reported
- Auto
Upgrade UpgradeStat Device Auto Upgrade Stat Args - Automatic firmware upgrade status for the switch
- Config
Timestamp int - Time when the switch configuration status was last updated, in epoch seconds
- Config
Version int - Currently applied configuration version for the switch
- Device
Id string - Device
Version string - current device firmware version
- Ext
Ip string - Public IP address observed for the switch
- Fwupdate
Upgrade
Device Fwupdate Args - Firmware update status for the switch
- Reboot bool
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- Reboot
At int - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - Site
Id string - Associated site identifier for the switch statistics record
- Snapshot bool
- For Junos devices only. Perform recovery snapshot after device is rebooted
- Start
Time int - Firmware download start time in epoch
- Status string
- Current status of the requested device upgrade
- Sync
Upgrade bool - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - Sync
Upgrade intRefresh Interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - Sync
Upgrade intStart Timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - Sync
Upgrade intTimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800 - Tag
Id int - Numeric inventory tag identifier associated with the switch
- Tag
Uuid string - Inventory tag UUID associated with the switch
- Target
Version string - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - Timestamp float64
- Epoch timestamp when the device upgrade status was reported
- auto_
upgrade_ objectstat - Automatic firmware upgrade status for the switch
- config_
timestamp number - Time when the switch configuration status was last updated, in epoch seconds
- config_
version number - Currently applied configuration version for the switch
- device_
id string - device_
version string - current device firmware version
- ext_
ip string - Public IP address observed for the switch
- fwupdate object
- Firmware update status for the switch
- reboot bool
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- reboot_
at number - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - site_
id string - Associated site identifier for the switch statistics record
- snapshot bool
- For Junos devices only. Perform recovery snapshot after device is rebooted
- start_
time number - Firmware download start time in epoch
- status string
- Current status of the requested device upgrade
- sync_
upgrade bool - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - sync_
upgrade_ numberrefresh_ interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - sync_
upgrade_ numberstart_ timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - sync_
upgrade_ numbertimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800 - tag_
id number - Numeric inventory tag identifier associated with the switch
- tag_
uuid string - Inventory tag UUID associated with the switch
- target_
version string - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - timestamp number
- Epoch timestamp when the device upgrade status was reported
- auto
Upgrade UpgradeStat Device Auto Upgrade Stat - Automatic firmware upgrade status for the switch
- config
Timestamp Integer - Time when the switch configuration status was last updated, in epoch seconds
- config
Version Integer - Currently applied configuration version for the switch
- device
Id String - device
Version String - current device firmware version
- ext
Ip String - Public IP address observed for the switch
- fwupdate
Upgrade
Device Fwupdate - Firmware update status for the switch
- reboot Boolean
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- reboot
At Integer - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - site
Id String - Associated site identifier for the switch statistics record
- snapshot Boolean
- For Junos devices only. Perform recovery snapshot after device is rebooted
- start
Time Integer - Firmware download start time in epoch
- status String
- Current status of the requested device upgrade
- sync
Upgrade Boolean - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - sync
Upgrade IntegerRefresh Interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - sync
Upgrade IntegerStart Timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - sync
Upgrade IntegerTimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800 - tag
Id Integer - Numeric inventory tag identifier associated with the switch
- tag
Uuid String - Inventory tag UUID associated with the switch
- target
Version String - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - timestamp Double
- Epoch timestamp when the device upgrade status was reported
- auto
Upgrade UpgradeStat Device Auto Upgrade Stat - Automatic firmware upgrade status for the switch
- config
Timestamp number - Time when the switch configuration status was last updated, in epoch seconds
- config
Version number - Currently applied configuration version for the switch
- device
Id string - device
Version string - current device firmware version
- ext
Ip string - Public IP address observed for the switch
- fwupdate
Upgrade
Device Fwupdate - Firmware update status for the switch
- reboot boolean
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- reboot
At number - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - site
Id string - Associated site identifier for the switch statistics record
- snapshot boolean
- For Junos devices only. Perform recovery snapshot after device is rebooted
- start
Time number - Firmware download start time in epoch
- status string
- Current status of the requested device upgrade
- sync
Upgrade boolean - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - sync
Upgrade numberRefresh Interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - sync
Upgrade numberStart Timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - sync
Upgrade numberTimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800 - tag
Id number - Numeric inventory tag identifier associated with the switch
- tag
Uuid string - Inventory tag UUID associated with the switch
- target
Version string - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - timestamp number
- Epoch timestamp when the device upgrade status was reported
- auto_
upgrade_ Upgradestat Device Auto Upgrade Stat Args - Automatic firmware upgrade status for the switch
- config_
timestamp int - Time when the switch configuration status was last updated, in epoch seconds
- config_
version int - Currently applied configuration version for the switch
- device_
id str - device_
version str - current device firmware version
- ext_
ip str - Public IP address observed for the switch
- fwupdate
Upgrade
Device Fwupdate Args - Firmware update status for the switch
- reboot bool
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- reboot_
at int - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - site_
id str - Associated site identifier for the switch statistics record
- snapshot bool
- For Junos devices only. Perform recovery snapshot after device is rebooted
- start_
time int - Firmware download start time in epoch
- status str
- Current status of the requested device upgrade
- sync_
upgrade bool - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - sync_
upgrade_ intrefresh_ interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - sync_
upgrade_ intstart_ timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - sync_
upgrade_ inttimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800 - tag_
id int - Numeric inventory tag identifier associated with the switch
- tag_
uuid str - Inventory tag UUID associated with the switch
- target_
version str - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - timestamp float
- Epoch timestamp when the device upgrade status was reported
- auto
Upgrade Property MapStat - Automatic firmware upgrade status for the switch
- config
Timestamp Number - Time when the switch configuration status was last updated, in epoch seconds
- config
Version Number - Currently applied configuration version for the switch
- device
Id String - device
Version String - current device firmware version
- ext
Ip String - Public IP address observed for the switch
- fwupdate Property Map
- Firmware update status for the switch
- reboot Boolean
- For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
- reboot
At Number - For Switches and Gateways only and if
reboot==true. Reboot start time in epoch seconds, default isstartTime - site
Id String - Associated site identifier for the switch statistics record
- snapshot Boolean
- For Junos devices only. Perform recovery snapshot after device is rebooted
- start
Time Number - Firmware download start time in epoch
- status String
- Current status of the requested device upgrade
- sync
Upgrade Boolean - if set to
false, the provider will just trigger the upgrade and not wait for the end of the upgrade process. Default istrue - sync
Upgrade NumberRefresh Interval - if set to
syncUpgrade==true, how long to wait between each refresh of the upgrade status, in seconds. Default is 30, minimum is 15 - sync
Upgrade NumberStart Timeout - if set to
syncUpgrade==true, how long to wait for the upgrade to start before raising an error, in seconds. Default is 60, minimum is 60 - sync
Upgrade NumberTimeout - if set to
syncUpgrade==true, how long to wait for the upgrade to end before raising an error, in seconds. Default is 1800 - tag
Id Number - Numeric inventory tag identifier associated with the switch
- tag
Uuid String - Inventory tag UUID associated with the switch
- target
Version String - firmware version to deploy to the device. Use the
junipermist.device.getVersionsdatasource to get the list of available firmware versions - timestamp Number
- Epoch timestamp when the device upgrade status was reported
Supporting Types
UpgradeDeviceAutoUpgradeStat, UpgradeDeviceAutoUpgradeStatArgs
- Lastcheck int
- Time when the device last checked for auto-upgrade, in epoch seconds
- Lastcheck int
- Time when the device last checked for auto-upgrade, in epoch seconds
- lastcheck number
- Time when the device last checked for auto-upgrade, in epoch seconds
- lastcheck Integer
- Time when the device last checked for auto-upgrade, in epoch seconds
- lastcheck number
- Time when the device last checked for auto-upgrade, in epoch seconds
- lastcheck int
- Time when the device last checked for auto-upgrade, in epoch seconds
- lastcheck Number
- Time when the device last checked for auto-upgrade, in epoch seconds
UpgradeDeviceFwupdate, UpgradeDeviceFwupdateArgs
- Progress int
- Firmware update progress percentage, or null when unavailable
- Status string
- Current firmware update status
- Status
Id int - Numeric firmware update status identifier
- Timestamp double
- Time when the firmware update status was last updated
- Will
Retry bool - Whether the firmware update process will retry after the current status
- Progress int
- Firmware update progress percentage, or null when unavailable
- Status string
- Current firmware update status
- Status
Id int - Numeric firmware update status identifier
- Timestamp float64
- Time when the firmware update status was last updated
- Will
Retry bool - Whether the firmware update process will retry after the current status
- progress number
- Firmware update progress percentage, or null when unavailable
- status string
- Current firmware update status
- status_
id number - Numeric firmware update status identifier
- timestamp number
- Time when the firmware update status was last updated
- will_
retry bool - Whether the firmware update process will retry after the current status
- progress Integer
- Firmware update progress percentage, or null when unavailable
- status String
- Current firmware update status
- status
Id Integer - Numeric firmware update status identifier
- timestamp Double
- Time when the firmware update status was last updated
- will
Retry Boolean - Whether the firmware update process will retry after the current status
- progress number
- Firmware update progress percentage, or null when unavailable
- status string
- Current firmware update status
- status
Id number - Numeric firmware update status identifier
- timestamp number
- Time when the firmware update status was last updated
- will
Retry boolean - Whether the firmware update process will retry after the current status
- progress int
- Firmware update progress percentage, or null when unavailable
- status str
- Current firmware update status
- status_
id int - Numeric firmware update status identifier
- timestamp float
- Time when the firmware update status was last updated
- will_
retry bool - Whether the firmware update process will retry after the current status
- progress Number
- Firmware update progress percentage, or null when unavailable
- status String
- Current firmware update status
- status
Id Number - Numeric firmware update status identifier
- timestamp Number
- Time when the firmware update status was last updated
- will
Retry Boolean - Whether the firmware update process will retry after the current status
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mistTerraform Provider.
published on Saturday, Jul 11, 2026 by Pulumi