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 Knowledge Bases in Oracle Cloud Infrastructure ADM service. * * Returns a list of KnowledgeBases based on the specified query parameters. * At least id or compartmentId query parameter must be provided. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testKnowledgeBases = oci.adm.getKnowledgebases({ * compartmentId: compartmentId, * displayName: knowledgeBaseDisplayName, * id: knowledgeBaseId, * state: knowledgeBaseState, * }); * ``` */ export declare function getKnowledgebases(args?: GetKnowledgebasesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getKnowledgebases. */ export interface GetKnowledgebasesArgs { /** * A filter to return only resources that belong to the specified compartment identifier. Required only if the id query param is not specified. */ compartmentId?: string; /** * A filter to return only resources that match the entire display name given. */ displayName?: string; filters?: inputs.Adm.GetKnowledgebasesFilter[]; /** * A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified. */ id?: string; /** * A filter to return only Knowledge Bases that match the specified lifecycleState. */ state?: string; } /** * A collection of values returned by getKnowledgebases. */ export interface GetKnowledgebasesResult { /** * The compartment Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the knowledge base. */ readonly compartmentId?: string; /** * The name of the knowledge base. */ readonly displayName?: string; readonly filters?: outputs.Adm.GetKnowledgebasesFilter[]; /** * The Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the knowledge base. */ readonly id?: string; /** * The list of knowledge_base_collection. */ readonly knowledgeBaseCollections: outputs.Adm.GetKnowledgebasesKnowledgeBaseCollection[]; /** * The current lifecycle state of the knowledge base. */ readonly state?: string; } /** * This data source provides the list of Knowledge Bases in Oracle Cloud Infrastructure ADM service. * * Returns a list of KnowledgeBases based on the specified query parameters. * At least id or compartmentId query parameter must be provided. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testKnowledgeBases = oci.adm.getKnowledgebases({ * compartmentId: compartmentId, * displayName: knowledgeBaseDisplayName, * id: knowledgeBaseId, * state: knowledgeBaseState, * }); * ``` */ export declare function getKnowledgebasesOutput(args?: GetKnowledgebasesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getKnowledgebases. */ export interface GetKnowledgebasesOutputArgs { /** * A filter to return only resources that belong to the specified compartment identifier. Required only if the id query param is not specified. */ compartmentId?: pulumi.Input; /** * A filter to return only resources that match the entire display name given. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified. */ id?: pulumi.Input; /** * A filter to return only Knowledge Bases that match the specified lifecycleState. */ state?: pulumi.Input; } //# sourceMappingURL=getKnowledgebases.d.ts.map