Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi
junipermist.org.getInventory
Explore with Pulumi AI
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/junipermist";
const inventory = junipermist.org.getInventory({
orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
});
import pulumi
import pulumi_junipermist as junipermist
inventory = junipermist.org.get_inventory(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550")
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",
}, 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",
});
});
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")
.build());
}
}
variables:
inventory:
fn::invoke:
Function: junipermist:org:getInventory
Arguments:
orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
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,
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,
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: junipermist:org/getInventory:getInventory
arguments:
# arguments dictionary
The following arguments are supported:
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> - List of devices
- Mac string
- MAC address
- Model string
- device model
- Serial string
- device serial
- Site
Id string - site id if assigned, null if not assigned
- 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 - List of devices
- Mac string
- MAC address
- Model string
- device model
- Serial string
- device serial
- Site
Id string - site id if assigned, null if not assigned
- 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> - List of devices
- mac String
- MAC address
- model String
- device model
- serial String
- device serial
- site
Id String - site id if assigned, null if not assigned
- 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[] - List of devices
- mac string
- MAC address
- model string
- device model
- serial string
- device serial
- site
Id string - site id if assigned, null if not assigned
- 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] - List of devices
- mac str
- MAC address
- model str
- device model
- serial str
- device serial
- site_
id str - site id if assigned, null if not assigned
- 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> - List of devices
- mac String
- MAC address
- model String
- device model
- serial String
- device serial
- site
Id String - site id if assigned, null if not assigned
- 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
==switch
ortype
==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
- device id
- 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
==switch
and device part of a Virtual Chassis, MAC Address of the Virtual Chassis. iftype
==gateway
and device part of a Clust, MAC Address of the Cluster
- Adopted bool
- only if
type
==switch
ortype
==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
- device id
- 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
==switch
and device part of a Virtual Chassis, MAC Address of the Virtual Chassis. iftype
==gateway
and device part of a Clust, MAC Address of the Cluster
- adopted Boolean
- only if
type
==switch
ortype
==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
- device id
- 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
==switch
and device part of a Virtual Chassis, MAC Address of the Virtual Chassis. iftype
==gateway
and device part of a Clust, MAC Address of the Cluster
- adopted boolean
- only if
type
==switch
ortype
==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
- device id
- 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
==switch
and device part of a Virtual Chassis, MAC Address of the Virtual Chassis. iftype
==gateway
and device part of a Clust, MAC Address of the Cluster
- adopted bool
- only if
type
==switch
ortype
==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
- device id
- 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
==switch
and device part of a Virtual Chassis, MAC Address of the Virtual Chassis. iftype
==gateway
and device part of a Clust, MAC Address of the Cluster
- adopted Boolean
- only if
type
==switch
ortype
==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
- device id
- 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
==switch
and device part of a Virtual Chassis, MAC Address of the Virtual Chassis. iftype
==gateway
and device part of a Clust, MAC Address of the Cluster
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mist
Terraform Provider.