UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

86 lines (85 loc) 4.22 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource manages the Org Inventory. * * It can be used to claim, unclaim, assign, unassign, reassign devices. * * ->Removing a device from the `devices` list or `inventory` map will NOT release it unless `unclaimWhenDestroyed` is set to `true` * * !> The `devices` attribute (List) is deprecated and is replaced by the `inventory` attribute (Map) as it can generate "inconsistent result after apply" errors. If this happens, it is required to force a refresh of the state to synchronise the new list.\ * The `devices` attribute will generate inconsistent result after apply when a device other than the last one is removed from the list or when a device is added somewhere other than the end of the list * * ## Import * * Using `pulumi import`, import `mist_org_inventory` with: * * Org Inventory can be imported by specifying the org_id * * ```sh * $ pulumi import junipermist:org/inventory:Inventory inventory_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a * ``` */ export declare class Inventory extends pulumi.CustomResource { /** * Get an existing Inventory resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InventoryState, opts?: pulumi.CustomResourceOptions): Inventory; /** * Returns true if the given object is an instance of Inventory. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Inventory; /** * Property key can be the device Claim Code or the device MAC Address: * Claim Code: used to claim the device to the Mist * Organization and manage it. Format is `[0-9A-Z]{15}` (e.g `01234ABCDE56789`) * MAC Address: used to manage a device * already in the Mist Organization (claimed or adopted devices). Format is `[0-9a-f]{12}` (e.g `5684dae9ac8b`) > */ readonly inventory: pulumi.Output<{ [key: string]: outputs.org.InventoryInventory; }>; readonly orgId: pulumi.Output<string>; /** * Create a Inventory resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: InventoryArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Inventory resources. */ export interface InventoryState { /** * Property key can be the device Claim Code or the device MAC Address: * Claim Code: used to claim the device to the Mist * Organization and manage it. Format is `[0-9A-Z]{15}` (e.g `01234ABCDE56789`) * MAC Address: used to manage a device * already in the Mist Organization (claimed or adopted devices). Format is `[0-9a-f]{12}` (e.g `5684dae9ac8b`) > */ inventory?: pulumi.Input<{ [key: string]: pulumi.Input<inputs.org.InventoryInventory>; }>; orgId?: pulumi.Input<string>; } /** * The set of arguments for constructing a Inventory resource. */ export interface InventoryArgs { /** * Property key can be the device Claim Code or the device MAC Address: * Claim Code: used to claim the device to the Mist * Organization and manage it. Format is `[0-9A-Z]{15}` (e.g `01234ABCDE56789`) * MAC Address: used to manage a device * already in the Mist Organization (claimed or adopted devices). Format is `[0-9a-f]{12}` (e.g `5684dae9ac8b`) > */ inventory?: pulumi.Input<{ [key: string]: pulumi.Input<inputs.org.InventoryInventory>; }>; orgId: pulumi.Input<string>; }