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 Saved Queries in Oracle Cloud Infrastructure Cloud Guard service. * * Returns a list of saved queries run in a tenancy. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSavedQueries = oci.cloudguard.getSavedQueries({ * compartmentId: compartmentId, * accessLevel: savedQueryAccessLevel, * compartmentIdInSubtree: savedQueryCompartmentIdInSubtree === "true", * displayName: savedQueryDisplayName, * }); * ``` */ export declare function getSavedQueries(args: GetSavedQueriesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSavedQueries. */ export interface GetSavedQueriesArgs { /** * Valid values are `RESTRICTED` and `ACCESSIBLE`. Default is `RESTRICTED`. Setting this to `ACCESSIBLE` returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to `RESTRICTED` permissions are checked and no partial results are displayed. */ accessLevel?: string; /** * The OCID of the compartment in which to list resources. */ compartmentId: string; /** * Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of `accessLevel`. */ compartmentIdInSubtree?: boolean; /** * A filter to return only resources that match the entire display name given. */ displayName?: string; filters?: inputs.CloudGuard.GetSavedQueriesFilter[]; } /** * A collection of values returned by getSavedQueries. */ export interface GetSavedQueriesResult { readonly accessLevel?: string; /** * Compartment OCID of the saved query */ readonly compartmentId: string; readonly compartmentIdInSubtree?: boolean; /** * Display name of the saved query */ readonly displayName?: string; readonly filters?: outputs.CloudGuard.GetSavedQueriesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The list of saved_query_collection. */ readonly savedQueryCollections: outputs.CloudGuard.GetSavedQueriesSavedQueryCollection[]; } /** * This data source provides the list of Saved Queries in Oracle Cloud Infrastructure Cloud Guard service. * * Returns a list of saved queries run in a tenancy. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSavedQueries = oci.cloudguard.getSavedQueries({ * compartmentId: compartmentId, * accessLevel: savedQueryAccessLevel, * compartmentIdInSubtree: savedQueryCompartmentIdInSubtree === "true", * displayName: savedQueryDisplayName, * }); * ``` */ export declare function getSavedQueriesOutput(args: GetSavedQueriesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSavedQueries. */ export interface GetSavedQueriesOutputArgs { /** * Valid values are `RESTRICTED` and `ACCESSIBLE`. Default is `RESTRICTED`. Setting this to `ACCESSIBLE` returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to `RESTRICTED` permissions are checked and no partial results are displayed. */ accessLevel?: pulumi.Input; /** * The OCID of the compartment in which to list resources. */ compartmentId: pulumi.Input; /** * Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of `accessLevel`. */ compartmentIdInSubtree?: pulumi.Input; /** * A filter to return only resources that match the entire display name given. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; } //# sourceMappingURL=getSavedQueries.d.ts.map