Juniper Mist v0.6.3 published on Saturday, Sep 6, 2025 by Pulumi
junipermist.org.getInventory
Start a Neo task
Explain and create a junipermist.org.getInventory resource
This data source provides the list of Devices in the Org inventory.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/juniper-mist";
const inventory = junipermist.org.getInventory({
orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
mac: "485a0d000000",
model: "EX4100-F-12P",
serial: "F00000000000",
unassigned: false,
vc: true,
vcMac: "485a0d000001",
siteId: "4a422ae5-7ca0-4599-87a3-8e49aa63685f",
});
import pulumi
import pulumi_junipermist as junipermist
inventory = junipermist.org.get_inventory(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550",
mac="485a0d000000",
model="EX4100-F-12P",
serial="F00000000000",
unassigned=False,
vc=True,
vc_mac="485a0d000001",
site_id="4a422ae5-7ca0-4599-87a3-8e49aa63685f")
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.LookupInventory(ctx, &org.LookupInventoryArgs{
OrgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
Mac: pulumi.StringRef("485a0d000000"),
Model: pulumi.StringRef("EX4100-F-12P"),
Serial: pulumi.StringRef("F00000000000"),
Unassigned: pulumi.BoolRef(false),
Vc: pulumi.BoolRef(true),
VcMac: pulumi.StringRef("485a0d000001"),
SiteId: pulumi.StringRef("4a422ae5-7ca0-4599-87a3-8e49aa63685f"),
}, 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 inventory = JuniperMist.Org.GetInventory.Invoke(new()
{
OrgId = "15fca2ac-b1a6-47cc-9953-cc6906281550",
Mac = "485a0d000000",
Model = "EX4100-F-12P",
Serial = "F00000000000",
Unassigned = false,
Vc = true,
VcMac = "485a0d000001",
SiteId = "4a422ae5-7ca0-4599-87a3-8e49aa63685f",
});
});
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.GetInventoryArgs;
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 inventory = OrgFunctions.getInventory(GetInventoryArgs.builder()
.orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
.mac("485a0d000000")
.model("EX4100-F-12P")
.serial("F00000000000")
.unassigned(false)
.vc(true)
.vcMac("485a0d000001")
.siteId("4a422ae5-7ca0-4599-87a3-8e49aa63685f")
.build());
}
}
variables:
inventory:
fn::invoke:
function: junipermist:org:getInventory
arguments:
orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
mac: 485a0d000000
model: EX4100-F-12P
serial: F00000000000
unassigned: false
vc: true
vcMac: 485a0d000001
siteId: 4a422ae5-7ca0-4599-87a3-8e49aa63685f
Using getInventory
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 getInventory(args: GetInventoryArgs, opts?: InvokeOptions): Promise<GetInventoryResult>
function getInventoryOutput(args: GetInventoryOutputArgs, opts?: InvokeOptions): Output<GetInventoryResult>def get_inventory(mac: Optional[str] = None,
model: Optional[str] = None,
org_id: Optional[str] = None,
serial: Optional[str] = None,
site_id: Optional[str] = None,
type: Optional[str] = None,
unassigned: Optional[bool] = None,
vc: Optional[bool] = None,
vc_mac: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInventoryResult
def get_inventory_output(mac: Optional[pulumi.Input[str]] = None,
model: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
serial: Optional[pulumi.Input[str]] = None,
site_id: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
unassigned: Optional[pulumi.Input[bool]] = None,
vc: Optional[pulumi.Input[bool]] = None,
vc_mac: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInventoryResult]func LookupInventory(ctx *Context, args *LookupInventoryArgs, opts ...InvokeOption) (*LookupInventoryResult, error)
func LookupInventoryOutput(ctx *Context, args *LookupInventoryOutputArgs, opts ...InvokeOption) LookupInventoryResultOutput> Note: This function is named LookupInventory in the Go SDK.
public static class GetInventory
{
public static Task<GetInventoryResult> InvokeAsync(GetInventoryArgs args, InvokeOptions? opts = null)
public static Output<GetInventoryResult> Invoke(GetInventoryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInventoryResult> getInventory(GetInventoryArgs args, InvokeOptions options)
public static Output<GetInventoryResult> getInventory(GetInventoryArgs args, InvokeOptions options)
fn::invoke:
function: junipermist:org/getInventory:getInventory
arguments:
# arguments dictionaryThe following arguments are supported:
- org
Id String - mac String
- MAC address
- model String
- Device model
- serial String
- Device serial
- site
Id String - Site id if assigned, null if not assigned
- type String
- enum:
ap,gateway,switch - unassigned Boolean
- To display Unassigned devices
- vc Boolean
- To display Virtual Chassis members
- vc
Mac String - Virtual Chassis MAC Address
- org
Id string - mac string
- MAC address
- model string
- Device model
- serial string
- Device serial
- site
Id string - Site id if assigned, null if not assigned
- type string
- enum:
ap,gateway,switch - unassigned boolean
- To display Unassigned devices
- vc boolean
- To display Virtual Chassis members
- vc
Mac string - Virtual Chassis MAC Address
- org
Id String - mac String
- MAC address
- model String
- Device model
- serial String
- Device serial
- site
Id String - Site id if assigned, null if not assigned
- type String
- enum:
ap,gateway,switch - unassigned Boolean
- To display Unassigned devices
- vc Boolean
- To display Virtual Chassis members
- vc
Mac String - Virtual Chassis MAC Address
getInventory Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Org
Inventories List<Pulumi.Juniper Mist. Org. Outputs. Get Inventory Org Inventory> - Mac string
- MAC address
- Model string
- Device model
- Serial string
- Device serial
- Site
Id string - Site id if assigned, null if not assigned
- Type string
- enum:
ap,gateway,switch - Unassigned bool
- To display Unassigned devices
- Vc bool
- To display Virtual Chassis members
- Vc
Mac string - Virtual Chassis MAC Address
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Org
Inventories []GetInventory Org Inventory - Mac string
- MAC address
- Model string
- Device model
- Serial string
- Device serial
- Site
Id string - Site id if assigned, null if not assigned
- Type string
- enum:
ap,gateway,switch - Unassigned bool
- To display Unassigned devices
- Vc bool
- To display Virtual Chassis members
- Vc
Mac string - Virtual Chassis MAC Address
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - org
Inventories List<GetInventory Org Inventory> - mac String
- MAC address
- model String
- Device model
- serial String
- Device serial
- site
Id String - Site id if assigned, null if not assigned
- type String
- enum:
ap,gateway,switch - unassigned Boolean
- To display Unassigned devices
- vc Boolean
- To display Virtual Chassis members
- vc
Mac String - Virtual Chassis MAC Address
- id string
- The provider-assigned unique ID for this managed resource.
- org
Id string - org
Inventories GetInventory Org Inventory[] - mac string
- MAC address
- model string
- Device model
- serial string
- Device serial
- site
Id string - Site id if assigned, null if not assigned
- type string
- enum:
ap,gateway,switch - unassigned boolean
- To display Unassigned devices
- vc boolean
- To display Virtual Chassis members
- vc
Mac string - Virtual Chassis MAC Address
- id str
- The provider-assigned unique ID for this managed resource.
- org_
id str - org_
inventories Sequence[GetInventory Org Inventory] - mac str
- MAC address
- model str
- Device model
- serial str
- Device serial
- site_
id str - Site id if assigned, null if not assigned
- type str
- enum:
ap,gateway,switch - unassigned bool
- To display Unassigned devices
- vc bool
- To display Virtual Chassis members
- vc_
mac str - Virtual Chassis MAC Address
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - org
Inventories List<Property Map> - mac String
- MAC address
- model String
- Device model
- serial String
- Device serial
- site
Id String - Site id if assigned, null if not assigned
- type String
- enum:
ap,gateway,switch - unassigned Boolean
- To display Unassigned devices
- vc Boolean
- To display Virtual Chassis members
- vc
Mac String - Virtual Chassis MAC Address
Supporting Types
GetInventoryOrgInventory
- Adopted bool
- Only if
type==switchortype==gateway, whether the switch/gateway is adopted - Claim
Code string - Device claim code
- Connected bool
- Whether the device is connected
- Deviceprofile
Id string - Deviceprofile id if assigned, null if not assigned
- Hostname string
- Hostname reported by the device
- Hw
Rev string - Device hardware revision number
- Id string
- Unique ID of the object instance in the Mist Organization
- Jsi bool
- Mac string
- Device MAC address
- Model string
- Device model
- Name string
- Device name if configured
- Org
Id string - Serial string
- Device serial
- Site
Id string - Site ID where the device is assigned to
- Sku string
- Device stock keeping unit
- Type string
- enum:
ap,gateway,switch - Vc
Mac string - If
type==switchand device part of a Virtual Chassis, MAC Address of the Virtual Chassis. iftype==gatewayand device part of a Cluster, MAC Address of the Cluster
- Adopted bool
- Only if
type==switchortype==gateway, whether the switch/gateway is adopted - Claim
Code string - Device claim code
- Connected bool
- Whether the device is connected
- Deviceprofile
Id string - Deviceprofile id if assigned, null if not assigned
- Hostname string
- Hostname reported by the device
- Hw
Rev string - Device hardware revision number
- Id string
- Unique ID of the object instance in the Mist Organization
- Jsi bool
- Mac string
- Device MAC address
- Model string
- Device model
- Name string
- Device name if configured
- Org
Id string - Serial string
- Device serial
- Site
Id string - Site ID where the device is assigned to
- Sku string
- Device stock keeping unit
- Type string
- enum:
ap,gateway,switch - Vc
Mac string - If
type==switchand device part of a Virtual Chassis, MAC Address of the Virtual Chassis. iftype==gatewayand device part of a Cluster, MAC Address of the Cluster
- adopted Boolean
- Only if
type==switchortype==gateway, whether the switch/gateway is adopted - claim
Code String - Device claim code
- connected Boolean
- Whether the device is connected
- deviceprofile
Id String - Deviceprofile id if assigned, null if not assigned
- hostname String
- Hostname reported by the device
- hw
Rev String - Device hardware revision number
- id String
- Unique ID of the object instance in the Mist Organization
- jsi Boolean
- mac String
- Device MAC address
- model String
- Device model
- name String
- Device name if configured
- org
Id String - serial String
- Device serial
- site
Id String - Site ID where the device is assigned to
- sku String
- Device stock keeping unit
- type String
- enum:
ap,gateway,switch - vc
Mac String - If
type==switchand device part of a Virtual Chassis, MAC Address of the Virtual Chassis. iftype==gatewayand device part of a Cluster, MAC Address of the Cluster
- adopted boolean
- Only if
type==switchortype==gateway, whether the switch/gateway is adopted - claim
Code string - Device claim code
- connected boolean
- Whether the device is connected
- deviceprofile
Id string - Deviceprofile id if assigned, null if not assigned
- hostname string
- Hostname reported by the device
- hw
Rev string - Device hardware revision number
- id string
- Unique ID of the object instance in the Mist Organization
- jsi boolean
- mac string
- Device MAC address
- model string
- Device model
- name string
- Device name if configured
- org
Id string - serial string
- Device serial
- site
Id string - Site ID where the device is assigned to
- sku string
- Device stock keeping unit
- type string
- enum:
ap,gateway,switch - vc
Mac string - If
type==switchand device part of a Virtual Chassis, MAC Address of the Virtual Chassis. iftype==gatewayand device part of a Cluster, MAC Address of the Cluster
- adopted bool
- Only if
type==switchortype==gateway, whether the switch/gateway is adopted - claim_
code str - Device claim code
- connected bool
- Whether the device is connected
- deviceprofile_
id str - Deviceprofile id if assigned, null if not assigned
- hostname str
- Hostname reported by the device
- hw_
rev str - Device hardware revision number
- id str
- Unique ID of the object instance in the Mist Organization
- jsi bool
- mac str
- Device MAC address
- model str
- Device model
- name str
- Device name if configured
- org_
id str - serial str
- Device serial
- site_
id str - Site ID where the device is assigned to
- sku str
- Device stock keeping unit
- type str
- enum:
ap,gateway,switch - vc_
mac str - If
type==switchand device part of a Virtual Chassis, MAC Address of the Virtual Chassis. iftype==gatewayand device part of a Cluster, MAC Address of the Cluster
- adopted Boolean
- Only if
type==switchortype==gateway, whether the switch/gateway is adopted - claim
Code String - Device claim code
- connected Boolean
- Whether the device is connected
- deviceprofile
Id String - Deviceprofile id if assigned, null if not assigned
- hostname String
- Hostname reported by the device
- hw
Rev String - Device hardware revision number
- id String
- Unique ID of the object instance in the Mist Organization
- jsi Boolean
- mac String
- Device MAC address
- model String
- Device model
- name String
- Device name if configured
- org
Id String - serial String
- Device serial
- site
Id String - Site ID where the device is assigned to
- sku String
- Device stock keeping unit
- type String
- enum:
ap,gateway,switch - vc
Mac String - If
type==switchand device part of a Virtual Chassis, MAC Address of the Virtual Chassis. iftype==gatewayand device part of a Cluster, MAC Address of the Cluster
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mistTerraform Provider.
