@pulumi/juniper-mist
Version:
A Pulumi package for creating and managing Juniper Mist resources.
122 lines (121 loc) • 3.5 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* This data source provides the list of Gateways with their statistics.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as junipermist from "@pulumi/juniper-mist";
*
* const gatewayStats = junipermist.device.getGatewayStats({
* orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
* mac: "e8a245000000",
* siteId: "4a422ae5-7ca0-4599-87a3-8e49aa63685f",
* status: "connected",
* duration: "1d",
* start: 1736031600,
* end: 1736175934,
* });
* ```
*/
export declare function getGatewayStats(args: GetGatewayStatsArgs, opts?: pulumi.InvokeOptions): Promise<GetGatewayStatsResult>;
/**
* A collection of arguments for invoking getGatewayStats.
*/
export interface GetGatewayStatsArgs {
/**
* Duration like 7d, 2w
*/
duration?: string;
/**
* End datetime, can be epoch or relative time like -1d, -2h; now if not specified
*/
end?: number;
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 getGatewayStats.
*/
export interface GetGatewayStatsResult {
readonly deviceGatewayStats: outputs.device.GetGatewayStatsDeviceGatewayStat[];
/**
* 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;
/**
* 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 Gateways with their statistics.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as junipermist from "@pulumi/juniper-mist";
*
* const gatewayStats = junipermist.device.getGatewayStats({
* orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
* mac: "e8a245000000",
* siteId: "4a422ae5-7ca0-4599-87a3-8e49aa63685f",
* status: "connected",
* duration: "1d",
* start: 1736031600,
* end: 1736175934,
* });
* ```
*/
export declare function getGatewayStatsOutput(args: GetGatewayStatsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGatewayStatsResult>;
/**
* A collection of arguments for invoking getGatewayStats.
*/
export interface GetGatewayStatsOutputArgs {
/**
* 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>;
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>;
}