UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

150 lines (149 loc) 4.33 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source provides the list of Switches with their statistics. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as junipermist from "@pulumi/juniper-mist"; * * const switchStats = junipermist.device.getSwitchStats({ * orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550", * mac: "485a0d000000", * siteId: "4a422ae5-7ca0-4599-87a3-8e49aa63685f", * status: "connected", * evpnUnused: "true", * evpntopoId: "92984e2f-94db-4cd8-9763-9cf83fbd079e", * duration: "1d", * start: 1736031600, * end: 1736175934, * }); * ``` */ export declare function getSwitchStats(args: GetSwitchStatsArgs, opts?: pulumi.InvokeOptions): Promise<GetSwitchStatsResult>; /** * A collection of arguments for invoking getSwitchStats. */ export interface GetSwitchStatsArgs { /** * Duration like 7d, 2w */ duration?: string; /** * End datetime, can be epoch or relative time like -1d, -2h; now if not specified */ end?: number; /** * If `evpnUnused`==`true`, find EVPN eligible switches which don’t belong to any EVPN Topology yet */ evpnUnused?: string; /** * EVPN Topology ID */ evpntopoId?: string; mac?: string; orgId: string; siteId?: string; /** * Start datetime, can be epoch or relative time like -1d, -1w; -1d if not specified */ start?: number; /** * enum: `all`, `connected`, `disconnected` */ status?: string; } /** * A collection of values returned by getSwitchStats. */ export interface GetSwitchStatsResult { readonly deviceSwitchStats: outputs.device.GetSwitchStatsDeviceSwitchStat[]; /** * Duration like 7d, 2w */ readonly duration?: string; /** * End datetime, can be epoch or relative time like -1d, -2h; now if not specified */ readonly end?: number; /** * If `evpnUnused`==`true`, find EVPN eligible switches which don’t belong to any EVPN Topology yet */ readonly evpnUnused?: string; /** * EVPN Topology ID */ readonly evpntopoId?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly mac?: string; readonly orgId: string; readonly siteId?: string; /** * Start datetime, can be epoch or relative time like -1d, -1w; -1d if not specified */ readonly start?: number; /** * enum: `all`, `connected`, `disconnected` */ readonly status?: string; } /** * This data source provides the list of Switches with their statistics. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as junipermist from "@pulumi/juniper-mist"; * * const switchStats = junipermist.device.getSwitchStats({ * orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550", * mac: "485a0d000000", * siteId: "4a422ae5-7ca0-4599-87a3-8e49aa63685f", * status: "connected", * evpnUnused: "true", * evpntopoId: "92984e2f-94db-4cd8-9763-9cf83fbd079e", * duration: "1d", * start: 1736031600, * end: 1736175934, * }); * ``` */ export declare function getSwitchStatsOutput(args: GetSwitchStatsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSwitchStatsResult>; /** * A collection of arguments for invoking getSwitchStats. */ export interface GetSwitchStatsOutputArgs { /** * Duration like 7d, 2w */ duration?: pulumi.Input<string>; /** * End datetime, can be epoch or relative time like -1d, -2h; now if not specified */ end?: pulumi.Input<number>; /** * If `evpnUnused`==`true`, find EVPN eligible switches which don’t belong to any EVPN Topology yet */ evpnUnused?: pulumi.Input<string>; /** * EVPN Topology ID */ evpntopoId?: pulumi.Input<string>; mac?: pulumi.Input<string>; orgId: pulumi.Input<string>; siteId?: pulumi.Input<string>; /** * Start datetime, can be epoch or relative time like -1d, -1w; -1d if not specified */ start?: pulumi.Input<number>; /** * enum: `all`, `connected`, `disconnected` */ status?: pulumi.Input<string>; }