import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Sessions in Oracle Cloud Infrastructure Bastion service. * * Retrieves a list of SessionSummary objects for an existing bastion. Bastion sessions let authorized users connect to a target resource for a predetermined amount of time. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSessions = oci.bastion.getSessions({ * bastionId: testBastion.id, * displayName: sessionDisplayName, * sessionId: testSession.id, * sessionLifecycleState: sessionSessionLifecycleState, * }); * ``` */ export declare function getSessions(args: GetSessionsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSessions. */ export interface GetSessionsArgs { /** * The unique identifier (OCID) of the bastion in which to list sessions. */ bastionId: string; /** * A filter to return only resources that match the entire display name given. */ displayName?: string; filters?: inputs.Bastion.GetSessionsFilter[]; /** * The unique identifier (OCID) of the session in which to list resources. */ sessionId?: string; /** * A filter to return only resources their lifecycleState matches the given lifecycleState. */ sessionLifecycleState?: string; } /** * A collection of values returned by getSessions. */ export interface GetSessionsResult { /** * The unique identifier (OCID) of the bastion that is hosting this session. */ readonly bastionId: string; /** * The name of the session. */ readonly displayName?: string; readonly filters?: outputs.Bastion.GetSessionsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly sessionId?: string; readonly sessionLifecycleState?: string; /** * The list of sessions. */ readonly sessions: outputs.Bastion.GetSessionsSession[]; } /** * This data source provides the list of Sessions in Oracle Cloud Infrastructure Bastion service. * * Retrieves a list of SessionSummary objects for an existing bastion. Bastion sessions let authorized users connect to a target resource for a predetermined amount of time. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSessions = oci.bastion.getSessions({ * bastionId: testBastion.id, * displayName: sessionDisplayName, * sessionId: testSession.id, * sessionLifecycleState: sessionSessionLifecycleState, * }); * ``` */ export declare function getSessionsOutput(args: GetSessionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSessions. */ export interface GetSessionsOutputArgs { /** * The unique identifier (OCID) of the bastion in which to list sessions. */ bastionId: pulumi.Input; /** * A filter to return only resources that match the entire display name given. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * The unique identifier (OCID) of the session in which to list resources. */ sessionId?: pulumi.Input; /** * A filter to return only resources their lifecycleState matches the given lifecycleState. */ sessionLifecycleState?: pulumi.Input; } //# sourceMappingURL=getSessions.d.ts.map